Re: [osg-users] setCenterByMousePointerIntersection

2011-07-13 Thread PC John
What about: viewer->setCameraManipulator( new OrbitManipulator( DEFAULT_SETTINGS | SET_CENTER_ON_WHEEL_FORWARD_MOVEMENT ) ); Cheers, John > Original message > From: "Joe Kilner" > Subject: [osg-users] setCenterByMousePointerIntersection >

Re: [osg-users] setCenterByMousePointerIntersection

2011-07-11 Thread Lionel Lagarde
Hi, In our application, I do (when a "center-on" event is sent) : osgGA::MatrixManipulator *mm = viewer->getCameraManipulator(); mm->setHomePosition(eye, center, up); osg::ref_ptr ea = new osgGA::GUIEventAdapter; mm->home(*e

[osg-users] setCenterByMousePointerIntersection

2011-07-08 Thread Joe Kilner
Hi, I am often loading large scenes in to a Viewer with a TrackballManipulator and would really like a nice way to reset the orbit point while viewing the model. I had a look in the code and found something looking like what I want has been implemented already and can be activated by passing t