[osg-users] [3rdparty] osgQt failed in QT 5.10.1 + osg 3.6

Lu Zhang feelapi at sina.com
Mon May 28 18:39:45 PDT 2018


Thanks for your reply. After digging into my code, I fixed many bugs and now I can let it run in osgQT. However, there are many issues then I give up QT + osg. 
Here I can share what I found.
1 if you do not know what's OpenGL 3, do not use it.
2 QT 5.10.1's QOpenGLWidget works in single thread mode. 
3 flightgear provide a QWindow + osg solution, which could be in multiple thread mode. 

the last issues I found is: how to setup the camera for the osgviewer::view,
if you use this code:
osg::Camera* newCamera = new osg::Camera();
view->setCamera(newCamera);
you will get a quark display result for testing files. the right code is:
osg::Camera* camera = view->getCamera();
camera->setxxxx();
view->setCamera(camera);



robertosfield wrote:
> On 11 May 2018 at 13:32, Lu Zhang <> wrote:
> 
> > Hi,
> > 
> > Just tested this in windows 10 and vs 2015 64 bits. all the test osgt files are missing.  please check the attached photo.
> > 
> 
> Have you downloaded OpenSceneGraph-Data and set OSG_FILE_PATH to it?
> 
> Was there any console output reporting issues with finding files?
> 
> Do the the standard osg examples like osgviewer work?
> 
> Robert.
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


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







More information about the osg-users mailing list