Hi,

     Let me explain better (sorry for my bad English!).
     My application has to let you walk over geometry and turn around using 
mouse or joystick.
     I have to show the geometry and some images and boxes, but that can’t move 
with geometry.
     In first version I just handle geometry. Using camera->setHomePosition and 
basic math everything works.
     To put boxes (menu) and images I have to use osgWidget::WindowManager, 
like I saw in examples. But WindowManager’s camera has a different behavior. I 
can´t move it with setHomePosition or setViewMatrixAsLookAt.
     Then I did a new version moving the geometry, osg::Matrix::translate and 
osg::Matrix::rotate, and not the camera. X-axis and Y-axis moving was easy, but 
Z-axis not.
     I think Z-axis is a projection in 2D, then I set WindowManager to MASK_3D 
and set setProjectionMatrixAsOrtho to replace setProjectionMatrixAsOrtho2D 
defined in createParentOrthoCamera.
     Now I’m trying to know where is wrong.

Thank you!

Cheers,
Wagner

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22122#22122





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to