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

    How to get the face being rendered... faster?

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 162 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

      On 02/06/2014 at 10:59, xxxxxxxx wrote:

      I'm creating a shader that needs to know what face is being rendered.
      I made it work with c4d.utils.GeRayCollider but... damn! It is slow!!!
      Mainly with objects that are very, very dense.
      Is there any way to get what face is being hit by the current render ray in a faster way?

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

        On 03/06/2014 at 21:58, xxxxxxxx wrote:

        There BaseVolumeData.lhit but that returns just a PyCObject in Python.
        It's a limitation not yet resolved.

        Best,
        -Niklas

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