Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Gumpert · Apr 10, 2015 at 12:55 PM · animationimportblenderfbxarmature

Animations from blender going super weird

Hi, So I've made a robot character for a third person game in blender - I've only made 2 animations so far, an idle animation and a run animation. They both look fine in blender. Here's the problem - whether I import my robot into unity as a .blend file or a .fbx file, there's some terrible problem which doesn't exist in the other one. It's really annoying. Like, there's no way around it, something goes wrong no matter how i import it.

If I export my blender file as an fbx: When I import it into unity, the animations are totally messed up. Basically, the run animation looks fine, but the idle animation is sortof... a combination of the two. The upper body does the idle animation - you can see the robot breathing and his scarf blowing in the wind, but his legs are frozen mid step from the run animation. He's sort of floating with his legs stuck on one frame (not the first frame, like a random one in the middle somewhere) of the run animation, while the rest of him is just standing still breathing calmly, with his arms by his sides. It's hilarious. but really annoying. This happens both in the preview window thing and in game if i try to get him to do this animation.

If I import my blender file directly: I don't know why this happens, but somehow the idle animation is like... changed slightly. For this animation he breaths in, out, in, out. Then it repeats. What's weird is that when he's about half way through each breath, he suddenly shakes, really weirdly. just slightly, but you can see his head go back, the forward, then back really quickly, like a jack in the box that's been punched in the face. only far less extreme, and much faster. what's even weirder is that it doesn't happen the first time he breathes in. only when he breathes out and the second time he breathes in. I've gone back to blender to have a look and it's definitely not happening there.

I think the strangest thing about all of this is that I can fix both of these problems by importing my mesh in the other format - it's just so annoying that no matter how I import it, one of these things happens.

Here's some possibly useful information: -blender 2.71 -unity 4.3 free version -importing armature type as "generic" -mesh has no single root bone - there are three root bones. i thought that might be the cause of the fbx problem, so i made a single root bone and set it as the parent of the other three, but it didn't solve anything. -I'm using the NLA editor thing in blender -animation compression is off in the import settings

Usually when I have a problem it's because i've done a stupid, but i can't think why this would happen... This has got to be one of the weirdest issues i've ever run into making a game, it kinda feels like there's a problem with one of the two programs or something. I dunno, maybe not. But yeah, thanks for reading all this. If it'd help, i can send you a copy of the .blend/.fbx/.unitypackage or whatever of this stuff, just ask

Thanks,

James

Comment
Add comment · Show 9
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image RedBadgers · Apr 11, 2015 at 03:33 PM 0
Share

Have you checked your animation transition and clamp times?

avatar image Gumpert · Apr 11, 2015 at 10:54 PM 0
Share

yeah, i tried all this with the clamp times i used in blender, and with the animations looped so i didn't really need transitions in the animator controller

avatar image SomeGuy22 · Apr 11, 2015 at 11:45 PM 0
Share

Do you have animation keyframes for all your bones in all the animations?

avatar image Gumpert · Apr 12, 2015 at 09:23 AM 0
Share

yup. at the begining of each animation i have a keyframe for the rotation and location of every bone

avatar image meat5000 ♦ · Apr 12, 2015 at 10:07 AM 0
Share

Post your file

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by meat5000 · Apr 12, 2015 at 04:15 PM

In Blender,

Go to NLA Editor. Delete all entries. (Highlight them in the NLA editor and press X on the keyboard).

Go to Dope Sheet.

Use secondary dropdown to select Action editor.

Select the rig and highlight all bones. Make sure you are in Pose Mode. Select Idle animation and go to NLA editor to see a new track has been made. Go back to Dope sheet and do the same for Run.

Go back to Object mode.

Save and Export as FBX.

During export Select Armature, Mesh and Other boxes (using Shift-key), change 'Forward' from -Z to Z, Deselect Leaf Bones.

Export.

Comment
Add comment · Show 11 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gumpert · Apr 12, 2015 at 04:44 PM 0
Share

Did that actually work when you imported it into unity? I tried it and it was even worse... Now the Idle animation has the run animation's arms as well as the legs, only the scarf and the breathing are what they're meant to be. When you say highlight all bones, you mean select all bones in pose mode, right? And when you say save and export you mean save and export as fbx? That's weird if that worked when you tried it, maybe we have different versions of unity or blender or something... Did you see what the problem was with the fbx one in the unitypackage I uploaded?

avatar image meat5000 ♦ · Apr 12, 2015 at 04:46 PM 0
Share

It did work for me, yes.

See for yourself

https://www.dropbox.com/s/hw665bx6bbs8vo4/Robot2.fbx?dl=0

The trouble is that there are unnecessary linked 'users' of the animation. For Unity, Blender Animations should be linked through the Action editor. It appears you had done this and also linked it through NLA editor.

avatar image Gumpert · Apr 12, 2015 at 04:47 PM 0
Share

Oh wow... Now this is very strange... I tried it again, but this time I clicked the little button that just says "F" on it by the animations... I clicked that for the run and the idle animation, and this time the idle animation was fine, and it was the run animation that was weirded... It was all idle except the scarf which was running...

avatar image Gumpert · Apr 12, 2015 at 04:57 PM 0
Share

What version of blender do you have? Can you send me the fbx you exported so I can see if it works with my version of unity? The only thing I can think of that we could be doing differently is that we could have different versions of programs.........

avatar image meat5000 ♦ · Apr 12, 2015 at 05:12 PM 0
Share

Linked it 26 $$anonymous$$utes ago :D

I'm on 2.73. There wont be much difference.

When it is correct the animations will appear in Unity like so

Armature|Idle

Armature|Run

The F button forces a fake-user. This links the datablock to the active object. When it is correct there will be a 2 next to the F, not a 3.

When you see 3 it is linked to another object, which will usually cause you problems like weird rotations and translations.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is it possible to add an animation to a mesh with no animations? 1 Answer

Importing .blend file - Missing Animation 1 Answer

Import from Blender animated proxy armature of a linked library character 3 Answers

Importing multiple objects with animations 0 Answers

Importing FBX Animations Working Once Only? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges