[osg-users] Multiwindows with Qt and OSG from the same scene

Denis Illés denis.illes at gmail.com
Fri Feb 26 05:45:08 PST 2016


Hi,

I would like you to help me out or show me the right direction for solving my problem. Working on a larger project made with Qt (4.8.5) and OSG (3.4.0).
I have a QMainWindow with lots of tools and a QGLWidget embedded with setCentralWidget() for displaying the OSG scene.

Now I need to create at least 2 more separate windows (displaying on individual monitors/projectors - LEFT and RIGHT from my main window). My goal is to create a some sort of CAVE. The 2 extra windows should show the same scene but from different angles (different cameras I think). When making a move in one window the others should adjust as well. How can I accomplish this functionality?

Was thinking about creating more widgets as separate windows, but then the cameras wouldn't be "connected".
Or creating a new Viewer (osgViewer::Viewer / osgViewer::CompositeViewer) where I would put those 2 views and display. But there is a threading issue with Qt and the OSG and one would block the other. 

What is the best solution, the best way to go?

Thank you!

Cheers,
Eddy

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








More information about the osg-users mailing list