What about:

viewer->setCameraManipulator( new OrbitManipulator( DEFAULT_SETTINGS | 
SET_CENTER_ON_WHEEL_FORWARD_MOVEMENT ) );

Cheers,
John

> ------------ Original message ------------
> From:  "Joe Kilner" <[email protected]>
> Subject:  [osg-users] setCenterByMousePointerIntersection
> Date:  8. 7. 2011  18:31:58
> ----------------------------------------
> 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