The MxEventHandler class in the osgWorks project has an event handler that lets
you specify the center of rotation. Documentation is here:
http://vesuite.org/external/docs/osgworks/classosgw_mx_1_1_mx_event_handler.html#_details
so you can see that ctrl+shift+leftmouse sets the new center of rotation. (The
event handler also supports changing the FOV and toggling between orthographic
and perspective.)
osgWorks can be downloaded from here:
osgWorks.googlecode.com
and if you want to try this event handler, run the MxViewer example.
The MxViewer example and the MxEventHandler class are built on tools in the
osgwMx library, which contains several matrix utility classes and functions, as
well as support for DirectX input devices such as gamepads.
-Paul
On 1/23/2013 8:52 AM, lucie lemonnier wrote:
Hello,
I click on a point in my node.
I get a world intersection point (hitr-getWorldIntersectPoint()).
I want to center my camera on this point that is to say this point becomes the
pivot point of the rotation of the camera.
Can you help me please?
Thank you!
Cheers,
lucie
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52100#52100
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org