Hi Martin, The update traversal doesn't know about the view frustum, view frustums are associated with a particular Camera, not a viewer that runs the update traversal, a viewer can multiple cameras running on it so the question as to what the view frustum is is not unique.
If in you particular application you know that you only have on Camera, and will only ever have one Camera then you could hardwire yourself to the Viewer and the frustum from there. Robert. On 6/10/07, Martin Weier <[EMAIL PROTECTED]> wrote:
Hi everyone, Is there a way to get the current clipping planes of the view frustrum during update traversal? I have a update callback registered to a group node. This callback needs to know the current clipping planes of the camera. I know that osg::state offers a method getViewFrustum which returns all planes. The problem is that I don't know much about states and were to get valid states from. I could pass a reference of the sceneView to my UpdateCallback since sceneView offers a method getState. But this doesn't give me the correct planes. Another way would be to get the modelview matrix and projection matrix and compute the planes by hand. But I don't know how to get the modelview matrix. I am pretty new to openscenegraph and opengl. I hope somebody can provide help. Thanks Martin _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
