Unlimited WordPress themes, graphics, videos & courses! Unlimited asset downloads! From $16.50/m
Advertisement
  1. 3D & Motion Graphics
  2. Maya

Understanding Particles and Dynamics in Maya—Part 4

by
Difficulty:IntermediateLength:ShortLanguages:

Preview

1. Table Cloth Simulation

Step 1

Open Maya.

Open MayaOpen MayaOpen Maya
Open Maya

Step 2

Create a Polygon Cylinder shape in the perspective viewport.

Polygon CylinderPolygon CylinderPolygon Cylinder
Polygon Cylinder

Step 3

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

Subdivisions AxisSubdivisions AxisSubdivisions Axis
Subdivisions Axis

Step 4

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

Polygon PlanePolygon PlanePolygon 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 HeightSubdivisions Width and HeightSubdivisions 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 nClothnMesh  Create nClothnMesh  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 CollidernMesh  Create Passive CollidernMesh  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.

SimulationSimulationSimulation
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 SegmentsLess and High SegmentsLess and High Segments
Less and High Segments

2. Flag Simulation

Step 1

Create a Polygon Plane in the perspective viewport.

Polygon PlanePolygon PlanePolygon 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 HeightSubdivisions Width and HeightSubdivisions 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 nClothnMesh  Create nClothnMesh  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 modeVertex modeVertex 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  TransformnConstraint  TransformnConstraint  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 windNo windNo 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 Wind Speed
Wind Speed

Step 8

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

Flag blowingFlag blowingFlag 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 ConstraintRemove Dynamic ConstraintRemove 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 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 ColliderCreate Passive ColliderCreate 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 SurfacenConstraint  Point to SurfacenConstraint  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 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 poleAnimate the flag poleAnimate 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 simulationFlag simulationFlag 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
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.