So, i've just started with both programs, so i only know the basics. But i was poking around and I noticed there seemed to be options to animate in both programs. I was wondering if one was better than the other for creating a game animation. Also, when I was using Unity I saw an option to create a ragdoll out of several different parts, such as the torso, arms, ect. Would it be better to make different parts in blender, and then assemble them in unity, or make it all in blender? I just wanted to know the info so i could know the best way to do it and not get caught up in doing it one way and find out that I need to do it another way. Thanks!
Answer by qJake
May 15, 2010 at 04:01 AM
In terms of animations, Unity animates things differently than Blender. With Blender, you can create animations for your model, such as "Run", "Walk", "Idle", "Attack", and these will all be executed on a mesh-level. But the animations in Unity are primarily for animating properties on your GameObjects. If you want to animate the transform, scale, or rotation, you can. You can also even animate script variables using the Unity Animator.
So it really depends on what you want to do. If you want to create character animations for specific movements that pertain to your character, do them in Blender. If you want to create animations that affect Unity-specific variables, then use the Unity Animator.
And (I'm no expert on Ragdolls having never used one before), but I think what you do is assemble the entire thing in Blender, with a bone structure and mesh hierarchy, and then you import your mesh into Unity where you assign each sub-mesh to the Ragdoll component and Unity will create all the proper constraints and joints for you to create the "Ragdoll" effect.
I kind of get the idea of what you are saying, but just to comfirm: Are you saying that to use blender for the animations that are on a physical level, and unity animations for in-game animations that have a direct affect on the gameplay?
Basically, yes, though whatever you decide, you should always be consistent. Don't code your "Walk" animation for your character in Blender, and then code the "Run" animation in Unity.
Alright. Thanks for the good advice!
Answer by Digitalos
Jun 13, 2010 at 08:57 AM
Unity will import Blender's armature based animations, that is bone-based, and nothing else. There is a useful script in Blender under the Animation script menu where it will bake constraint based animations for you, ie if you have things in Blender that drive your models bones, and animate it, this script will make the much needed animation sequences that Unity can read. Failing that I think you can animate in either program effectively. I suggest watching JoeRobbins' tutorial on animation here: http://blogs.unity3d.com/2010/05/05/animation-view-video-tutorial/
Answer by MaDDoX
May 16, 2010 at 02:39 PM
In our game we use Unity's built-in animations for character movement along paths and FBX-imported animations for the actual character deformations. Just make sure you have both nested, ie. the character (w/ animation) parented to the gameobject that has the path animation.
You could use Unity's animation system for simple in-model animations like a box being cracked open and so forth. Unity animations main advantages are:
You can re-sample your animations frame rate on the fly without any penalty - it's really a world of difference having stuff animated at 60-90 frames per second instead of 15 or 30 FPS. In the other hand, imported animations at such rates will sensibly increase in size.
You can fire scripts at specific points of your animation, a bit like what you do in Flash, eliminating the need of guesswork or any timing logic to get, for instance, that particle effect showing up in a specific moment of the animation.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
No one has followed this question yet.
How to animate inside Unity? (Blender animation is finished)
How Can I Get The Pants to Not Move?
[Modeling] Splitting and Rejoining Objects -- Good or bad practice?
Quick Blender to Unity Question
Position of GameObject changes when animating