When I use TrackballManipulator in the scene.I use the 
Camera::setViewMatrixAsLookAt to set the initial  position of the camera and 
view center.  and I fail,then someone tell me that I should use the 
TrackballManipulator::setHomePosition to set the initial position of the eye 
and center. then I   success.
       But when I meet  complex scene . the problem occurs and I do not know 
why . The following are the steps:
1. I first use TrackballManipulator::setHomePosition to set the initial 
position of the eye and center .
 It is OK.
2. I add an object to the scene.and the home position of the Manipulator should 
change to the  center of the  added object,but I try many ways,it does not work 
. sometimes it seems the camera work in a very strange mode ,the wrong 
eye,wrong center ,wrong up .
        So I want to know how to solve the problem and the difference between 
Manipulator and Camera.
  
thanks!
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to