Graphics Programs Reference
In-Depth Information
Figure 17.1
Light
Camera
Fluid object sphere
Obstacle object
Domain object cube
by a cubic volume (in this case, the cube). There must be a domain for a simulation to take
place and all objects participating in the simulation must be within the domain. Any object
partially outside of the domain will not function.
In this simulation, the fluid is represented by a sphere positioned somewhere towards
the top of the domain and immediately above the cup. The size of the sphere relative to the
domain and to the other objects within the domain determines the volume of the fluid; for
instance, a large sphere relative to the domain and the cup produces a large fluid volume.
The cup is an obstacle that obstructs the
movement of the fluid. In this example, the
fluid is simply falling in space until it is ob-
structed by the cup. If the cup did not exist,
the fluid would fall until it reached the bot-
tom of the domain and then it would come to
rest as if enclosed in a transparent rectangular
container, which is defined by the shape of the
domain. With the objects placed in the scene,
nothing will happen until all the objects have
values assigned. This sets up the simulation.
Figure 17.2
Select “Domain.”
17.2.1 Domain Object Setup
In this scenario, the domain is a cube that has
been scaled to enclose the sphere and the cup.
 
Search WWH ::




Custom Search