Lesson 3: Adding Nucleus wind to the simulation
 
 
 

Like Maya classic particles, you can use fields to animate the motion of nParticles and create the effect of nParticles flowing around obstacles, as well as other effects, such as explosions, tornadoes, and rocket exhaust. See the Dynamics tutorials in the Getting Started with Maya for particle tutorials that use fields. Although some nParticle attributes are different than Maya classic particle, you can still obtain similar results using nParticles to complete the particles, emitters, and fields section of the Dynamics tutorials.

With nParticles, you can also use the dynamic wind that is generated by the Maya Nucleus solver to affect the motion of your particle. Gravity and Wind forces that are generated by the Nucleus system are different from the Maya dynamic forces that you create when using Maya field. Nucleus forces are internal, in that they only affect Nucleus objects. Nucleus object that are assigned to the same Nucleus solver are affect by the same intensity of the solver’s wind and gravity.

Lesson setup

To ensure the lesson works as described, do these steps before beginning:

  1. Open the scene file named Smoke_Simulation_3.mb.

    This file can be found in the GettingStarted directory that you set as your Maya project:

    GettingStarted/nParticles/Smoke_Simulation_3.mb

    This scene includes textured models that have been created for you. The desk, ashtray, and cigarette provided are all polygon meshes.

In this lesson, you use the Nucleus solver wind to influence the smoke so that it drifts as it rises. Any other Nucleus objects (nCloth objects or other nParticle objects) that are assigned to the same Nucleus solver would also be affected by the force of the wind.

To set Nucleus wind in your simulation.

  1. In the Attribute Editor, click the nucleus1 tab.
  2. In the Gravity and Wind section, Set Wind Speed to 2.0.

    Wind Speed determines the force and intensity of the wind. A higher value means a fast wind speed, which has a more pronounced effect on the smoke.

  3. To set Wind Direction, do the following:
    • Set wind direction to 1 in the X axis.
    • Set wind direction to 0 in the Y axis.
    • Set wind direction to -1 in the Z axis.
  4. Set Wind Noise to 3.0.

    This adds some randomization to the wind’s direction.

  5. Play back the simulation.

    The smoke is now dispersing over a larger area and it is drifting toward the desk light.

    You can continue to adjust your smoke simulation settings, such as increasing the nParticle emission rate to 150 or adjusting the curves on the Radius Scale, Color, and Opacity Scale ramps.

Beyond the lesson

In this lesson, you learned how to add Nucleus wind to your nParticle effect. You can experiment with the Nucleus solver’s Wind Speed, Wind Density, and Wind Direction attributes to change the direction of the rising smoke. You can also add Maya fields, such as Volume Axis, Turbulence, or Radius, fields to effect the behavior of the smoke.

For more information and related techniques about nParticles, refer to the Maya Help.