Controlling the nParticle spark behavior

 
 
 

For a spark effect, it's important to generate the arcing motion of typical hot sparks. Real sparks are a very small amount of red-hot matter which allows them to travel quickly through air. As sparks cool they slow down and eventually begin to fall. This creates the characteristic arcing motion.

To create this motion, you decrease the mass of the sparks and increase the amount of drag acting on them. You then add an external Gravity field to pull the sparks to the foundry floor.

  1. In the Attribute Editor, click the nParticle_sparksShape tab.
  2. In the Collisions section, set the following:
    • Bounce: 0.52
    • Friction: 0.18

      Increasing the Bounce and Friction makes the sparks behave more realistically when they collide with the foundry floor, slag chute, and bin.

  3. In the Dynamic Properties section, set the following:
    • Drag: 0.02

      Increasing Drag adds air resistance to the particles as they fly, slowing them down a little. This will allow the external Gravity field, which you add later, to have more of an effect on the sparks.

    • Mass: 0.2

      Decreasing the Mass lets the sparks fly higher, generating a more pronounced arc effect when external Gravity pulls them down.

  4. Rewind and play the simulation.

    The sparks are flying a little higher and less chaotically than before.

Adding an external Gravity field

By default, the nucleus node applies forces such as wind and gravity to nParticle. You can turn these forces off, and instead apply Maya fields to nParticles. When creating an nDynamics simulation, external fields are useful for controlling individual Nucleus objects.

To create an external gravity field

  1. In the Outliner, select the nParticle_sparks object, then select Fields > Gravity > .

    The Gravity Options window appears.

  2. In the Gravity Options window, select Edit > Reset Settings and do the following:
    • For Gravity field name, type gravity_sparks.
    • Set Magnitude to 31.4
    • Click Create.
  3. Rewind and play the simulation to about frame 65.
  4. Render the current frame.

    The sparks now travel in an arcing motion as they fall to the foundry floor.

    The nParticle sparks effect is now complete.