Hi Wanger,

Right now osgWidget is designed as a 2D interface, rather than a full
3D object so the objects can't be moved around as flexibly as normal
3D objects in the scene.

The author of osgWidget, Jeremy Moles, has discussed work that has
been undertaking to refactor osgWidget to allow the widgets to be used
in more flexible way - including in a full 3D scene.  Please check
through the osg-users archive for discussion on this.

Robert.

On Wed, Jan 6, 2010 at 2:23 AM, Wagner Dias <[email protected]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to