HI Alexandre,

The osg::Camera::setRenderOrder(..) is what controls which order the
cameras are rendered in, so set your HUD Camera to have a higher
render order number to make sure it's rendered last.  If the
RenderOrder values are all the same then the order will simply be the
order that you assigned them in.

Robert.

On 31 July 2013 16:02, Alexandre Vaillancourt
<[email protected]> wrote:
>
> Hi All,
>
> We're using a CompositeViewer for our application. The first view added is
> the 'main view', with the scene.
>
> We've added three more views: two each containing a widget (part of a HUD)
> and a third for a 'loading screen'.
>
> The two widgets draw over the main scene, which is expected, as well as the
> loading screen.
>
> However, I haven't been able to make the loading screen draw over _one_ of
> my widgets. As a work around I hide the by 'zeroing' the nodemask of it's
> view's camera when the 'loading screen' is displayed.
>
> Any pointers as to where to look on how I could make my 'loading screen'
> view draw after every other views?
>
> Thanks!
>
> --
> Alexandre Vaillancourt
>
> _______________________________________________
> 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