Hi, Sergey

if I have a Viewer  , scene and node in this scene how can a attach smart 
camera to this Viever

something like this?


Code:
#include <UserTrackballManip>

  osg::ref_ptr<osgGA::KeySwitchMatrixManipulator> keyswitchManipulator = new 
osgGA::KeySwitchMatrixManipulator;

keyswitchManipulator->addMatrixManipulator( '1', "Trackball", new 
UserTrackballManip() );
viewer.setCameraManipulator( keyswitchManipulator.get() );




Cheers,
Sergey

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46156#46156





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to