Hi,

Thanks for the quick reply guys. I am trying out what you have suggested but I 
can't seem to get my 2D background camera working. I am creating an osg::Viewer 
then I am creating a camera with 2D ortho projection with an identity matrix as 
the view matrix, the render order as PRE_RENDER etc.

I then have a scene that looks like this:
                                               
...................../- [2D BACKGROUND] - [SUB GRAPH] 
[ROOT NODE]| 
.....................\- [3D CAMERA] - [SUB GRAPH] 
( hope rubbish diagram makes sense  :? )

My 3D camera is setup as a perspective projection and a render order of 
POST_RENDER.

My background is more complex than just a textured quad and the user 
interaction should move the background around which also moves the "ouptut" of 
the 3D camera at the same time (because this is positioned with respect to 
something on the background).

Can the main camera in the scene run as a 2D camera and if so how do I set this 
up?

Also if I want the 3D camera to be a slave of the main (or 2D) camera do I keep 
the 3D camera's sub graph separate (i.e. not a child of the ROOT NODE) and just 
call addSlave( 3DCam, false ) so it can use its own subgraph?
          

Cheers,
Mike

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





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

Reply via email to