Re: [osg-users] Setting a SceneView's View Matrix

2008-05-10 Thread Robert Osfield
Hi Phishjam, Is it simply that you want the viewers camera to follow a child in the scene? If so then you can use either node-getWorldMatrices() to get the list of model matrices of the a node in the scene, inverting this then gives you the view matrix. Note, getWorldMatrices() may return 1 or

[osg-users] Setting a SceneView's View Matrix

2008-05-09 Thread [EMAIL PROTECTED]
I am needing to set an osgUtil::SceneView's view matrix such that it is identical to that of an osg::Group.  The scene structure is along the lines of:   sceneRoot--osg::Switch--osg::PositionAttitudeTransform--osg::PositionAttitudeTransform--osg::Group   I need my scene view to have all of the