Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    inherited fur color

    SDK Help
    0
    2
    168
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post