From BlenderWiki
If you want to document Blender 2.5 features please edit pages under Doc:2.5/Manual.
If a "2.5" page doesn't exist please copy the text from 2.4x Manual and edit the new page (i.e. you should paste the wikitext from this 2.4x page to this new 2.5x page and then update the latter with 2.5 features)[edit] Skinning
Once the Armature - the 'character skeleton' - is ready it is necessary to parent the character 'skin' to it. Skinning is a technique for creating smooth mesh deformations with an armature. Essentially the skinning is the relationship between the vertices in a mesh and the bones of an armature, and how the transformations of each bone will affect the position of the mesh vertices. When making a child of an armature, several options are presented:
- Parent to Bone
- In this case, a popup menu appears allowing you to choose which bone should be the parent of the child(ren) objects. This is great for robots, whose body parts are separate meshes which are not expected to bend and deform when moving.
- Parent to Armature
- Choosing this option will deform the child(ren) mesh(es) according to their vertex groups. If the child meshes don't have any vertex groups, they will be subject to automatic skinning. Indeed a second menu appears, asking:
- Don't create groups - does nothing else, automatic skinning is used;
- Name Groups - creates empty vertex groups whose names matches the bone names, but no vertices are assigned to them;
- Create from closest bone - you want to create and populate automatically vertex groups.
- Create from bone heat - creates vertex groups and assigns weights to each vertex using the 'bone heat' algorithm. This sometimes 'fails to find a solution'; if this happens, in edit mode use P > All loose parts, which will split the mesh into multiple meshes, and then attach the armature to each mesh.
- Parent to Armature Object
- Choosing this option will cause the child(ren) to consider the armature to be an Empty for all intents and purposes.
If you are going for character animation then most of the times you will parent your character to the Armature using the "Armature" Option. You are strongly advised to use the Name Groups option. This will provide you with the groups already created, saving the tedious operations of creating an naming them, and possibly avoiding typing errors. The Create from closest bone feature is currently under heavy development. It will use the "Bone types" which can be defined via the menu right of the IK Tog Buttons (EditButtons for an Armature) for optimal result. Currently only the Skinnable and Unskinnable options are working. The first option makes Vertex Group be created (and populated, if this is asked for) for the given bone, the second option causes that bone to be ignored in the skinning process.
Automatic Vertex Assignment
The current vertex assignment algorithm creates non-optimal vertex groups, hence it is highly recommended to check
each group, one by one.
|
If a mesh does not have any vertex groups, and it is made the child of an armature, Blender will attempt to calculate deformation information on the fly. This is very slow and is not recommended. It is advisable to create and use vertex groups instead.
Weight and Dist
The Weight and Dist settings next to the IK are only used by the automatic skinning which is a deprecated feature because it requires lot of CPU, produces slow downs and worse result than other methods.
|
Vertex groups are necessary to define which bones deform which vertices. A vertex can be a member of several groups, in which case its deformation will be a weighted average of the deformations of the bones it is assigned to. In this way it is possible to create smooth joints.
To add a new vertex group to a mesh, you must be in Edit Mode. Create a new vertex group by clicking on the New button in the mesh's Edit Buttons Link and Materials Panel, Vertex Groups group.
A vertex group can be subsequently deleted by clicking on the Delete button. Change the active group by choosing one from the pull-down group menu. Vertex groups must have the same names as the bones that will manipulate them. Both spelling and capitalization matter. This is why automatic name creation is so useful!
Rename a vertex group by Shift-LMB on the name button and typing a new name. Note that vertex group names must be unique within a given mesh.
Vertices can be assigned to the active group by selecting them and clicking the Assign button. Depending on the setting of the Weight button, the vertices will receive more or less influence from the bone. This weighting is only important for vertices that are members of more than one bone. The weight setting is not an absolute value; rather it is a relative one. For each vertex, the system calculates the sum of the weights of all of the bones that affect the vertex. The transformations of each bone are then divided by this amount meaning that each vertex always receives exactly 100% deformation.
Assigning 0 weight to a vertex will effectively remove it from the active group. To remove vertices from the current group select them and click the Remove button. Pressing the Select button will add the vertices assigned to the current group to the selection set. Pressing the Deselect button will remove the vertices assigned to the current group from the selection set. This is handy to check which vertices are in which group.
[edit] Weight Painting
Weight painting is an alternate technique for assigning weights to vertices in vertex groups. The user can "paint" weights onto the model and see the results in real-time. This makes smooth joints easier to achieve. To activate weight-painting mode, select a mesh with vertex groups and click on the weight paint icon (Weight Paint Button.).
The active mesh will be displayed in Weight-Colour mode. In this mode dark blue represents areas with no weight from the current group and red represent areas with full weight. Only one group can be visualized at a time. Changing the active vertex group in the Edit Buttons will change the weight painting display.
Weights are painted onto the mesh using techniques similar to those used for vertex painting, with a few exceptions. The "colour" is the weight value specified in the mesh's Edit Buttons. The opacity slider in the vertex paint Buttons is used to modulate the weight. To erase weight from vertices, set the weight to "0" and start painting.
Baking Actions
If you have an animation that involves constraints and you would like to use it in the game engine (which does not evaluate constraints, and is not covered in this Book), you can bake the Action by pressing the BAKE button in the Action Window ToolBar. This will create a new Action in which every frame is a KeyFrame. This Action can be played in the game engine and should display correctly with all constraints removed. For best results, make sure that all constraint targets are located within the same armature.
|
You can actually see the Action Ipo associated to a bone in the Ipo Window instead of in the Action Window if you switch to an Ipo Window (Action Ipo). The Action Ipo is a special Ipo type that is only applicable to bones. Instead of using Euler angles to encode rotation, Action Ipos use quaternions, which provide better interpolation between Poses.
Quaternions use a four-component vector. It is generally difficult and unintuitive to describe the relationships of these quaternion channels to the resulting orientation, but it is often not necessary. It is best to generate quaternion KeyFrames by manipulating the bones directly, only editing the specific curves to adjust lead-in and lead-out transitions.
[edit] Context menu
Weight paint mode also has a 'Paint' context menu with the following options:
- Apply bone envelopes to vertex groups - calculates vertex groups and weights from the bone envelopes
- Apply bone heat weights to vertex groups - similar to the option when initially parenting (see above), uses the 'bone heat' algorithm to create vertex groups and assign weights to vertexes
- Various scripts









![[]](/skins/blender/open.png)
