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

    VIDEOPOST_CUSTOMLENS problem sending rays

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 360 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 24/10/2007 at 12:45, xxxxxxxx wrote:

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

      ---------
      Hi,

      I'm trying to generate custom rays with a VideoPostPlugin but somehow my generated rays do not reach the renderer. What I tried was to send a MultiMessage to the corresponding GeListNode like for instance:

      > _
      > VideopostCreateRay ray;
      > ray.x = 0;
      > ray.y = 0;
      > ray.p.x = 0;
      > ray.p.y = 0;
      > ray.p.z = 100.0;
      > ray.v.x = 0;
      > ray.v.y = 0;
      > ray.v.z = 100.0;
      > Get()- >MultiMessage(MULTIMSG_BROADCAST,MSG_VIDEOPOST_CREATERAY, &ray;)
      > _

      but with no effect. How do I get the ray to the renderer? The SDK reference says something about sending a message, but how and when? Or can somebody explain how the CylindricalLens plugin provided with C4D 10 works?

      Cheers,
      Bogumil

      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 25/10/2007 at 06:21, xxxxxxxx wrote:

        you must overload the virtual NodeData::Message method and then check for the MSG_VIDEOPOST_CREATERAY messsage (like if(type==MSG_VIDEOPOST_CREATERAY)... ).

        Then cast the *data pointer to VideopostCreateRay and change the ray parameters (p and v) according to how you want the ray to be fired into the scene.

        That´s at least how I would do it. 🙂

        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 25/10/2007 at 07:43, xxxxxxxx wrote:

          Magnificient!

          It works! This is a thought I didn't have, yet it is very logical -> the ray is already there I just have to change it!

          Thank you for the enlightenment,
          Bogumil

          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 25/10/2007 at 07:52, xxxxxxxx wrote:

            you´re welcome. Yep, most of the time Cinema 4D fills the according information (especially in Videopost and for rendering)and all you need to do is working with them.
            Once you get the hang of it (if you are a c4d user yourself it´s easier) it will all get fluent pretty fast.

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