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

    CreateRay

    Cinema 4D SDK
    sdk c++
    5
    6
    1.1k
    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.
    • Z
      zmilez
      last edited by

      Hi,
      I used the example code from
      https://developers.maxon.net/forum/topic/11585/example-createray?_=1639590161417
      to build a VideoPostData plugin to modify the rays.
      I noticed CreateRay wouldnt work with other renderers Vray, Corona,
      but was wondering if there was a way to hook up the plugin to work with Redshift
      Or if Redshift has its own SDK
      Any info much appreciated.

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by Manuel

        Hi,

        While Redshift can call this function, it calls it only once. And some renders are not rays based, so it doesn't make senses for them.
        What are you trying to achieve?

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        rsodreR 1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by ferdinand

          Hello @zmilez,

          without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022.

          Thank you for your understanding,
          Ferdinand

          MAXON SDK Specialist
          developers.maxon.net

          1 Reply Last reply Reply Quote 0
          • rsodreR
            rsodre @Manuel
            last edited by

            Hey @Manuel ,

            Do you mean RedShift is compatible with C4D lens effects?
            Can I really use CreateRay() with RedShift?

            I have a lens plugin that works well on the standard renderer but not on the RS camera.
            Is there anything extra to do to enable it on RS?

            Thanl you,
            Roger

            1 Reply Last reply Reply Quote 0
            • i_mazlovI
              i_mazlov
              last edited by

              Hi @rsodre ,

              CreateRay() is not fully functional with RS and this is likely what Manuel meant by saying that is called by RS only once.

              Cheers,
              Ilia

              MAXON SDK Specialist
              developers.maxon.net

              1 Reply Last reply Reply Quote 0
              • rsodreR
                rsodre
                last edited by

                Ok, but if RS can call it, when and how does it?
                Call just once... makes no sense, because the effect calls once per pixel at least, on every frame.
                Why would RS call it in a different context?

                What do you mean not fully functional?
                Is it partially functional?
                How so?

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