Dirty frames are getting introduced in animation - animation looks messed up
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 UnityGLTF plugin from Unity editor. Animations were rendered properly on babylon sandbox however dirty frames got introduced when played using UnityGLTF plugin from Unity editor. (For Example: Play and observe frames form 0 to 2000 on Babylon sandbox and UNityGLTF plugin on Unity editor)
Bablylon Sandbox: https://sandbox.babylonjs.com/
GLTF Model: ge_gltf.zip
@blgrossMS Dear Sir,
Unity GLTF plugin is very good. I appreciate all the efforts put in.
However its not usable in real environment because Animations are not playing properly and has above bug. Earlier we had integrated this plugin however because of animation issue looks like it unusable.
Could you please look into this?
Thanks in advance.
I'll take a look over the next week
Thanks for taking this as priority @blgrossMS
Here is the one more model for testing purpose. Try this with plugin as well as with babylon sandbox (Just drag drop the extracted files to babylon sandbox to run it)
Cutter 3D model: cutter_gltf.zip
Hi @blgrossMS , I am also facing same issue as @ravip mentioned for the 3d animation with UnityGLTF plugin on Unity editor .Please provide solution for the same.
Thanks .
Update: still looking into it. I think the bug probably lies within the relationship between parent and children nodes.
Thanks @blgrossMS , When you will release the fix for this issue?
Hi @blgrossMS ,
I am facing the same issue. While importing the scene from GLTFSceneimporter I am getting three types of animation clips i.e. separate for position, rotation and scale. And these clips are playing irrespective of each other means in my original animation rotation, position and scaling happened at the same time on the same click but here it behaves each partwise.
so, As per my understanding and observations instead of creating separate animations clip in (GLTFSceneImporter.cs ->Animation region) we need only one clip with all properties.
Thanks.
@blgrossMS Hello Sir, I am facing the same issue. The animations seem to work completely fine with simple animations (Single transform animation), but when several transforms are being controlled the animation adds more keys (Dirty) into the animation clip. This part is crucial for the project. Can you please take a look into it and help out?
Thank you.
Hi All, I was also facing same issue. It was due to invalid quaternion interpolation.

I fixed it in UnityGLTF/UnityGLTF/Assets/UnityGLTF/Scripts/GLTFSceneImporter.cs in ConstructClip Method. Reference
You can find it in below link. Dirty Animation Fix
Looks like this will be fixed in #234
This now loads and animates smoothly.