Hi Stephane, The easist route would probably be to extend the public interface of NodeTrackerManipulator to allow setting of the radius etc.
Robert. On Dec 6, 2007 2:27 PM, Stephane DUGUET <[EMAIL PROTECTED]> wrote: > > > > > I used > > tm1->setHomePosition(osg::Vec3d(0.0,-100.0,10.0),//homeEye > > osg::Vec3d(0.0,0.0,0.0),//homeCenter > > osg::Vec3d(0.0,0.0,1.0),//homeUp > > false); // do not auto calculate home > > > > is it the best way? > > > > BR, > > > Stephane > > > > ________________________________ > > > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] De la part de Stephane > DUGUET > Envoyé : jeudi 6 décembre 2007 14:46 > À : [email protected] > Objet : [osg-users] distance to a node tracked by a NodeTracker manipulator > > > > > > Hello all, > > > > I attached a node tracker to a node. > > I'd like to know the easiest wait to increase the distance from the view to > a node (ie same effect as RIGHT clik + mouse up). > > > > Here is my code… > > > > tm1 = new osgGA::NodeTrackerManipulator; > > tm1->setTrackerMode(trackerMode2); > > rotationMode1 = osgGA::NodeTrackerManipulator::ELEVATION_AZIM; > > rotationMode2 = osgGA::NodeTrackerManipulator::TRACKBALL; > > tm1->setRotationMode(rotationMode1); > > > > viewer.setCameraManipulator(tm1.get()); > > > > > > BR, > > > stephane > _______________________________________________ > 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

