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();
you will get a quark display result for testing files. the right code is:
osg::Camera* camera = view->getCamera();
On 11 May 2018 at 13:32, Lu Zhang <> wrote:
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?
Post generated by Mail2Forum