oframe / ogl

Minimal WebGL Library
https://oframe.github.io/ogl/examples
3.75k stars 213 forks source link

Add support for shape keys animation #228

Open monolithMktg opened 3 months ago

monolithMktg commented 3 months ago

Is there a tentative date for the Sparse Accessor packing support for GLTF/GLB shape keys animation?

Right now this line in GLTFLoader.js gives an error that bufferViews[i] is undefined: desc.accessors.forEach(({ bufferView: i, componentType }) => { bufferViews[i].componentType = componentType; });

gordonnl commented 2 months ago

What do you mean by shape keys animation? https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html Is it related to the sparse support?

monolithMktg commented 2 months ago

What do you mean by shape keys animation? https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html Is it related to the sparse support?

Thanks for the reply. Yes, for vertex animations and/or morphing targets. I do see that Sparse Accessor and Morph Targets at the top of GLTFLoader.js as a To-do item. Would be nice if it gets added soon. :)