Rotating cameras near clipping plane
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/12/2007 at 18:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.0
Platform: Windows ;
Language(s) : C++ ;---------
I want to change the distance of a cameras near clipping plane
pixel by pixel. The plane should appear to be rotated.
Which point in the rendering pipeline is the right way
to do this? Somewhere in a videopost plugin?
Regards,
Zour -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/12/2007 at 03:56, xxxxxxxx wrote:
I need to set clipping plane. Doing this in ExecutePixel
doesn't have any effect.void VideoPost::ExecutePixel(PluginVideoPost* node, PixelPost* pp, LONG x, LONG subx, LONG suby)
{
RayCamera *rayCamera = pp->vd->GetRayCamera();
if (rayCamera)
{
zclipping_dist+=0.0015f;
rayCamera->clipping_plane = zclipping_dist;
}
} -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/12/2007 at 23:20, xxxxxxxx wrote:
You can't set the clipping plane of the RayCamera. It is only meant for reading. You have to do the clipping on your own. Using a custom lens is probably the best way to do it. Search for VIDEOPOST_CUSTOMLENS and MSG_VIDEOPOST_CREATERAY in the docu for more information.
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/12/2007 at 12:19, xxxxxxxx wrote:
I found this feature in the meantime, too.
Thank you for approving it!This example was of great help:
https://developers.maxon.net/forum/topic/3593