SimpleMeshes.gltf does not load
Closed this issue · 2 comments
https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/SimpleMeshes/glTF
This file does not load because it does not declare a "scene" property. See:
https://github.com/assimp/assimp/blob/bdbad4c64fc618fe3e078e08c5b565bc15e16974/code/glTF2Asset.inl#L1191
The spec says that if no scene is declared, nothing needs to be rendered, but the resulting behavior is that nothing ends up loaded at all and the import ultimately returns a null pointer.
Hi, what software are you asking about?
Just to give some context: There have been some changes related to that between glTF 1.0 and glTF 2.0. This was discussed in #815 (and admittedly, I wasn't entirely up to date how it sorted itself out)
It's true that the corresponding scenes should be updated according to the latest state of the discussion (meaning that a scene
property will have to be inserted in some of the Simple...
example scenes).
But in any case: If there is no scene
given, the viewer/converter should not crash or so. (If it does, this should be reported as an issue in the respective viewer/converter library)