Hi Preet, thanks for the hints. >From what I've seen you render to the FBO by using the QOpenGLFramebufferObject class, instead of setting up the osg camera for rendering to FRAME_BUFFER_OBJECT as target.
I'll try the same approach with the context switch and see if that helps. Ricky On Sat, Jun 1, 2013 at 8:10 AM, Preet <[email protected]> wrote: > Hi Riccardo, > > I can't speak to the specific slow down you're encountering with context > switches. I tried to solve a similar problem (osg in qt quick) but I don't > use context switching -- I could never figure out how to get that to work > correctly so I'll have to go through what you did carelfully :) > > Have you checked out the following docs: > > > http://doc-snapshot.qt-project.org/qt5-dev/qtquick/qtquick-visualcanvas-scenegraph.html > > http://doc-snapshot.qt-project.org/qt5-dev/qtquick/quick-scenegraph-textureinsgnode.html > > http://doc-snapshot.qt-project.org/qt5-dev/qtquick/quick-scenegraph-textureinthread.html > > And here's my attempt [copy of the method used in the docs but with an osg > embedded viewer and *no* context switching -- I just reset some specific > state] > > https://github.com/preet/scratch/tree/master/qt5/qquickfboviewport > > _______________________________________________ > 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

