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

Reply via email to