[osg-users] Intergration with QT

Robert Osfield robert.osfield at gmail.com
Fri Mar 16 05:03:17 PDT 2018


On 16 March 2018 at 10:18, Ali Ozdin <alinailozdin at gmail.com> wrote:
> I have set clear mask for hud camera GL_COLOR_BUFFER_BIT in addition to GL_DEPTH_BUFFER_BIT. The problem was solved.

This might be a "solution", but I think it's an indication that
something else is wrong with your setup.

My guess is that your HUD Camera is the only camera being drawn, or
it's the first Camera that is being drawn. If the later then you have
a RenderOrder issue.  Have a look at the osghud example for an
illustration of what is required w.r.t setting the Camera RenderOrder
to ensure the overlayed camera gets drawn second, you'll see that only
the GL_DEPTH_BUFFER_BIT is required.

Robert.


More information about the osg-users mailing list