Open amitrajput1992 opened 7 years ago
I set this up to reference a separate file on purpose. The justification is that it is not uncommon in games to have geometry separate from the animations as different teams work on them. Your point is valid though and we probably want both
Any plan on supporting this soon? Else I can setup a PR to address the same
This could be pretty interesting as I was also looking into if it was actually possible to use animations with the models.
Description
When using GLTF2ModelLoader to load in .gltf files, animations that are present in the resource are ignored, instead, there's another param 'animations' that we need to pass explicitly while setting the source to the Model component.
from #320
I have a gltf model and in the definition itself, the animations json is defined. But what I see in GLTF2ModelLoader.js, animations are only applied for the ones that are passed explicitly.
I am not sure if this is the intended behaviour with gltf2 models or should there be support for built in definition animations.
Expected behavior
Support animations built into the definition.
Actual behavior
definition animations are ignored
Reproduction
Solution
Allow definition animations as well as explicit animations.
Additional Information