Version: 2019.1 (switch to 2018.3 or 2017.4)
Exporting from other applications
2D
Other Versions

Humanoid Asset preparation

In order to take full advantage of Unity’s humanoid animationAn animation using humanoid skeletons. Humanoid models generally have the same basic structure, representing the major articulate parts of the body, head and limbs. This makes it easy to map animations from one humanoid skeleton to another, allowing retargeting and inverse kinematics. More info
See in Glossary
system and retargetingApplying animations created for one model to another. More info
See in Glossary
, you need to have a rigged and skinned humanoid type mesh.

  1. A character ModelA 3D model representation of an object, such as a character, a building, or a piece of furniture. More info
    See in Glossary
    generally consists of polygons in 3D modeling software or converted to polygon or triangulated mesh, from a more complex mesh type before export.

  2. In order to control the movement of a character, you must create a joint hierarchy or skeleton which defines the bones inside the Mesh and their movement in relation to one another. The process for creating such a jointA physics component allowing a dynamic connection between rigidbodies, usually allowing some degree of movement such as a hinge. More info
    See in Glossary
    hierarchy is known as rigging.

  3. You must then connect the mesh or skin to the joint hierarchy. This defines which parts of the character mesh move when a given joint is animated. The process of connecting the skeleton to the mesh is known as skinning.

Stages for preparing a character (modeling, rigging, and skinning)
Stages for preparing a character (modeling, rigging, and skinning)

How to obtain humanoid models

There are three main ways to obtain humanoid models to use in the Unity Animation system:

  • Use a procedural character system or character generator such as Poser, Makehuman or Mixamo. Some of these systems can rig and skin your mesh (like Mixamo) while others cannot. Furthermore, if you use these methods, you may need to reduce the number of polygons in your original mesh to make it suitable for use in Unity.

  • Purchase demo examples and character content from the Unity Asset Store.

  • You can also prepare your own character from scratch by following three steps: modeling, rigging and skinning.

Modeling

This is the process of creating your own humanoid MeshThe main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. More info
See in Glossary
in 3D modeling software (such as Autodesk® 3ds Max®, Autodesk® Maya®, or Blender). Although this is a whole subject in its own right, there are a few guidelines you can follow to ensure a Model works well with animation in a Unity Project:

  • Use a topology with a well-formed structure. The exact nature of a “well-formed” structure for your Mesh is rather subtle but generally, you should bear in mind how the vertices and triangles of the model are distorted as it is animated. A poor topology does not allow the Model to move without distorting the Mesh. Study existing 3D character Meshes to see how the topology is arranged and why.

  • Check the scale of your mesh. Do a test import and compare the size of your imported Model with a “meter cube”. The standard Unity cube primitive has a side length of one unit, so it can be taken as a 1m cube for most purposes. Check the units your 3D modeling software uses and adjust the export settings so that the size of the Model is in correct proportion to the cube. It is easy to create models without any notion of their scale and consequently end up with a set of objects that are disproportionate in size when you imported them into Unity.

  • Arrange the mesh so that the character’s feet are standing on the local origin or “anchor point” of the model. Since a character typically walks upright on a floor, it is much easier to handle if its anchor point (that is, its transform position) is directly on that floor.

  • Model in a T-poseThe pose in which the character has their arms straight out to the sides, forming a “T”. The required pose for the character to be in, in order to make an Avatar.
    See in Glossary
    if possible. This gives you space to refine polygon detail where you need it (such as the underarms). This also makes it easier to position your rig inside the Mesh.

  • While you are building, clean up your Model. Where possible, cap holes, weld verts, and remove hidden faces. This helps with skinning, especially automated skinning processes.

Skin Mesh, textured and triangulated
Skin Mesh, textured and triangulated

Rigging

This is the process of creating a skeleton of joints to control the movements of your Model.

3D modeling software provides a number of ways to create joints for your humanoid rig. These range from ready-made biped skeletons that you can scale to fit your Mesh, right through to tools for individual bone creation and parenting to create your own bone structure. To work with animation in Unity, make sure they are the root element of the bone hierarchy. A minimum of fifteen bones are required in the skeleton.

Your skeleton needs to have at least the required bones in place for Unity to produce a valid match. In order to improve your chances for finding a match to the AvatarAn interface for retargeting animation from one rig to another. More info
See in Glossary
, name your bones in a way that reflects the body parts they represent. For example, “LeftArm” and “RightForearm” make it clear what these bones control.

The joint/bone hierachy should follow a natural structure for the character you are creating. Given that arms and legs come in pairs, you should use a consistent convention for naming them (for example, “arm_L” for the left arm, “arm_R” for the right arm). Possible structures for the hierarchy include:

* HIPS - spine - chest - shoulders - arm - forearm - hand
* HIPS - spine - chest - neck - head
* HIPS - UpLeg - Leg - foot - toe - toe_end
Biped Skeleton, positioned in T-pose
Biped Skeleton, positioned in T-pose

Skinning

This is the process of attaching the Mesh to the skeleton.

Skinning involves binding vertices in your Mesh to bones, either directly (rigid bind) or with blended influence to a number of bones (soft bind). Different 3D modeling software uses different methods. for example, you can assign individual vertices and paint the weighting of influence per bone onto the Mesh. The initial setup is typically automated, say by finding the nearest influence or using “heatmapsHeatmaps are a spatial visualization of analytics data. More info
See in Glossary
”. Skinning usually requires a fair amount of work and testing with animations in order to ensure satisfactory results for the skin deformation. Some general guidelines for this process include:

  • Use an automated process initially to set up some of the skinning (see the skinning tutorials available for your 3D modeling software).

  • Create a simple animation for your rig or import some animation data to act as a test for the skinning. This should give you a quick way to evaluate whether or not the skinning looks good in motion.

  • Incrementally edit and refine your skinning solution.

  • Limit the number of influences when using a soft bind to a maximum of four, since this is the maximum number that Unity supports. If your Mesh uses more than four influences, then you lose some information when playing the animation in Unity.

Interactive Skin Bind, one of many skinning methods
Interactive Skin Bind, one of many skinning methods

Export and verify

Unity imports a number of different generic and native 3D file formats. FBX is the recommended format for exporting and verifying your Model since you can use it to:

  • Export the Mesh with the skeleton hierarchy, normals, textures and animation.
  • Re-import the Mesh into your 3D modeling software to verify your animated Model looks as expected.
  • Export animations without the Mesh.

Did you find this page useful? Please give it a rating:

Exporting from other applications
2D