UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

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

Open ravip opened this issue 8 years ago • 11 comments

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

ravip avatar Jun 29 '18 11:06 ravip

@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.

ravip avatar Jul 02 '18 08:07 ravip

I'll take a look over the next week

blgrossMS avatar Jul 02 '18 16:07 blgrossMS

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

ravip avatar Jul 03 '18 08:07 ravip

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 .

supriyarasal avatar Jul 16 '18 06:07 supriyarasal

Update: still looking into it. I think the bug probably lies within the relationship between parent and children nodes.

blgrossMS avatar Jul 20 '18 06:07 blgrossMS

Thanks @blgrossMS , When you will release the fix for this issue?

supriyarasal avatar Jul 25 '18 12:07 supriyarasal

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.

SatamPratham avatar Aug 02 '18 15:08 SatamPratham

@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.

shekhar331 avatar Aug 20 '18 05:08 shekhar331

Hi All, I was also facing same issue. It was due to invalid quaternion interpolation.

curve

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

chakitp avatar Aug 28 '18 06:08 chakitp

Looks like this will be fixed in #234

ericob avatar Jan 04 '19 22:01 ericob

This now loads and animates smoothly.

AdamMitchell-ms avatar Jun 25 '19 21:06 AdamMitchell-ms