THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/10/2011 at 06:44, xxxxxxxx wrote:
Cinema 4D Version: 11.5-13
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
does anybody know the right way to convert an arbitrary world coordinate in ShaderData::Output to screen coordinates? So the equivalent to BaseView::WS() but for rendering.
Thanks in advance
On 19/10/2011 at 02:48, xxxxxxxx wrote:
I think it goes like this:
- get the RayCamera
- transform the world coordinate to camera space. p * RayCamera::m_inverse
- transform from camera space to screen space with VolumeData::CameraToScreen
On 19/10/2011 at 03:13, xxxxxxxx wrote:
Ah! Excellent, thank you.