VIDEOPOST_CUSTOMLENS problem sending rays
-
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 -
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.
-
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 -
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.