Hi Christophe, Good catch, looking at the code I can only assume that both the original author and myself didn't test the non user specified camera path. I've added your suggested code and it works fine. Change now merged and submitted to svn/trunk.
Cheers, Robert. On 26 April 2012 09:31, Christophe Herreman <[email protected]> wrote: > Hi, > > The OsgAutoCapture example isn't working because the CameraManipulator is not > added to the viewer. > > So, just add viewer.setCameraManipulator( keyswitchManipulator.get() ); on > line 352. > > Cheers, > Christophe > > > Code: > > // Only add camera manipulators if camera is not specified > camera_specified=false; > osg::ref_ptr<osgGA::KeySwitchMatrixManipulator> keyswitchManipulator = new > osgGA::KeySwitchMatrixManipulator; > > keyswitchManipulator->addMatrixManipulator( '1', "Trackball", new > osgGA::TrackballManipulator() ); > keyswitchManipulator->addMatrixManipulator( '2', "Flight", new > osgGA::FlightManipulator() ); > keyswitchManipulator->addMatrixManipulator( '3', "Drive", new > osgGA::DriveManipulator() ); > keyswitchManipulator->addMatrixManipulator( '4', "Terrain", new > osgGA::TerrainManipulator() ); > > viewer.setCameraManipulator( keyswitchManipulator.get() ); > > > > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=47312#47312 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

