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

Understanding Particles and Dynamics in Maya—Part 16

by
Difficulty:IntermediateLength:ShortLanguages:

Preview


1. Creating a Fluid Dynamics Container

Step 1

Open Maya.

Open Maya
Open Maya

Step 2

Jump in Dynamics mode. Go to Fluid Effects > Create 3D Container and draw a 3D fluid container in the view port as shown in the following image.

Dynamics mode
Dynamics mode

Step 3

Go to fluidShape1 attribute and set the value of Base Resolution to 50. Set the values of Grid Size to 10 each.

Base Resolution
Base Resolution

Step 4

Go to Container Properties. Set the options of Boundary X to None, Boundary Y to –Y Side and Boundary Z to None.

Container Properties
Container Properties

Step 5

Change the values of Temperature and Fuel to Dynamic Grid.

Temperature and Fuel
Temperature and Fuel

Step 6

Go to fluidShape1 attribute and under Display rollout, set the Boundary Draw option to Bounding box.

Display rollout
Display rollout

Step 7

Under Dynamic Simulation rollout, set the High Detail Solve option to All Grids and set the value of Solver Quality to 40.

Dynamic Simulation
Dynamic Simulation

Step 8

Go to Auto Resize to turn on Auto Resize option and turn off Resize Closed Boundaries and Resize in Substeps options. Set the values of Auto Resize Threshold to 0.002 and Auto Resize Margin to 5.

 Auto Resize
Auto Resize

2. Creating Emitter

Step 1

With the fluid container selected, go to Fluid Effects > Add/ Edit Contents > Emitter and click on the option box.

Fluid Effects  Add Edit Contents  Emitter
Fluid Effects > Add/ Edit Contents > Emitter

Step 2

In the Emitter Options window, set the Emitter type to Volume and Emitter Shape to Sphere. Click on Apply and Close

Emitter Options
Emitter Options

Step 3

A spherical emitter icon appears in the view port. Put the emitter icon on the grid.

A spherical emitter icon appears
A spherical emitter icon appears

3. Attribute Keyframes

Step 1

Animate the value of Scale. With the emitter selected, set the value of Scale to 1 at the first frame and click on Set Key. Go to the fifth frame and set the value to 3. 

Go to the sixth frame and set the value back to 0.

Scale
Scale

Step 2

With the fluid container selected, set the value of Density/ Voxel/Sec to 50 at the first frame. Keep the same value at the tenth frame also. 

At the eleventh frame, set the value to 0

Density Voxel Sec
Density/ Voxel/ Sec

Step 3

Set the value of Heat/ Voxel/ Sec to 100 at the first frame. Keep the same value at the tenth frame also. 

At the eleventh frame, set the value to 0

Heat Voxel Sec
Heat/ Voxel/ Sec

Step 4

Set the value of Fuel/Voxel/Sec to 10 at the first frame. Keep the same value at the fifth frame also. 

At the sixth frame, set the value to 0

Fuel Voxel Sec
Fuel/ Voxel/ Sec

Step 5

Go to Fluid Emission Turbulence rollout and set the values of Turbulence and Detail Turbulence to 1.

Fluid Emission Turbulence
Fluid Emission Turbulence
Step 6

Go to Lighting rollout and turn on Self Shadow option set the value of Shadow Opacity to 1.

Self Shadow option
Self Shadow option

Step 7

Go to Field > Volume Axis and draw an icon in the view port.

Field  Volume Axis
Field > Volume Axis

Step 8

Set the value of Volume Shape to Sphere.

 Volume Shape
Volume Shape 

Step 9

Go to Volume Speed Attributes rollout and set the values of Away From Center to 50, Along Axis to 15, Turbulence to 5 and Detail Turbulence to 1.

Volume Speed Attributes
Volume Speed Attributes

Step 10

Go to Window > Relationship Editors > Dynamic Relationships.

Window  Relationship Editors  Dynamic Relationships
Window > Relationship Editors > Dynamic Relationships

Step 11

In the Dynamic Relationships Editor, select fluid1 and volumeAxisField1

Close the window.

Dynamic Relationships Editor
Dynamic Relationships Editor

Step 12

Go to Content Details > Density rollout and set the value of Density Scale to 1, Dissipation to 0.100, Diffusion to 0.025 and Noise to 0.010. 

Content Details  Density
Content Details > Density

Step 13

Go to Velocity rollout and set the value of Swirl to 15.

Velocity rollout
Velocity rollout

Step 14

Go to Turbulence rollout and set the values of Strength to 0.025 and Frequency and Speed to 0.5.

Turbulence rollout
Turbulence rollout

Step 15

Go to Temperature rollout and set the values of Buoyancy to 12, Dissipation to 0.5 and Turbulence to 5.

Temperature
Temperature

Step 16

Go to Fuel rollout and set the values of Reaction Speed to 0.005, Air/ Fuel Ratio to 21, Ignition Temperature to 1 and Light Released to 1.

Reaction Speed
Reaction Speed

Step 17

Go to Shading > Color rollout and set the color as shown in the following image. Set the values of Color Input to Density and Input Bias to 1.

Shading  Color
Shading > Color

Step 18

Go to Opacity rollout and set the Opacity value as shown in the following image.

Opacity rollout
Opacity rollout

Step 19

Hit the Play button for explosion simulation. Render the frame and you will see a high detailed rendered frame of explosion as shown in the following image.

Play button
Play button

Conclusion

In the next part of the series, I'll show you how to create thick and volumetric clouds using fluid dynamics 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.