Weighting in Physique


A Mesh does not know how to move with a Skeleton unless the Vertices of that Mesh are 'Weighted' to a Bone in the Skeleton. If a Mesh is not 'Weighted', then it will not show up in IMVU as it simply won't know what it ought to attach to.

The most common ways to 'Weight' a Mesh in 3DS MAX are by using the Skin modifier or the Physique modifier. Each of these modifiers tells a Vertex which Bone it ought to move with. The Skin modifier is the easiest to use but is the most limited. Therefore, it is mostly used for Meshes that do not have organic movement - ie. Furniture, Rooms, Accessories, Modicons.

Avatar Heads, Clothing and Pets, on the other hand, typically require more organic movement. Said another way, an Avatar head needs to move with both the Head Bone and also the Neck Bones below it. In this case, you would use the Physique modifier. Physique is harder to use than Skin but allows for a much finer degree of control.

For the purposes of this tutorial, we will be Weighting the Female Avatar Head. However, the process described in this tutorial may be applied to any product type.

IMPORTANT NOTE: In the case of any product type, please remember not to mistakenly move any Bones in the product's Skeleton. For example, in the case of an Avatar Head Mesh, the Head Bone must be in the default Orientation (ie, the exact same position and rotation as the original, MASTER Animation file) when the Parent Mesh is Exported or your head will look broken when applied in the Create Mode Editor.

Also note: If you want to learn more about Weighting the Male Avatar Head, specifically, please read through this tutorial and then consult the Head Weighting Tutorial.

Select the Mesh
In the case of the Female Avatar Head, the Female04 _Anime01 _WeightingPoseMASTER.max file that is found in the IMVU Unified Installer already contains Physique Weighting information. However, we are going to pretend like we are building a new head and need to assign a new Physique modifier to that new Head.

Once you have finished building the Geometry, assigning the material IDs, Mapping the Textures, and building the Morph Targets, its a good time to add Physique. The first thing to do is select your Parent Mesh.

Add Physique
With your Parent Mesh selected, add a Physique modifier to it (if you don't have Physique in your set of buttons, you can add it by clicking the setup button in the stack).



Attach to node
Once you have added a Physique Modifier to your Mesh, its time to get it set up for editing. Click the 'Attach to Node' button in the physique panel.

Select the Parent Object
A Skeleton for use with Physique needs an extra Bone at the end of every chain in the hierarchy. For example, this is why the 'xTipBone33' Bone lives just below the 'Head' Bone in the IMVU Skeleton hierarchy.


Although you *can* just click on the Bone in the scene, it is possible to mistakenly click on another Bone or Mesh by accident. So, I never take chances and, instead, just click the 'Select by Name' button.

Pick Object Dialog Box
In a properly Teched Skeleton, there will be a Bone that lives between the Root Bone all other Bones. In the case of the IMVU avatar, this is the Pelvis bone.

Pick the Pelvis Bone in the list and then click the 'Pick' button.


Initialize
When you click the Pick button, the 'Physique Initialization' dialog box will appear. This is the place where you set the overall properties of your Physique modifier. There are a few settings that ought to be considered when using Physique. Although playing with the settings is always a good idea, we recommend you do the following:

1. Under Vertex - Link Assignment, check 'Rigid'
2. For Blending Between Links, choose 'No Blending'
3. For Radial Falloff Envelopes, uncheck 'Create Envelopes'.
4. Expand the Link Settings and uncheck 'Continuity'.

Then, click 'Initialize'.


Vertex Edit mode
With your Physique modifier Initialized, enter Vertex Edit Mode in the modifier stack. Typically, simply editing this Mode also puts you in 'Select' Mode as well. This is good. You want to be in 'Select' Mode as you are about to select Vertices in the Mesh.


Select Vertices
In the case of the Avatar Head, it is always handy to select Vertices from either the left or right hand view. The first Vertices you are going to select are the ones you want to Weight to the Head Bone. So, you select all of the Vertices of the Head *except* the ones that you want to move with, say, the Neck.

Said in a way that applies to all Meshes, you want to select all of the Vertices that will be Weighted to a given Bone...and no others.

When you first enter Select Mode, all of the Vertices appear as white plus signs (using the default MAX Weighting color set up). The plus sign means that the Vertex is 'open' or that it doesn't yet have Weighting information. When you select a Vertex that has no Weighting information, it turns blue.


Assign to Link
Once you have all of the correct Vertices selected, click the 'Assign to Link' button. Hover your mouse over the Link you want to Weight your Vertices to. The Link is the thin red or yellow line that travels throughout the Skeleton - from Bone to Bone. When you hover your mouse over, say, the Head Bone, it will change to a cross hairs. This means that there is a Link available to assign.

Click on the Head Link.


Red = assigned
All of the Vertices that you had selected should now have turned red. This means they have Weighting assignments. However, they're not Weighted yet.


Lock Assignments
With a Link assigned to your Verts, its time to Lock those Assignments. So, click the 'Lock Assignments' button and note how all of the red plus signs become red squares. Those Vertices are now Weighted.
Now you know how to Weight Vertices to one Link using the Physique modifier.



Select Again
Now click the 'Select' button and select all of the Neck Verts. Just like you did with the first set of Verts, click 'Assign to Link'. However, this time, select the next Link down from the Head Bone, the Neck04 link, and then click 'Lock Assignments'.


Type-In Weights
In contrast to the last batch of Weighting you did on the Head Vertices, the Neck Vertices are going to be Weighted to more than one Bone. This means that they will be influenced by the movement of both Bones you Weight it to. Essentially, this is the power of Physique.

Click the 'Type In Weights' button.


Type-In Weights Dialog Box
In the dialog that follows, click to show All Links, click on the Head Bone listing and then drag the Weight slider up to 1.0.

Note: The 'Neck04' Bone is already set to '1.0' because you just Weighted the selected Vertices to that Link.

You have just set the Neck Vertices to have the same Weighting as all of the corresponding Neck Vertices in the Female Avatar Tops:

Head: 1.0
Neck04: 1.0

This means that your Head will work seamlessly with all of those Tops. Of course, it is still possible that someone out there made their Top wrong... When you're done setting the Weights on the selected Vertices, just close the Typ-In Weights dialog box.


Test, Iterate and Export
Close the Type in Weights dialog and click on the top level Physique modifier in the stack to get out of Vertex Edit Mode. Grab the Head Bone and rotate it around to see how your Head moves. The Head should feel like a solid mass moving with the Head Bone - no part of it should be mis-shaped. The Neck should move slightly with the Head Bone.

If you see any Vertices that do not move with the Head Bone, then they were not Weighted correctly or at all. Go back, select those Verts and Weight them using the process above.

If all looks good, you have completed Weighting the Head and you can Export.

To learn more about Exporting a Mesh .xmf file, please consult the Exporting the Mesh - .xmf Tutorial.
© 2017 IMVU All rights reserved