Animation loop is jerky,, what can I do?

I have made walking and running animations in Blender which looks very good.

When imported to Unity the right leg of the character jerks a little in his knee in one of the first frames of the sequence. It looks like he has wounded his leg or something. I can find nothing wrong in blender and I have not touched the IPO curves…

Any ideas?

Hello fellow viking!

Have you tried checking the “bake animations” checkbox in the import settings? If that doesn`t work, you should try to bake your animation inside Blender and then do a re-import into Unity.

Keep us updated!

Cheers,

Roald

Make sure you are animating at 30 fps in Blender, as it is the default for Unity importing the animations. So, if you build your animations with a different fps, you may find strange results when Unity interpolates in a different way you see in Blender.

Thanks guys, I have now changed the fps settings in blender to match the import in Unity, and sadly there was no difference…

However, Viking Roald, doesn’t baking increase the file size?

we are making an iPhone game and I want it to be somewhat space efficient :slight_smile: The sequences combined are now stretching around 2000 frames, and of course not all of those are keyed, but I imagine if they are baked they will…?

Hellois!

Baked animations shouldnt be any bigger than non-baked animations AFAIK. Ill talk to some guys in the office tomorrow and give you some more info then :slight_smile:

Did you manage to solve the jerky animation loop btw.? Make sure you haven`t checked the “loop” checkbox in the Split Animations section. That one can be a bit misleading, but keep it unchecked for now.

Try setting all rotations to Quaternion in the Animation Editor. It straightened out alot of joint skewing off the rotation plane from using Euler angles in several of my cases.
HTH
BTH

Take a look at the IPO curves of the leg bones, even if you did not touch them by hand, depending on your animating workflow maybe you have some tangents out of range.

Sorry my late reply :confused:

I’ll recheck the IPO’s to see if I can find some strangeness :slight_smile:

Thx guys!

You may also want to make double sure that your frame ranges are set up correctly…

some apps use 0 as the first frame, some use 1.
So what might appear to be the correct values in Unity might need to be adjusted.

So for example a frame range you think should be 1-30 could actually be 0-29

Sorry for necro.

Clicking Loop Pose underneath Loop Time fixed the jerky animation for me.

1 Like