Hi all,
I am reopening the thread
black screen with drape mode in a QOpenGLWidget.
Has anybody found a solution yet without using QtQuick?
The way I understand it is that QOpenGLWidget renders its scene into a FramebufferObject:
"All rendering happens into an OpenGL framebuffer object. [...] Keep this in mind when creating and binding additional framebuffer objects in the rendering code in paintGL(). Never re-bind the framebuffer with ID 0. Instead, call defaultFramebufferObject() to get the ID that should be bound." -
https://doc.qt.io/qt-5/qopenglwidget.htmlThe Drape-Mode of osgEarth also uses one or more FramebufferObjects. This clashes with the way QOpenGLWidget uses the FramebufferObjects. Either they both use the same objects or, osgEarth accidentally releases the ones from QOpenGLWidgets.
Is there any possibility to inject the default FramebufferObject ID for the osgEarth rendering?
Thanks in advance...