you play the simulation, notice that it plays back much slower than
before. This is due to the additional calculations required for
the nParticle object’s output mesh. You can use Maya's nCache feature
to cache the simulation and play the scene at a faster speed. See
To cache your nParticle simulation
- Before caching the simulation, hide Water_Mesh object,
by selecting it in the Outliner,
and selecting Display > Hide > Hide Selection.
Hiding the output mesh
speeds up the nCaching process.
- In the Outliner,
nCache > Create New Cache> .
nCache Options window appears.
- In the Create nCache Options window, do
- Set the Cache directory to
the folder where you want your caches saved.
- Set the Cache name to LiquidSimulationCache.
- For File distribution,
select One file.
- Click Create.
Maya plays the scene
automatically and stores the frames in the directory you specified.
- After the simulation is cached, show
the Water_Mesh by selecting it in
the Outliner and selecting Display
> Show > Show Selection.
- Play the simulation.
Notice that the scene
now plays back faster. You can also scrub slowly through the timeline
and view your simulation frame-by-frame. If you change any of the
nParticle attribute settings, create a new cache to see your changes.
In the next section of
this lesson, you use the cached simulation to help optimize specific
areas of the simulation.