In OSG 1.0, in the osgkeyboardmouse example, I was able to override the mouse control view functionality by by replacing this line:
// set the view sceneView->setViewMatrix(kbmcb->getViewMatrix()); With my own calculated matrix based on the kbmcb values. In version 2.0 osgkeyboardmouse example, it looks like all the mouse functionality for the view resides in the following line: // create a tracball manipulator to move the camera around in response to keyboard/mouse events viewer.setCameraManipulator( new osgGA::TrackballManipulator ); Which I would like to replace with my functionality. I tried creating a GUIEventHandler Class and adding it as EventHandler to my view, (just like the PickHandler class) but when I try to remove the following line: viewer.setCameraManipulator( new osgGA::TrackballManipulator ); I don't see anything in my simulation. What I think I should do next is create my own derived version of the TrackballManipulaltor class and implement my mouse logic their. Does this sound like the right thing to do? Is their a better way? I'm also confused about the billboard examples ( and other examples simular to it). Looks like they never added anytype of Manipulator to the camera. and I'm wondering how the camera manipulation is being done? Is their a default manipulator that comes with the osgViewer::Viewer? By the way OSG is awesome! Thanks for all the hardwork.
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/