Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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:
User Information: Cinema 4D Version: 11.5-13 Platform: Windows ; Mac ; Mac OSX ; Language(s) : C++ ;
--------- Hi,
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
cheers, Matthias
On 19/10/2011 at 03:13, xxxxxxxx wrote:
Ah! Excellent, thank you.