Hi Martin,

I don't know how to achieve what you are attempting, but in the past
with Qt/OSG integration I have found the most success with getting Qt
to rendering a buffer in main memory then using this as an osg::Image
to render into the 3D scene.  The osgviewerQtBrowser using this
approach utilizing the osgQt library in OSG svn/trunk. This new osgQt
library provides integration with QGraphicsView and osg::Image for you
making it relatively straight forward to get Qt to render it's widgets
to an osg::Image.

Robert.

On Tue, May 11, 2010 at 12:07 PM, Martin Scheffler <[email protected]> wrote:
> Hi,
>
> I am trying to use Qt OpenGL widgets as a HUD for OSG. (Wow, I love 
> abbreviations!)
>
> [url]http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-opengl/[/url]
>
> I have managed to get Qt to draw its widgets over OSG, and it looks good.
> First I let OSG draw its scene, then Qt renders its widgets.
> The only problem is that OSG does a buffer swap when it is finished drawing. 
> This causes a flicker effect. I  cannot find a way to convince Qt to draw its 
> stuff at a specific point, so adding a post-render callback to OSG does not 
> work.
>
> So is there a way to turn off buffer swapping? I could not find any way in 
> the source (without modifying window system specific stuff). Any help is 
> appreciated.
>
> Thanks!
>
> Martin[/url]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=27731#27731
>
>
>
>
>
> _______________________________________________
> 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