[osg-users] How to update only one view in compositeviewer?

12 views
Skip to first unread message

Roman Grigoriev

unread,
Sep 14, 2012, 1:09:27 AM9/14/12
to osg-...@lists.openscenegraph.org
Hi,

I have qt app with tab widget with two views in one compositeviewer
When I switch tab I'd like not to render invisible window.
I browse source and not found any method to disable rendering on certain view

Thank you!

Cheers,
Roman

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





_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC

unread,
Sep 14, 2012, 8:30:26 AM9/14/12
to osg-...@lists.openscenegraph.org
Roman,

Have you tried view->getCamera()->setNodeMask(0x0)?

-Shayne

Roman Grigoriev

unread,
Sep 14, 2012, 9:29:46 AM9/14/12
to osg-...@lists.openscenegraph.org
yes I tried to do this but I have active second context and have qt warnings
QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined
so it doesn't help
even more if I have Vsync On to 60fps I have only 30 fps in null scenegraph in both windows and if I add to compositeviewer only one view I got 60 fps.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=50063#50063
Reply all
Reply to author
Forward
0 new messages