ousttrue / UniGLTF

glTF 2.0 importer and exporter for Unity 5.6 or later
MIT License
284 stars 63 forks source link

Dirty frames are getting introduced in animation - animation looks messed up #19

Closed chakitp closed 6 years ago

chakitp commented 6 years ago

Dirty frames are getting introduced in animation - animation looks messed up

Below is the gltf model which was tested on babylon js sandbox and loaded using UniGLTF plugin from Unity editor. Animations were rendered properly on babylon sandbox however dirty frames got introduced when played using UniGLTF plugin from Unity editor. (For Example: Play and observe frames form 0 to 2000 on Babylon sandbox and UniGLTF plugin on Unity editor)

Bablylon Sandbox: https://sandbox.babylonjs.com/

GLTF Model: ge_gltf.zip

ousttrue commented 6 years ago

Thank you for your feedback. I will investigate.

ousttrue commented 6 years ago

Maybe invalid quaternion interpolation.

quaternion_interpolation

chakitp commented 6 years ago

@ousttrue Your solution worked nicely for me. Thanks a lot. You Saved my day!

chakitp commented 6 years ago

@ousttrue Just out of Curosity.. Is this forked from Khronous group Unity GLTF.
Are you going to Merge this with it?

ousttrue commented 6 years ago

UniGLTF is not fork, it is my own work. I may send a PR later to Khronous. https://github.com/KhronosGroup/UnityGLTF/pull/114 👍