Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Shader on child objects

    SDK Help
    0
    2
    223
    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 07/07/2004 at 04:48, xxxxxxxx wrote:

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

      ---------
      If I take for example a null object, put a plane as a child object to the null object and attach a material to the null object, then the plane is also rendered with that material.
      The same I try to do, but with my own shader, own objects, and also not with the null object but with an own one. But CalcSurface of the shader is never called if I attach it to the parent object. The problem seems to be in the shader itself, because also if I use the null object as parent it doesnt work. Is there something I have to do in the shader?

      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 09/07/2004 at 00:55, xxxxxxxx wrote:

        It does seem to be possible to get the material inheritance to work, because the SDK example Simple Material worked when I tried it. I don't see anything tricky that it does to achieve this, so the question would have to be what's different in your material from SimpleMaterial.cpp? (I didn't involve a custom object, since you said that wasn't necessary to reproduce the error.)
        If you can't find out what causes the error, feel free to post simplified code or send a simplified project to [email protected]. (Make sure that the simplification doesn't cause the error to go away.)

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