Creating the nParticle slag

 
 
 

To create the nParticle object that simulates the slag flow, you use the Ball style nParticles. Note that later in the lesson, you convert the nParticle object to an output mesh.

To create the nParticle object

  1. Set the nParticle style to Balls by selecting nParticles > Create nParticles > Balls.
  2. Create the nParticle and emitter objects by selecting nParticles > Create nParticles > Create Emitter > .

    The Emitter Options (Create) window appears.

  3. In the Emitter Options (Create) window, reset to the default values by selecting Edit > Reset Settings and do the following:
    • For Emitter name, type emitter_slag.
    • If the Solver list appears, select nucleus1.
    • In the Basic Emitter Attributes section, set Emitter type to Volume.
    • In the Volume Emitter Attributes section, select Sphere from the Volume shape list.
    • In the Volume Speed Attributes section, set Away from center to 0 and Directional speed to 5.0.
  4. Click Create.
  5. In the Outliner, rename the new nParticle object to nParticle_slag.

Next, position the emitter_slag object at the end of the spout (geo_slag_bin_spout) so that the slag appears to pour from the bin onto the slag chute.

To position and set the emitter

  1. In the Outliner select the emitter_slag object.
  2. In the Channel Box enter the following values:
    • Translate X: -9.0
    • Translate Y: 12.8
    • Translate Z: -2.8
    • Rotate Y: -23.6
    • Scale X: 0.7
    • Scale Y: 0.7
    • Scale Z: 0.7

    For this simulation, only a brief stream of nParticles is necessary, rather than a continuous flow. To create the slag stream, you key the emitter_slag object so that it stops emitting particles at frame 85. This produces enough slag to slide down the chute and into the tub before the simulation ends.

  3. Rewind the simulation to the start frame.
  4. In the Channel Box, set Rate to 100.
  5. Right-click Rate and select Key Selected from the pop-up menu.

    A keyframe is added to the Time slider.

  6. Play the simulation to frame 85, right-click Rate and select Key Selected.
  7. Step the simulation forward one frame and in the Channel Box, set Rate to 0.
  8. Right-click on Rate and create another keyframe.
  9. Play the simulation.

    Most nParticles emit onto the chute, slide down the incline, and land in the slag tub. Notice that some of the nParticles fall off the chute and land on the foundry floor.

    Since you will later convert the nParticles to an output mesh, you want to ensure that no particles move too far away from the location of the nParticle mass as this enlarges the bounding box area of the resulting mesh. The Output Mesh Max Triangle Resolution defines the area of the mesh bounding box.

    If stray nParticles cause the bounding regions of the mesh to grow beyond the area set by Max Triangle Resolution, Maya increases the Mesh Triangle Size to compensate. A sudden increase in Mesh Triangle Size can quickly reduce the quality of the mesh and distort its appearance. The distortions in the mesh are often seen as flickering or popping on the mesh surface. For this reason, nParticle output meshes work best for small scale effects, such as liquid flows that do not cover a large area of the scene.

    For information about Max Triangle Resolution and Mesh Triangle Size, see Output Mesh in the nParticleShape node section of the nDynamics Help.

In this section of the lesson, you turn down the Bounce attribute so that the particles have no additional inertia making them fall off the slag chute.

To set Bounce

  1. In the Outliner, select nParticle_slag.
  2. In the Attribute Editor, switch to the nParticle_slagShape tab, and in the Collisions section, set Bounce to 0.
  3. Rewind the simulation and play it back.

    With Bounce at 0, the nParticles stay on the slag chute. Also, the particles are causing some side-to-side movement, which will make the texture look more realistic when applied.

    If the problem with particles escaping persists after you turn down the Bounce, you can use either Friction or Stickiness to further stabilize the particles on the chute.