Jump to content
  • Advertisement
imola

Animation from Blender to Unity

Recommended Posts

Hey there! 1f642.png?_nc_eui2=AeFk-zlVlx-6JEN4mIONh:)
I would like to ask a quick question about Unity and Blender programs. The animation imports wrong somehow and I cannot figure it out why is that. Any help would be greatly appreciated! Have a nice day!

Share this post


Link to post
Share on other sites
Advertisement

what exactly is wrong with the animation? Does it fail to import altogether? Does it import animations that are completely wrong or are they mostly correct and just have a few things that are off?  Are you importing the .blend file or exporting and importing some other format?

Share this post


Link to post
Share on other sites

The file (FBX) imports just fine, but the animations are off. - the idle animation has the feet sliding across the ground and the run animation makes the legs flop around (seemingly as if unity tries to snap the foot to the forward axis)..! 

The rig has been set up as humanoid in unity and is all green. 

 

Share this post


Link to post
Share on other sites
Posted (edited)

Without seeing the animations I wouldn't be able to say for sure by my gut feel is that there are problems with interpolation between keyframes and the representation of rotation between the two platforms. If blender, for example was specifying rotation using euler angles in any order other than x y z for the angles and unity simply converted same orientations at the keyframes to use the order x y z the interpolation would come out differently. When you select the misbehaving bones in blender what do you get in the drop down in the rotation properties? (seen as XYZ Euler in this image)

 animation_drivers_workflow-examples_obje

 

You can then check the animation curves in unity and see what values it uses to represent the rotation

AnimationEditorEventTooltip.png

If unity is using rotatoin.x, rotation.y, and rotation.z and blender is using something different then your rotation interpolation would be weird

Edited by HappyCoder

Share this post


Link to post
Share on other sites

Hey @HappyCoder, thank you so much for your help and your detailed answer, I really appreciate it! Have a nice day! 

Share this post


Link to post
Share on other sites

Although I love the fact that blender is free, I find that it dosent play well with other 3rd party software. When Exporting and Importing I encounter lots of bugs.  Have you though of using Maya LT, its only $35 a month.

Share this post


Link to post
Share on other sites

Blender will integrate seemlessly with Unity. There's no need for export/import since the .blend format is directly supported. You don't even have to apply your modifiers, so your models remain in an editable state. Just save and go back to Unity. This workflow has saved me hundreds of hours already.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!