Hi, I have a scene with various models loaded. I want to be able to double click on a model and have the camera move and position itself in front of the model, and afterwards return to the default trackball manipulator.
I looked at the osgcamera and osganimation examples and I'm trying to come up with a way of doing this. These are my thoughts: 1. Somehow get the current camera position and attitude from the trackball manipulator. 2. Compute an animation path from this point to a point in front of the model. 3. Replace the trackball manipulator with an AnimationPathManipulator and set the animation 4. Once it is done, replace it with with the original trackball manipulator and set its home position to the current camera position. Does this sound like the right way to go forward? I would appreciate any feedback on this, pointers or gothcas from people with more experience than I have. Also, if there are any examples that better fit what I am trying to do, I would be much obliged. Thank you kindly, Morne
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
