Hi Brad On Mon, Feb 14, 2011 at 7:10 PM, Brad Colbert <[email protected]> wrote: > Is there a way to get the current ModelView and Projection matrices in the > update() call?
There isn't necessarily any one modelview and projection matrix as the OSG can have multiple cameras rendering the scene at one time. Is the viewer's master Camera that you want a handle to? If so just get the viewer's camera and get it's projection and view matrixes and then get the model matrices using the osg::computeLocalToWorldMatrix(NodePath) wher the NodePath is supplied by the NodeVisitor::getNodePath(). Robert, _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

