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 many matrices - the later if you have a node with multiple parents.
Robert. On Sat, May 10, 2008 at 1:30 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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 same transforms that the group has. > Is there an easy way to do this or (even better) an example? Conceptually, > I would like to simply make the scene view a child of the group, though that > doesn't appear possible. > > Thanks! > > ________________________________ > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org