[osg-users] Intergration with QT

Ali Ozdin alinailozdin at gmail.com
Fri Mar 16 05:39:18 PDT 2018


Dear Robert,

I am examining the oshhud and osgQt examples for 3 days. I also know that only depth buffer is required for osg hud example. I know. But when merge osg hud example with osg qt example it does not work. To get rid of this, I have cleared color buffer there. But in http://forum.openscenegraph.org/viewtopic.php?t=17152 , I could not get rid of this problem by using color buffer. 
To be clear, I have sent example little source code for these two cases. 


robertosfield wrote:
> On 16 March 2018 at 10:18, Ali Ozdin <> 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.
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


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







More information about the osg-users mailing list