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

    Render Instance doesn't draw

    SDK Help
    0
    4
    349
    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

      On 10/06/2013 at 01:58, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12-R14 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
      Hi people,

      my object has different modes for it's visual represenation. If I use a polygonal mode everything works fine. But as soon as I switch to a mode, where I only use the drawing function and activate the "Render Instance" option it becomes invisible.
      I tried the same with the default Joint Object (which is represented as a circle) and there the instance object is displyed properly. So I assume I am missing something or doing something wrong.

      I would appreciate any help 🙂
      Greetz,
      Satara

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

        On 10/06/2013 at 08:05, xxxxxxxx wrote:

        If you haven't already, try to return an empty Polygon Object instead of NULL.

        -Niklas

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

          On 10/06/2013 at 10:01, xxxxxxxx wrote:

          I'm only returning NULL if something fails. In the mode I mentioned GetVirtualObjects returns a PolygonObject which contains two points to have the proper boundings for drawing. So that's not the problem 😕

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

            On 13/06/2013 at 11:21, xxxxxxxx wrote:

            If someone ever runs into the same problem.. A workaround is to draw the objects from a scenehook traversing the whole scene and checking if the contained instances are render instances and are referecing to your object.

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