[osg-users] Migration from OSG 3.1.5 to 3.4.0

Emmanuel Pot emmanuel.pot at bentley.com
Thu Dec 10 23:31:43 PST 2015


Hello,

I have a project based on (among other dependencies) Qt and OSG.While trying to migrate from Qt4 to Qt5 I noticed that the OSG I was using (3.1.5) could not compile from scratch against Qt5. I started to tune a bit 3.1.5 to make it compile successfully, but I came accross what seems to be a known issue: my application crashed at startup with the Qt error: "Cannot make QOpenGLContext current in a different thread". 
I noticed then that the documentation was saying that Qt5 was fully supported in OSG 3.4 onwards, so I started to migrate to OSG 3.4.0. Unfortunately, I get the exact same error. Taking a look at the osgviewerqt example, I switched my application to OSG single thread mode. 
Now I get the following issues:
* plenty of "QOpenGLContext::swapBuffers() called with non-exposed window, behavior is undefined" in the logs
* the text displayed when pressing 's' is really ugly and almost unreadable (no blending, and the background behind the graphs is pitch black instead of transparent)

If I try to use the osgviewerqt, I get the exact same 2 issues. My question is the following: is Qt5 really fully supported ? Am I the only one with those issues ? 
I am using Qt 5.5.0 and compiling with Visual Studio 13 in 64 bits if that can help.

Thank you!

Cheers,
Emmanuel

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







More information about the osg-users mailing list