Re: [osg-users] Error moving in Z-axis

2010-01-06 Thread Wagner Dias
Hi Robert,

 What do you suggest for show banners and menu whithout osgWidget?

Thank you!

Cheers,
Wagner

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Error moving in Z-axis

2010-01-05 Thread Wagner Dias
Hi Robert,

I did an application that I can move the camera in 3 axis (setHomePosition), 
but it doesn't work when I use WindowManager.
Ok, if I cant´t move the camera I'll move the geometry.
Now, my problem is Z-axis.

Thank you!

Cheers,
Wagner

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Error moving in Z-axis

2010-01-05 Thread Wagner Dias
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Error moving in Z-axis

2010-01-04 Thread Wagner Dias
Hi,

Using WindowManager I can't move the geometry in Z-axis. Even setting MASC_3D 
on WindowManager and setProjectionMatrixAsOrtho on camera
I have no problem whit others axis.

Thank you!

Cheers,
Wagner

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] WindowManager and setHomePosition

2009-12-29 Thread Wagner Dias
Hi,

I did an application that you can move around an object using mouse or joystick.
Then I change it for using WindowManager but the command 
viewer-setHomePosition doesn't work anymore.
Can anybody help me?

Thank you!

Cheers,
Wagner

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [osgPlugins] Images with transparency

2009-10-05 Thread Wagner Dias
Hi,

I'm trying to use images (.png or .gif) with transparency. Images charge 
normally but I can't see the background. 
Does anyone have any suggestions?

Thank you!

Cheers,
Wagner

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Images with transparency

2009-10-05 Thread Wagner Dias
Hi Rafa,

I finaly solved the problem setting the background color of box to 
setColor(0.0f, 1.0f, 0.0f, 0.3f)

Thanks for help.

Cheers,
Wagner

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org