sceneform-android-sdk icon indicating copy to clipboard operation
sceneform-android-sdk copied to clipboard

Filament incompatible with sanctioned glb models

Open tellypresence opened this issue 6 years ago • 3 comments

As mentioned on khronos site, the kenney models "tower defense kit" fail to load due to filament error, e.g. for towerRound_sampleF.glb:

 E/Filament: Unable to parse glb file.

with throwable CompletionException:

java.lang.IllegalStateException: Failed to load gltf

tellypresence avatar Apr 16 '20 05:04 tellypresence

I can reproduce the issue. Would you mind filing an issue here please: https://github.com/google/filament/issues? The root cause seems to be that cgltf (the glTF parser we use) itself is having issues. We've made contributions to cgltf before so we can fix this ourselves.

CC @prideout

romainguy avatar Apr 22 '20 19:04 romainguy

This asset is non-conformant because the scene is defined by a non-root node. According to the spec:

All nodes listed in scene.nodes array must be root nodes 

cgltf checks for this violation and bails. (it checks for this incgltf_fixup_pointers)

prideout avatar Apr 22 '20 21:04 prideout

Done: https://github.com/google/filament/issues/2443

tellypresence avatar Apr 23 '20 01:04 tellypresence