Can't use custom GLTF models in 5.15.1
-
I use this example to load my 3d Models:
https://github.com/KDAB/qt3d-examples/tree/master/blended-skinned-animationInside it containes SkeletonLoader, which loads robot.glsl and the result looks like this:
I tried to use my own model, but it's not loaded and these errors are shown:Qt3D.GLTFGeometryLoader: unknown buffer-view: 3 processing accessor: botmesh Qt3D.GLTFGeometryLoader: unknown buffer-view: 1 processing accessor: botmesh Qt3D.GLTFGeometryLoader: unknown buffer-view: 0 processing accessor: botmesh Qt3D.GLTFGeometryLoader: unknown buffer-view: 2 processing accessor: botmesh Qt3D.GLTFGeometryLoader: unknown buffer-view: 4 processing accessor: botmesh Qt3D.GLTFGeometryLoader: unknown buffer-view: 5 processing accessor: botmesh
In the end I tried to load the original robot model in blender/3ds max and export back to gltf without any changes, and I still get the same set of errors.
Here is the re-exported robot model via blender: https://drive.google.com/drive/folders/0B-LoKHqMYQiMTGl6WTN5OGxDT3c?usp=sharing
It should be placed to qt3d-examples-master\resources\assets\gltf\2.0\Robot\ and renamed to robot.*
Shall I use some special export settings or blender/3ds max 2021 exporters can't produce "valid" gltf files? -
I have a similar problem. I get the following error message when loading a gltf file with the QML SkeletonLoader:
[Qt][Qt3D.Renderer.Jobs][2] :0 :: Unknown buffer 0 when processing buffer view
Neither self-exported files from Blender nor files downloaded from the gltf git (glTF-Sample-Models) are working.
So I also need to know how to correctly export gltf or whether further adjustments in Qt are necessary in order to make it work.