google-ar / sceneform-android-sdk

Sceneform SDK for Android
https://developers.google.com/sceneform/develop/
Apache License 2.0
1.23k stars 604 forks source link

Filament incompatible with sanctioned glb models #1055

Open tellypresence opened 4 years ago

tellypresence commented 4 years ago

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
romainguy commented 4 years ago

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

prideout commented 4 years ago

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)

tellypresence commented 4 years ago

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