Hi,

I was incorrecly assuming that the QTimer that initiates the rendering of a
frame was started from the thread doing the event handling. The solution is
very elegant indeed.

Best regards,
Nico

On Sat, Oct 29, 2011 at 2:07 PM, Nico Kruithof <[email protected]> wrote:

> Hello,
>
> I'm trying to develop a Qt user interface around OpenSceneGraph Views
> (using the CompoundViewer). I've seen the OsgViewerQt but was wondering
> whether the OpenGL rendering could be done in an independent thread. Having
> rendering and the user interface in the same thread makes the user
> interface irresponsive when rendering becomes really slow (a few seconds
> per frame).
>
> My thought was to create a osg-window from a separate render thread and
> forward all events from Qt to the render thread where they are handled. I
> could block from the Qt thread on an event if necessary. Now if I create an
> independent view using createGraphicsContext() it creates the window as
> expected, however it shows up in the task bar as a separate window. Is it
> possible attach the graphics context to the Qt widget that is the
> placeholder in the Qt interface?
>
> --
> Nico Kruithof
> nghk.nl
>
>


-- 
Nico Kruithof
nghk.nl
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to