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<osgGA::GUIEventAdapter> ea = new osgGA::GUIEventAdapter;
mm->home(*ea, *viewer);

On 08/07/2011 18:31, Joe Kilner wrote:
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 the flag SET_CENTER_ON_WHEEL_FORWARD_MOVEMENT when creating the manipulator.

However, I can't get it to work and am not really sure how (or even if) the feature should be used. Can anyone shed any light?

Thank you!

Joe

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





_______________________________________________
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

Reply via email to