Understanding Particles and Dynamics in Maya—Part 4

1. Table Cloth Simulation. Step 1. Open Maya.

Understanding Particles and Dynamics in Maya—Part 4

Understanding Particles and Dynamics in Maya—Part 4

Step 2

Create a Polygon Cylinder shape in the
perspective viewport.

Understanding Particles and Dynamics in Maya—Part 4

Step 3

With the cylinder selected, increase the
Subdivisions Axis to 50.

Understanding Particles and Dynamics in Maya—Part 4

Step 4

Create a Polygon Plane in the perspective
viewport and put it above the cylinder.

Understanding Particles and Dynamics in Maya—Part 4

Step 5

With the plane selected, increase the Subdivisions
Width and Height to 50 to make the tessellation dense.

Understanding Particles and Dynamics in Maya—Part 4

Step 6

Turn on nDynamics mode. With the plane
selected, go to nMesh > Create nCloth to make the plane as cloth.

Understanding Particles and Dynamics in Maya—Part 4

Step 7

With the cylinder selected, go to nMesh >
Create Passive Collider to enable the cylinder to collide with the cloth.

Understanding Particles and Dynamics in Maya—Part 4

Step 8

Hit the play button to see the table cloth
simulation. You can press 3 key on the keyboard to make the table cloth smooth.

Understanding Particles and Dynamics in Maya—Part 4

Step 9

To get more detailed and enhanced wrinkles on the
cloth, you must increase the subdivisions of the cloth.

You can see the
difference between the cloths with fewer subdivisions and more subdivisions in
the following image.

Understanding Particles and Dynamics in Maya—Part 4

2. Flag Simulation

Step 1

Create a Polygon Plane in the perspective
viewport.

Understanding Particles and Dynamics in Maya—Part 4

Step 2

With the plane selected, increase the Subdivisions
Width and Height to 50 to make the tessellation dense.

Understanding Particles and Dynamics in Maya—Part 4

Step 3

With the plane selected, go to nMesh > Create
nCloth to make the plane as cloth.

Understanding Particles and Dynamics in Maya—Part 4

Step 4

With the plane selected, make a right click on it
and select the Vertex mode. In the vertex mode, select the extreme left
side’s vertices of the plane vertically as shown in the following image.

Understanding Particles and Dynamics in Maya—Part 4

Step 5

With the vertices selected, go to nConstraint
> Transform. The transform property of the selected vertices is locked
now and these vertices will not take part in the simulation.

Understanding Particles and Dynamics in Maya—Part 4

Step 6

Hit the play button to simulate the flag animation.
You will see the flag cloth slopes down. It seems there is no wind in the
scene.

Understanding Particles and Dynamics in Maya—Part 4

Step 7

With the cloth selected, go to Attribute Editor
> nucleus1 > Gravity and Wind and increase the Wind Speed to 20.

Understanding Particles and Dynamics in Maya—Part 4

Step 8

Now hit the play button and you will see the simulation
of flag blowing in the wind.

Understanding Particles and Dynamics in Maya—Part 4

3. Attaching Flag to Pole

Step 1

First of all you need to erase the transform
constraint from the flag. With the flag selected, go to nConstraint >
Remove Dynamic Constraint.

Understanding Particles and Dynamics in Maya—Part 4

Step 2

Create a cylinder and place it beside the cloth as
shown in the following image.

Understanding Particles and Dynamics in Maya—Part 4

Step 3

With the
cylinder selected, go to nMesh > Create Passive Collider to enable
the cylinder to collide with the cloth.

Understanding Particles and Dynamics in Maya—Part 4

Step 4

Select the left vertices of the plane, press Shift
key and select the cylinder and then go to nConstraint > Point to Surface.
This binds all the selected vertices to the pole.

Understanding Particles and Dynamics in Maya—Part 4

Step 5

With the pole selected, go to Attribute Editor
> pCylinder1 and set key on the Translate property on the first
frame.

Understanding Particles and Dynamics in Maya—Part 4

Step 5

Go to 180th frame and move the pole in X
axis a bit. You get second key frame on the timeline.

Understanding Particles and Dynamics in Maya—Part 4

Step 6

Hit the play button and you will see the flag
blowing simulation with the movement of the flag pole.

Understanding Particles and Dynamics in Maya—Part 4

Conclusion

In the next part of the tutorial, I’ll dive deeper in nCloth and show you how to create torn and tattered cloth in Maya.