Hi,

I have to render a scene that pretends to be a 2D environment. But I need it to 
be 3D so that I can work with the Z component. I'll try to explain it better.

I'll have a camera that will be still for the whole time. 2D objects will be 
put in front of the camera as it was a 2D application. Although, sometimes 
these 2D objects will spin around an axis in 3D. So, I cannot use the Ortho 
projection. 

However, I can't find out how to set the projection matrix so that I can work 
with my coordinates right. I need to know what are the maximum coordinates that 
fit my window, how many pixels there are, what real size are the objects, 
etc... Because I'm getting some window coordinates from screen touchs! As these 
coordinates are relative to the window I don't know how to relate them to my 
OSG objects!

Do you guys know of any examples that could help me? I already looked at the 
osgHUD example but couldn't find anything useful.


Thanks a bunch.

Cheers,
Theo

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





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

Reply via email to