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

    GeRayCollider intersection ordering

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 319 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 12/07/2011 at 00:30, xxxxxxxx wrote:

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

      ---------
      Just a quick question about getting the intersections (by index) from a GeRayCollider result set:  is there any default ordering of the results (farthest to nearest, nearest to farthest) or are they randomly indexed?

      The reason that I ask is that Maya's API allows for testing in both directions of the ray source and sorting (from negative to positive linearly).  I need to do something similar, the hard way since C4D's API does not have bidirectional testing.

      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 13/07/2011 at 13:39, xxxxxxxx wrote:

        What about testing a 2. time but with the vectors switched ?

        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 13/07/2011 at 15:14, xxxxxxxx wrote:

          Found out that I didn't need any ordering.  It was inferred (the negative ray indexed by hitcount-1) and then just needed to call GetNearestPoint() to get the information from the negative GeRayCollider.  I suggest that Maxon take a long look at the Maya API.  It is something else.  They have Octree or Voxelized collision testing 'built in' to their intersector class framework.  What do we get again? 😉

          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 15/07/2011 at 01:47, xxxxxxxx wrote:

            kuroyume0161 what are you on to? Sounds interesting, I am cralling these forums till someone eplains something like raycolider, I am no programer as you know but i long for a plugin checking the visibillity of an object inside a szene (not by camera) lets say by a sphere ...

            please feel free to add me as a betatester if you develop something similar. We have huge tractors with over 10000 parts in c4d here and I am cleaning them manuall !!

            sorry for that hijack

            kind regards mogh

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