inherited fur color

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/07/2006 at 22:06, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   9.1 
Platform:   Windows  ; Mac  ;  Mac OSX  ; 
Language(s) :     C++  ;

---------
I all,

just another question.
I my plugin FastFur i need to inherit the color from the object that generate fur to any single fur (in the shader).

All work, I have a *texcol vector array that contain the fur color. So when i put a fur on the surface, i sample the current color and I fill the array.
From the material i get the color from the array when i trace the furs.

Now if I use 2 fastfur... what happened?
How i can know or manage the textcol array?
I don't know how i can get the correct point to the array and the color is inerithed from one of the two object generator.

I hope that this is clear.. :)

Thanks in advance
Renato T.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/07/2006 at 02:56, xxxxxxxx wrote:

Ok, i found the way.

I stored in basecontainer the pointer to my array TexCol.

In the container of material i added a ObjectLink where i put the FastFur Generator, so i can get the Pointer to the Array and use it.

FastFurLink = data->GetObjectLink(FASTFUR_FFLINK,mat->GetDocument());
if (FastFurLink) {
     BaseContainer *bc=FastFurLink->GetDataInstance();
     PToCol=(Vector* ) bc->GetLong(1207);
}

All work .. like a charm.. except for the material preview.
How i can detect in the InitRender that i'm inside a material preview?

Thanks in advance
Renato T.