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
    • Recent
    • Tags
    • Users
    • Login

    vd->lhit.GetPolygon() and RenderInstances

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 404 Views
    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 Offline
      Helper
      last edited by

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

      On 05/10/2009 at 12:49, xxxxxxxx wrote:

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

      ---------
      Hi there,

      after compiling my plugin for r11.5 and using render instances i found that vd->lhit.GetPolygon() doesnt work with renderinstances (i guess thats just because of what renderinstances are).. is there a way to get something similar information from those renderinstances??

      thanks,

      ello

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

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

        On 06/10/2009 at 01:23, xxxxxxxx wrote:

        What do you mean with it doesn't work? Render instances give back the same polygon ID as the instanced object.

        cheers,
        Matthias

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

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

          On 06/10/2009 at 12:04, xxxxxxxx wrote:

          hi, sorry for being not precise enough.. I have a shader which is changing the color for every polygon.

          i used this line:
          LONG id = vd->lhit.GetPolygon();

          it workes as long as i use normal instances but when i set the INSTANCEOBJECT_RENDERINSTANCE for those instances, it doesnt work anymore.. all instances have the same colors for the according faces...

          hope you understand

          cheers,
          ello

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

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

            On 07/10/2009 at 00:23, xxxxxxxx wrote:

            Ah, ok. That is a limitation. Render instances point all to the same polygons.

            cheers,
            Matthias

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

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

              On 08/10/2009 at 02:01, xxxxxxxx wrote:

              ok, thanks for clearing this
              cheers,
              Ello

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