Error when loading Studio3D scene



  • I am trying to test integrating a Studio3D scene inside a qml application. I have the following code:

    Window {
        title: qsTr("test3d")
        width: 640
        height: 360
        visible: true
    
        Studio3D {
            id: studio3D
            anchors.fill: parent
    
            ViewerSettings {
                scaleMode: ViewerSettings.ScaleModeFit
            }
    
            Presentation {
                id: stuff3d
                source: "qrc:/SampleProject/SampleProject.uia"
    
                SceneElement {
                    id: mainScene
                    elementPath: "Cluster3D"
                }
    
                SceneElement {
                    id: masterScene
                    elementPath: "Front"
                }
    
                SceneElement {
                    id: mapScene
                    elementPath: "Map"
                }
            }
        }
    }
    

    This references the sample project and I add the sample project files to qrc so the source for presentation element is resolved. However, when I run the app I just see a black window and an stream of errors continues to repeat in the application output terminal. Here is the error that keeps repeating several times per second:

    Framebuffer blits are not supported by ES 2.0 (since ES 3.1)
    FBO incomplete
    FBO incomplete
    FBO incomplete
    FBO incomplete
    FBO incomplete
    FBO incomplete
    FBO incomplete
    FBO incomplete
    Framebuffer blits are not supported by ES 2.0 (since ES 3.1)
    

    I am running this on Linux. The sample project in Qt 3D Studio runs fine on this system so I assume 3D run time is installed. What am I missing then?


  • Lifetime Qt Champion

    Hi,

    Your application likely needs to request a context with OpenGL ES3 as a minimum. See this blog post about that matter.

    Hope it helps



  • That helped a lot, thank you! I think the key was to make the call to QSurfaceFormat::setDefaultFormat(Q3DS::surfaceFormat()); Someone on IRC pointed me to this documentation page that also had the solution:

    http://doc.qt.io/qt3dstudio/runtime/qt3d-runtime-requirements.html


  • Lifetime Qt Champion

    Thanks for sharing your findings !


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.