Hi,

In a drawable cull callback, I have found that State::getModelViewMatrix() and 
State::getProjectionMatrix() are different from the matrices returned by 
Camera::getViewMatrix() and Camera::getProjectionMatrix().

I actually can't perform world to screen space coordinate conversion using 
matrices provided by the State, at least not using this kind of formula: 
screenSpacePoint = worldSpacePoint * view * proj * viewPortComputedWindowMatrix.

The same calculation works with camera matrices.

Am I missing something?

Cheers,
Fred

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=34388#34388





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to