2010

Table Of Contents
4 Play the simulation using the playback controls at the bottom of the
Maya window.
The cube bobs, pitches and rolls in the ocean.
5 In the Attribute Editor, click the locatorShape tab and in the Extra
Attributes section, modify the following options. These serve as inputs
to the expression.
Buoyancy: 0.75
Roll: 0.1
Pitch: 0.2
Increasing Buoyancy makes the box float more and sink into the ocean
less. Decreasing the Roll and Pitch values causes the cube to roll less from
side to side, and pitch less forwards and backwards as a result of the wave
motion.
Beyond the lesson
In this lesson, you learned that ocean effects are different from the dynamic
and non-dynamic volume fluid effects. An ocean effect is created with a plane
and shader rather than a container and fluid properties. With ocean effects
you learned how to:
Create an ocean plane and shader.
Create a preview plane to see the displacement of the shader without
rendering.
Modify ocean shader attributes to customize the look of the ocean.
Make geometry bob and move in the ocean.
To learn more about ocean shader attributes, look at the ocean shader examples
that are included with Maya (in the Fluid Effects menu). Some of these
826 | Chapter 16 Fluid Effects