- Home /
Blender Animation not importing correctly
Hey there! I've been using unity for a fairly decent time and I've been very impressed. However, I've run into a couple of consistent problems while trying to import animated models from Blender 2.49 to unity.
When I import a model that I want to animate, I export an FBX from blender and drop it into the unity project. The first problem I meet is that when I try to export using 'all actions', the resulting model doesn't animate. ('Current action' works.)
The second, more important problem is that the objects all show very odd behaviour once it unity. The animation will usually start out alright and then gradually slow down, in some cases even running backwards, before abruptly restarting the animation. (???)
To test, I created the simplest animation I could, a simple rotation through 360 degrees, and actually deleted every other ipo curve I could in blender.
This is what the animation looks like in blender:
But when I imported it into Unity, it showed the same slowdown weirdness, and when I looked at it in Unity Animator, animator had added the other rotate tracks back in (I don't understand why), and made a huge mess of them:
In blender, I made sure to include the IPO in an action and delete any unnecessary tracks in the Action window. I couldn't export all actions though for the reasons state above.
I'm really not sure why these things are happening and what I can do about them, and nobody else seems to have this problem, so I decided to ask. Thanks for reading through my terribly wordy question, and I home someone somewhere can help me fix the problem.
Thanks in advance! :)
Edit 1: I've been exporting in different ways and playing with the import settings in unity to try and fix the problem but I'm running out of options. I thought about simply animating still elements with Unity Animator but I realised this wouldn't work for animations that use blender modifiers (and also bone animations, which I can do in blender but I don't understand in unity). so any help would be appreciated. :/ I've also changed the question title so that it's a bit easier to read and make sense of.
Answer by PProductions · Sep 11, 2012 at 06:41 PM
For blender I find that just importing .blend files works fine - save the .blend into your assets folder. I found the answer to getting all the animations into unity is to make sure the 'F' button is checked next to the action - blender wont save animations that are not currently being used. As for your keyframe problems, hopefully using straight .blend files will help? It is also easier to edit models as you go.
Unfortunately I can't seem to get it to animate at all if I simply import the blend file. :/ So far, only exporting an FBX and then importing that to unity has 'worked'.