Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error when loading Studio3D scene
Forum Updated to NodeBB v4.3 + New Features

Error when loading Studio3D scene

Scheduled Pinned Locked Moved Solved General and Desktop
studio3dqt3dstudioqml
4 Posts 2 Posters 981 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ArasA Offline
    ArasA Offline
    Aras
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • ArasA Offline
        ArasA Offline
        Aras
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        1
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Thanks for sharing your findings !

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved