Hi, We discussed this issue some time ago. You can check the thread
http://forum.openscenegraph.org/viewtopic.php?t=6861 I solve it making a small modification to osgviewer. I added a command-line parameter (noautohomeview) to make it conserve the camera position and not establishing an automatic position computed from the geometry bounding volume. if ( arguments.read("--noautohomeview") ) { osg::Vec3 eye, center, up; viewer.getCamera()->getViewMatrixAsLookAt( eye, center, up ); keyswitchManipulator->setHomePosition( eye, center, up ); } With this option and the -c option to use the camera, it works for me. $ osgviewer --noautohomeview -c camera.osg model.osg Robert, would it be possible to add such a modification to osgviewer? It would be really useful to preview from Maya the OSG exported scene from the active camera in Maya. Best regards, Javier Taibo. On Thu, Nov 18, 2010 at 3:36 PM, Ares Lagae <[email protected]> wrote: > Thanks for your quick reply. > > Some comments: > > - I assumed there was support for this since camera paths are supported. > > - I am perfectly prepared to extend osgviewer. I appreciate any pointers on > how to best implement this feature. > > - maya2osg exports the maya camera as an "osgViewer::Viewer" node. So this > node must somehow already exist and/or be supported? Or maybe the maya2osg > author has plugins for this? > > Thanks, > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

