Advertisement
  1. 3D & Motion Graphics
  2. Maya
Cgi

Understanding Particles and Dynamics in Maya—Part 6

by
Difficulty:IntermediateLength:ShortLanguages:

Preview

1. Cloth Setup

Step 1

Open Maya.

Open Maya
Open Maya

Step 2

I’ll explain the character’s cloth simulation using an arm mesh which I have made purposely for the tutorial. You can find Arm.mb file in the attachment. 

Armmb file
Arm.mb file

Step 3

To make a full sleeve cloth for the arm, create a cylinder primitive in the viewport and cover the arm mesh as shown in the following image.

Create a cylinder
Create a cylinder

Step 4

With the arm mesh selected go to Display > Hide > Hide Selection to hide the arm mesh. Alternatively, you can press Ctrl-H to apply the Hide command. 

Display  Hide  Hide Selection
Display > Hide > Hide Selection

Step 5

With the cylinder primitive selected, increase the Subdivisions Height value to 25 to add more segments to the cylinder. 

Subdivisions Height
Subdivisions Height 

Step 6

Press F11 key to jump in the face selection mode. Select the cap faces of the cylinder and delete them. Rename the cylinder mesh as Cloth.

F11 key
F11 key

2. Arm Rigging and Skinning

Step 1

Unhide the arm mesh and hide the cloth mesh.

Unhide the arm mesh
Unhide the arm mesh

Step 2

Jump in the Animation mode. Go to Skeleton > Joint Tool.

Skeleton  Joint Tool
Skeleton > Joint Tool

Step 3

Draw the bones as shown in the following image.

Draw the bones
Draw the bones

Step 4

Select the joint chain followed by the arm mesh and go to Skin > Bind Skin > Smooth Bind.

Skin  Bind Skin  Smooth Bind
Skin > Bind Skin > Smooth Bind

Step 5

You can check the skinning of the arm mesh by rotating the middle joint. You can also animate the rotation of the arm.

Animate the rotation
Animate the rotation

3. Creating Garment Simulation

Step 1

Go to Display > Show > All to unhide the cloth mesh.

Display  Show  All
Display > Show > All

Step 2

Jump in nDynamics mode. With the cloth mesh selected, go to nMesh > Create nCloth to apply the cloth modifier.

nMesh  Create nCloth
nMesh > Create nCloth

Step 3

With the arm mesh selected, go to nMesh > Create Passive Collider.

nMesh  Create Passive Collider
nMesh > Create Passive Collider

Step 4

With the cloth selected, make a right click on it and select the Vertex mode. In the vertex mode, select the indicated vertices as shown in the following image.

Select the indicated vertices
Select the indicated vertices

Step 5

With the vertices selected, press Shift key and select the arm mesh and then go to nConstraint > Point to Surface. This binds all the selected vertices of the cloth to the arm mesh.

nConstraint  Point to Surface
nConstraint > Point to Surface

Step 6

Go to dynamicContraintShape1 attribute tab. In the Connection Density Range roll out, set the Rest Length Method to Constant and the value of Rest Length to 1.

dynamicContraintShape1 attribute
dynamicContraintShape1 attribute

Step 7

Go to nucleus1 attribute tab. In the Scale Attributes rollout, set the values of Time Scale to 0.666 and Space Scale to 0.222.

nucleus1 attribute
nucleus1 attribute

Step 8

Hit the play button and you will see the cloth simulation with the movement of the arm.

Hit the play button
Hit the play button

4. Skirt Simulation

Step 1

To show the skirt simulation, I have made the lower part of the character body including waist and legs.

Skirt simulation
Skirt simulation

Step 2

Create a cone with the Subdivisions value of 42 for both Height and Axis parameters as shown in the following image.

Subdivisions value
Subdivisions value

Step 3

Press F11 key to jump in the face selection mode. Select the bottom cap face and delete it. Select and delete the upper faces also as shown in the following image. Rename it as cloth.

F11 key
F11 key

Step 4

With the cloth mesh selected, go to nMesh > Create nCloth to apply the cloth modifier.

nMesh  Create nCloth
nMesh > Create nCloth

Step 5

With the body mesh selected, go to nMesh > Create Passive Collider.

nMesh  Create Passive Collider
nMesh > Create Passive Collider

Step 6

With the cloth selected, make a right click on it and select the Vertex mode. In the vertex mode, select the indicated vertices as shown in the following image.

Vertex mode
Vertex mode

Step 7

With the vertices selected, press Shift key and select the body mesh and then go to nConstraint > Point to Surface. This binds all the selected vertices of the cloth to the body mesh.

nConstraint  Point to Surface
nConstraint > Point to Surface

Step 8

Go to dynamicContraintShape2 attribute tab. In the Connection Density Range roll out, set the Rest Length Method to Constant and the value of Rest Length to 0.111.

dynamicContraintShape2 attribute
dynamicContraintShape2 attribute

Step 9

Animate the Rotation attribute of the body so that the skirt cloth could follow the movement of the body.

Animate the Rotation attribute
Animate the Rotation attribute

Step 10

Hit the play button and you will see the skirt simulation with the rotation of the body.

Skirt simulation
Skirt simulation

Conclusion

nCloth dynamics is a great tool in Maya. In the next part of the tutorial, I'll show how to create rigid body simulation using nCloth.

Advertisement
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.