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

Understanding Particles and Dynamics in Maya—Part 4

by
Difficulty:IntermediateLength:ShortLanguages:

Preview

1. Table Cloth Simulation

Step 1

Open Maya.

Open Maya
Open Maya

Step 2

Create a Polygon Cylinder shape in the perspective viewport.

Polygon Cylinder
Polygon Cylinder

Step 3

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

Subdivisions Axis
Subdivisions Axis

Step 4

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

Polygon Plane
Polygon Plane

Step 5

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

Subdivisions Width and Height
Subdivisions Width and Height

Step 6

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

nMesh  Create nCloth
nMesh > Create nCloth

Step 7

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

nMesh  Create Passive Collider
nMesh > Create Passive Collider

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.

Simulation
Simulation

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.

Less and High Segments
Less and High Segments

2. Flag Simulation

Step 1

Create a Polygon Plane in the perspective viewport.

Polygon Plane
Polygon Plane

Step 2

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

Subdivisions Width and Height
Subdivisions Width and Height

Step 3

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

nMesh  Create nCloth
nMesh > Create nCloth

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.

Vertex mode
Vertex mode

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.

nConstraint  Transform
nConstraint > Transform

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.

No wind
No wind

Step 7

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

 Wind Speed
Wind Speed

Step 8

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

Flag blowing
Flag blowing

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.

Remove Dynamic Constraint
Remove Dynamic Constraint

Step 2

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

Create a cylinder
Create a cylinder

Step 3

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

Create Passive Collider
Create Passive Collider

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.

nConstraint  Point to Surface
nConstraint > Point to Surface

Step 5

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

Translate property
Translate property

Step 5

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

Animate the flag pole
Animate the flag pole

Step 6

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

Flag simulation
Flag simulation

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. 

























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.