Hi,

Myself and a co-worker are working with a HUD where we have created some 
simple geometric shapes on the same Z-plane in ortho2D mode.  When the 
scene is rendered, the topmost elements in the graph are rendered on top. 
We are using 1.2 and have put the HUD under an osg::CameraNode and set the 
camera to POSTRENDER. Here is an graph of what we are seeing, where cam is 
the osg::CameraNode.

        cam
            /     \
          a       b
                     \
                      c
                        \
                         d

The draw order is: d,c,b,a.  This means the 'a' is drawn on top of 'b'. 
This breaks what we are trying to accomplish in the HUD.

I guess I was expecting this to be reversed.  So the question is, how 
would I make this draw so the order would be a,b,c,d?  i.e. - d should be 
on top of everything else.  Is there a way to do this?

Thanks,

Steve

 

<<image/jpeg>>

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

Reply via email to