2010

Table Of Contents
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 776
Lesson 2: Creating a dynamic non-hair simulation . . . . . . . . . . . 777
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777
Lesson setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 778
Setting up the curtain scene . . . . . . . . . . . . . . . . . . . . 778
Making the hair collide with another object . . . . . . . . . . . 782
Assigning a Paint Effects brush to the hair . . . . . . . . . . . . 782
Setting up constraints . . . . . . . . . . . . . . . . . . . . . . . 784
Rendering the curtain scene . . . . . . . . . . . . . . . . . . . . 786
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 787
Chapter 16
Fluid Effects . . . . . . . . . . . . . . . . . . . . . . . . . . . 789
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 789
Preparing for the lessons . . . . . . . . . . . . . . . . . . . . . . . . . 790
Lesson 1: Creating a dynamic 2D fluid effect . . . . . . . . . . . . . . 791
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791
Creating a two-dimensional fluid container . . . . . . . . . . . 792
Adding a fluid emitter to a container . . . . . . . . . . . . . . . 792
Changing the behavior of a fluid . . . . . . . . . . . . . . . . . 794
Combining colors in a fluid . . . . . . . . . . . . . . . . . . . . 797
Colliding a fluid with an object . . . . . . . . . . . . . . . . . . 798
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 800
Lesson 2: Creating a non-dynamic 3D fluid effect . . . . . . . . . . . 801
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801
Creating a 3D fluid container . . . . . . . . . . . . . . . . . . . 801
Adding fluid to a container . . . . . . . . . . . . . . . . . . . . 803
Defining shader attributes for a fluid . . . . . . . . . . . . . . . 803
Texturing the contents of a fluid container . . . . . . . . . . . . 804
Adding self shadowing to texture density . . . . . . . . . . . . . 808
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 809
Lesson 3: Creating a dynamic 3D effect . . . . . . . . . . . . . . . . . 810
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
Creating a 3D container . . . . . . . . . . . . . . . . . . . . . . 810
Painting Fuel and Density into a container . . . . . . . . . . . . 811
Painting Temperature values into a container . . . . . . . . . . . 816
Adding color to Density and Temperature . . . . . . . . . . . . 817
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 819
Lesson 4: Creating an ocean effect . . . . . . . . . . . . . . . . . . . . 819
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819
Creating an ocean plane and shader . . . . . . . . . . . . . . . 820
Adding a preview plane to an ocean . . . . . . . . . . . . . . . 821
Modifying ocean attributes . . . . . . . . . . . . . . . . . . . . 822
Floating objects . . . . . . . . . . . . . . . . . . . . . . . . . . 825
Beyond the lesson . . . . . . . . . . . . . . . . . . . . . . . . . 826
xiv | Contents