Hi Robert, J-S

As always, thanks again for the help, it is greatly appreciated.

I was able to solve this issue by calling

void VOSGTiledViewer::paintGL()
{
  getGraphicsWindow()->setClearMask( GL_COLOR_BUFFER_BIT |
GL_DEPTH_BUFFER_BIT );
  getGraphicsWindow()->clear();
  getGraphicsWindow()->setClearMask( 0 );
  frame();
}

If I don't reset the clearmask before calling frame, I don't see my
views, but the above solution gets met out of the hole.  I will have a
look again at using QWidget - I went with the EmbeddedWindow approach
because we are only using OSG in single threaded mode (by design) and
it seemed simpler.  Although, things like this might point to that
being false economy, maybe I need to redesign :)

Cheers,
Morne

On Tue, Jan 27, 2009 at 1:53 PM, Jean-Sébastien Guay
<jean-sebastien.g...@cm-labs.com> wrote:
> Hi Morné,
>
>> I suspect my problem comes from using the graphics context created by
>> osgViewer::GraphicsWindowEmbedded (this is the graphics context I pass
>> to my cameras) in our Qt app.
>
> You really shouldn't be using GraphicsWindowEmbedded even in a Qt app. This
> is constraining you to single threaded use of OSG, and thus you're not using
> your hardware to its full potential. Plus you're getting problems because
> the way GraphicsWindowEmbedded works is not what you expect.
>
> Check out the osgviewerqt example (the --QOSGWidget part) to see how to use
> a regular GraphicsWindowWin32/GraphicsWindowX11/GraphicsWindowCarbon in
> conjunction with Qt. It's pretty simple, and will give you a tangible
> benefit in performance in the end.
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to