godlikepanos / anki-3d-engine

AnKi 3D Engine - Vulkan backend, modern renderer, scripting, physics and more
http://www.anki3d.org
Other
1.31k stars 86 forks source link

Fixes for skinning #106

Open SergioAlapontARM opened 2 years ago

SergioAlapontARM commented 2 years ago

Gltf 2.0 spec says that every bone must have a direct/indirect parent, so a bone's parent might not necessarily be another bone which allows the skin to have several root bones. See one of Mixamo's downloaded skeletons for an example of this. GltfImporter will already create the node hierarchy so this "indirect parent" connection will implicitly exist in the current workflow, so the changes in this PR just enable the usecases when the skin contains several bones with an indirect root parent