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. Cannot load gltf files with QML SkeletonLoader
QtWS25 Last Chance

Cannot load gltf files with QML SkeletonLoader

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5.15.0qmlskeletonloadergltf qt3d
2 Posts 2 Posters 527 Views
  • 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.
  • dakesseD Offline
    dakesseD Offline
    dakesse
    wrote on last edited by
    #1

    In Qt 5.15 I am trying to load a glTF file with the QML SkeletonLoader.

    Armature {
        skeleton: SkeletonLoader {
            id: skeleton
            source: "qrc:/meshes/RiggedSimple.gltf"
        ...
    

    I tried orienting on this example: KDAB/qt3d-examples/animated-skinned-mesh/.

    I downloaded the model (RiggedSimple.gltf) from the official glTF github page. For models with glTF version 1.0 an error message is prompted:

    [Warning] [Qt][default][2] :0 :: Unsupported version of glTF "1.0"
    

    Thus I assume that only glTF version 2.0 is supported. But when loading such a model a whole bunch of these errors occur:

    [Warning] [Qt][default][2] :0 :: QIODevice::read (QFile, ":\meshes\_very long cryptic path_\...KAGAAYgAIAGEAYwAGAGIAZAAEAGMAZQACAGQARgBAAGUA"): device not open
    [Warning] [Qt][Qt3D.Renderer.Jobs][2] :0 :: Unknown buffer 0 when processing buffer view
    [Warning] [Qt][Qt3D.Renderer.Jobs][2] :0 :: Unknown buffer 0 when processing buffer view
    [Warning] [Qt][Qt3D.Renderer.Jobs][2] :0 :: Unknown buffer 0 when processing buffer view
    ...
    

    If the same model is to be loaded via a QML Mesh, errors occur as well:

    [Warning] [Qt][Qt3D.GLTFGeometryLoader][2] :0 :: failed to read sufficient bytes from: _very long cryptic path_
    

    Loading it via a QML SceneLoader is also not working.

    My question now: What could be the problem here? And generally what is neccessary, whether on model export (e.g. Blender) or Qt import side, to make glTF work in Qt 5.15?

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

      Hi,

      Sorry I haven't used that yet so I won't be really useful but did you try to load the files directly from the disk rather than Qt resources ?

      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
      0

      • Login

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