Hi, ... Problem is the camera manipulator rotates but doesn't translate.
The desired gaming area consists of a geocentric terrain with a sky dome. Using the osg::viewer and trackball camera manipulator (default view) i can move around the scene, go underneath the dome, look at the terrain etc. fine. now move the action under the dome. I set the intial position of the camera as the center of the terrain at an altitude within the dome using a view matrix. I get the view matrix from the camera and compute the eye, center and up vectors and use these to set the home position of the camera manipulator. ... osg::Vec3 eye,center,up; _viewer->getCamera()->getViewMatrixAsLookAt(eye,center,up); osg::ref_ptr<osgGA::TrackballManipulator> trackBall = new osgGA::TrackballManipulator; _viewer->setCameraManipulator( trackBall ); viewer->getCameraManipulator()->setHomePosition(eye,center,up,false); ... _viewer->setSceneData(root) ... The starting scene viewpoint is displayed correctly and i can rotate the camera to view everything under the dome, BUT the camera is FIXED in position and i can't move around. ( same behaviour with Flight Manipulator). I was hoping to be able to navigate with the default camera manipulator initially and then add a callback to keep the camera in the gaming area (coordinate frame callback?). Thank you! Cheers, Rob ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=50362#50362 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

