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

    vd->lhit Surface ID

    SDK Help
    0
    3
    243
    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 16/10/2004 at 10:19, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.5+ 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;  C++  ;

      ---------
      Hello,
      maybe someone can shed some light on what numbers the vd->lhit function reads out within Output(PluginShader* sh, ChannelData* cd) routine.
      I thought that this gives back the vertex id of the rendered polygon, but it doesn't. The lhit value gives slightly higher numbers or even negative values back when the second CPU starts to kick in rendering the same polygon.
      Isn't there a way to get the real polygon id back from within a channel shaders Output routine?

      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 16/10/2004 at 11:05, xxxxxxxx wrote:

        Just to add this:
        I already tried to use TraceGeometry, but it gives the same wrong result for the poly id even when using vd->lhit=0 in advance.

        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 17/10/2004 at 03:35, xxxxxxxx wrote:

          I am sorry,
          I missed the ID_to_Obj command which also gives the local polygon id.

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