Creating a Water style nParticle object
 
 
 

In the first step of creating your liquid simulation, you fill a polygon water pitcher with Water style nParticles. To do this, you use the Fill Object option.

To create a Water style nParticle object

  1. Select nParticles > Create nParticles > Water.

    Selecting a Water style nParticle object presets some nParticleShape attributes including turning on Liquid Simulation attributes, turning off nParticle Self Collisions, and setting the Particle Render Type to Blobby Surface.

  2. In the Outliner, select geo_pitcher, which is contained in the grp_Pitcher object.

    This is the geometry that you will fill with Water style nParticles.

  3. Select nParticles > Create nParticles > Fill Object > .

    The Particle Fill Options window appears.

  4. In the Particle Fill Options window, select Edit > Reset Settings.
  5. From the Solver list, select Create New Solver.
  6. Ensure that Resolution is set to 10.

    Resolution specifies how many nParticles are evenly placed along the geometry’s longest axis.

  7. Ensure that Close Packing is on.
  8. Turn on Double Walled.

    Turning on Double Walled ensures that the thickness of the pitcher geometry is taken into account when it is filled with nParticles. The particles now only fill the pitcher's empty volume, rather than the space between the polygon walls.

  9. Click Particle Fill.

    Maya creates the nParticle object inside the water pitcher geometry.

  10. In the Outliner, double-click nParticle1 and type nParticle_Water to rename it, then press .

    Renaming your nParticle object makes it easier to identify when you have more than one in your scene.

    In this lesson, both the pitcher and the glass mesh will hold nParticles, so you must convert meshes to passive collision objects and assign them to the same Nucleus system as the nParticles.

To convert the pitcher and glass meshes to passive collision objects

  1. In the scene view, -select the pitcher and glass meshes.
  2. Select nMesh > Create Passive Collider > .

    The Make Collide window appears.

  3. From the Solver list, select nucleus1.
  4. Click Make Collide.
  5. Rename the pitcher and glass nRigid objects in the Outliner. For example, rename nRigid1 and nRigid2as nRigid_Pitcher and nRigid_Glass respectively.

  6. Play back the simulation.

    When you play back the simulation, notice that the nParticles do not behave as you might expect. Rather than immediately falling to the bottom of the pitcher like water, they fall slowly, as if the simulation is playing in slow motion. To make the nParticles behave realistically, you can set the Nucleus Space Scale for the simulation.

    For more information about Space Scale, see Setting Nucleus Space Scale.

To set Space Scale

  1. In the Attribute Editor, click the nucleus1 tab.
  2. In the Scale Attributes section, set the Space Scale to 0.01.

    When you reduce the Space Scale value, Maya evaluates the nParticle system as if the particles are much smaller in size. This results in a visibly increased gravitational effect on the nParticles.

  3. Rewind the simulation to the start frame, then play it back.

    When you play back the simulation, notice that the nParticles are still contained in the pitcher, but they occupy a small amount of the pitcher’s volume. Also, the nParticles appear to be pushing down as if they are under a force of pressure or compression. In the next section, you begin adjusting the Liquid Simulation attributes that make the nParticles look and behave more like a liquid.