gltf_viewer crashes when loading a gltf with instanced meshes (EXT_mesh_gpu_instancing) #7451
Replies: 2 comments
-
Comments by @romainguy in #3401 in 2021 indicate that EXT_mesh_gpu_instancing is not supported. Is this still true? Also the code in filament/third_party/cgltf seems to have the code that parses EXT_mesh_gpu_instancing. But this is exactly the code that fails with:
the error seems to be in
where buffer_view is NULL. |
Beta Was this translation helpful? Give feedback.
-
I tried replacing Would appreciate any gotchas/pointers from the filament maintainers on how to proceed to get the instanced meshes supported. |
Beta Was this translation helpful? Give feedback.
-
Does filament support gltf's EXT_mesh_gpu_instancing?
Not sure whether the parser used underneath gltfio (cgltf?) supports this extension?
If the support is not there, is it simple enough to add this in gltfio C++ lib?
A simple gltf file with two instanced boxes created with threejs:InstancedMesh() and exported as gltf (see attached file), crashes gltf_viewer sample app on Linux.
cube_instances.gltf.gz
gltf_viewer, of course, works fine on gltf that contains non-instanced meshes generated/exported with threejs.
The gltf file containing the instanced meshes renders fine in both https://gltf-viewer.donmccurdy.com/ and https://sandbox.babylonjs.com/
Beta Was this translation helpful? Give feedback.
All reactions