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 7

by
Difficulty:IntermediateLength:ShortLanguages:

Preview


1. Basic Shatter

Step 1

Open Maya.

Open MayaOpen MayaOpen Maya
Open Maya

Step 2

Go to Create > Polygon Primitives > Sphere and create a sphere in the perspective viewport. 

Create  Polygon Primitives  SphereCreate  Polygon Primitives  SphereCreate  Polygon Primitives  Sphere
Create > Polygon Primitives > Sphere

Step 3

Go to Create > Polygon Primitives > Plane and create a ground plane in the perspective viewport.

Create  Polygon Primitives  PlaneCreate  Polygon Primitives  PlaneCreate  Polygon Primitives  Plane
Create > Polygon Primitives > Plane

Step 4

With the sphere selected, press F9 key to jump in the vertex selection mode. With all vertices of the sphere selected, go to Edit Mesh > Detach Component.

Edit Mesh  Detach ComponentEdit Mesh  Detach ComponentEdit Mesh  Detach Component
Edit Mesh > Detach Component

Step 5

Press F11 key to jump in the face selection mode. To check whether the faces of the sphere have been detached or not, select any of the faces of the sphere and drag it out. You will see the face has been detached. 

Face selection modeFace selection modeFace selection mode
Face selection mode

Step 6

Jump in the nDynamics mode. With the sphere selected, go to nMesh > Create nCloth.

nMesh  Create nClothnMesh  Create nClothnMesh  Create nCloth
nMesh > Create nCloth

Step 7

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

nMesh  Create Passive CollidernMesh  Create Passive CollidernMesh  Create Passive Collider
nMesh > Create Passive Collider

Step 8

Press the Play button to check the simulation. You'll notice that the sphere gets shattered quite before getting hit with the ground plane.

Hit the Play buttonHit the Play buttonHit the Play button
Hit the Play button

Step 9

With the sphere selected, go to nucleus1 tab in the Attribute Editor. Set the value of Air Density to 0.

Attribute EditorAttribute EditorAttribute Editor
Attribute Editor

Step 10

Now hit the play button. You will see the sphere gets shattered after getting hit with the ground plane.

Hit the play buttonHit the play buttonHit the play button
Hit the play button

2. Volumetric Shatter

Step 1

Create a plane in the vertical position in the perspective viewport.

Create a planeCreate a planeCreate a plane
Create a plane

Step 2

Jump in the Polygons mode. With the plane selected, go to Edit Mesh > Cut Faces Tool.

Edit Mesh  Cut Faces ToolEdit Mesh  Cut Faces ToolEdit Mesh  Cut Faces Tool
Edit Mesh > Cut Faces Tool

Step 3

With the help of Cut Faces Tool, apply several random cuts to the plane as shown in the following image.

Cut Faces ToolCut Faces ToolCut Faces Tool
Cut Faces Tool

Step 4

With the plane selected, press F9 key to jump in the vertex selection mode and select all vertices of the plane.

F9 keyF9 keyF9 key
F9 key

Step 5

With all vertices of the plane selected, go to Edit Mesh > Detach Component.

Edit Mesh  Detach ComponentEdit Mesh  Detach ComponentEdit Mesh  Detach Component
Edit Mesh > Detach Component

Step 6

Press F11 key to jump in the face selection mode. To check whether the faces of the plane have been detached or not, select any of the faces of the plane and drag it out. You will see the face has been detached sucessfully.

Face selection modeFace selection modeFace selection mode
Face selection mode

Step 7

Jump in the nDynamics mode. With the plane selected, go to nMesh > Create nCloth.

nMesh  Create nClothnMesh  Create nClothnMesh  Create nCloth
nMesh > Create nCloth

Step 8

Go to Create > Polygon Primitives > Plane and create a ground plane in the perspective viewport.

Create  Polygon Primitives  PlaneCreate  Polygon Primitives  PlaneCreate  Polygon Primitives  Plane
Create > Polygon Primitives > Plane

Step 9

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

nMesh  Create Passive CollidernMesh  Create Passive CollidernMesh  Create Passive Collider
nMesh > Create Passive Collider

Step 10

Create a sphere and put it behind the vertical plane.

Create a sphereCreate a sphereCreate a sphere
Create a sphere

Step 11

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

nMesh  Create Passive CollidernMesh  Create Passive CollidernMesh  Create Passive Collider
nMesh > Create Passive Collider

Step 12

Animate the Transform Z value of the sphere so that it could pass through the vertical plane.

Transform ZTransform ZTransform Z
Transform Z

Step 13

With the vertical plane selected, go to nucleus1 tab in the Attribute Editor. Set the value of Gravity to 0.

Attribute EditorAttribute EditorAttribute Editor
Attribute Editor

Step 14

With the vertical plane selected, go to Edit Mesh > Extrude to extrude the faces of the plane a little bit. This gives a bit depth to the faces of the plane.

Edit Mesh  ExtrudeEdit Mesh  ExtrudeEdit Mesh  Extrude
Edit Mesh > Extrude

Step 15

Hit the play button. You will see the plane gets shattered after getting hit with the ball.

Hit the play buttonHit the play buttonHit the play button
Hit the play button

Step 16

The only drawback is there that the chunks are not falling down on the ground plane because there is no gravity in the scene. You need to apply the gravity field in the scene.

There is no gravity in the sceneThere is no gravity in the sceneThere is no gravity in the scene
There is no gravity in the scene

3. Applying Gravity

Step 1

With the vertical plane selected, go to Fields > Gravity.

Fields  GravityFields  GravityFields  Gravity
Fields > Gravity

Step 2

Go to gravityField1 in Attribute Editor and select Cube as the Volume Shape under Volume Control Attributes tab.

Volume Control AttributesVolume Control AttributesVolume Control Attributes
Volume Control Attributes

Step 3

Scale up the gravity cube shape and start it at the starting edge of the vertical plane so that only broken chunks get affected by the gravity.

Scale up the gravity cube shapeScale up the gravity cube shapeScale up the gravity cube shape
Scale up the gravity cube shape

Step 4

Hit the play button. You will see the broken chunks of the plane are now falling down on the ground plane due to applied gravity.

Hit the play buttonHit the play buttonHit the play button
Hit the play button

Conclusion

With this method, you can only break the shapes made by plane. To shatter different random shapes, you need to use another method which I will show in the next part of the tutorial.

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.