Creating Particle Motion
 
 
 

Create particle motion:

In this procedure you’ll use the Speed By Icon operator and a Path constraint to define the motion of particles along a spline through the main tube.

Within an event, a Speed-type operator (Speed, Speed By Icon, Speed By Surface) can give particles velocity: that is, speed and direction. Moving particles along a specific path can be difficult, but luckily there’s a convenient method within Particle Flow. Using the Speed By Icon operator, you can define motion along a path that the particles can follow with a variety of controls.

  1. Continue from the previous lesson or load the file VizGasFlow_create_motion.max from the \tutorials\mech_design folder. Open Particle View if necessary.
  2. In the Emit Particles event, right-click and choose Append > Operator > Speed By Icon.

    This adds a Speed By Icon operator to the bottom of the event.

    This also automatically creates a new object in your scene at the world origin (0,0,0): a helper object named Speed By Icon 01. If you animate this icon, the particles can inherit its motion.

    The Speed By Icon helper object appears at the world origin.

  3. Press H to open the Select From Scene dialog, choose the Speed By Icon helper object, then from the 3ds Max main menu, choose Animation > Constraints > Path Constraint.

    If you move the mouse in the viewport, you can see a rubber-band dashed line connecting the icon to the mouse cursor. The software is requesting a path (spline) to follow.

  4. In the viewport, click the spline running through the center of the main tube (PathMain), or press H and then double-click PathMain.
  5. On the Motion panel, which opened when you applied the Path constraint, find the Path Parameters rollout. Turn on Follow, and then, in the Axis group, choose the Z option.

    The Speed By Icon 01 icon is now constrained to the PathMain spline over the course of the animation and is oriented perpendicular to the spline. If you play the animation at this point you’ll see that the particles explicitly follow the Speed By Icon 01 helper object.

  6. Rename the Speed By Icon 01 helper Icon Main for easier reference.
  7. In Particle View, click the Speed By Icon operator (named Icon Main), then in the parameters panel Icon Animation group, make sure Event Duration is active.

    This will allow the particles to reference the animation of the icon regardless of when they were emitted, as long as they are still contained within the Emit Particles event.

Turn the particles into arrows:

In this procedure you’ll use the Shape Instance and Display operators to cause the particles to appear in the scene as arrow-shaped objects.

The flow currently contains Render and Display operators, but there isn’t any geometry assigned to the particles. The particles appear in the viewports as arbitrary shapes, but they don’t render at all. You can use the Display operator to change the way in which particles appear.

  1. Click the Display operator and change Type to Geometry.

    The particles now appear as X shapes. Particle Flow uses this display method to indicate an error when it is trying to display particles as geometry, but there is no geometry to display. To resolve this, you'll define the geometry for particles that are in the Emit Particles event.

  2. From the depot, drag a Shape Instance operator into the Emit Particles event. You can place it anywhere in the event, but be sure to drop it when the blue line appears; if you drop it when a red line appears, you'll replace the action under the mouse cursor.

    The Shape Instance operator lets you use mesh objects in your scene as particles. With the non-event-driven particle systems such as PArray, you can only use one object at a time, but Shape Instance enables more flexibility by letting you assign groups of objects and cycle through them as particles are emitted.

  3. Click the Shape Instance operator in the Emit Particles event, click the Particle Geometry Object button (currently labeled “None”), and select the ArrowMesh object in the scene.

    The name “ArrowMesh” appears on the button.

    You’ve now defined the ArrowMesh object to be the geometry all particles will use within the Emit Particles event. Because you previously set the Display operator to Geometry, you should now see ArrowMesh particles when you play the animation. They’re too big and not aligned properly, but both conditions are easy to fix.

    To make the particles smaller, you could assign a Scale operator, or you could just scale the ArrowMesh object itself, but Shape Instance includes some scaling options to save you a step.

  4. In the Shape Instance 01 operator parameters, make sure the Scale check box is on, then set Scale % to 25.0.

    Now the arrows are smaller and fit within the tube without crowding.

    Next, you'll adjust the arrows' alignment.

  5. Right-click the Emit Particles event and choose Append > Operator > Rotation from the menu.

    This adds a Rotation operator to the bottom of the Emit Particles event that you can use to specify the orientation of particles in the event.

  6. Click the Rotation operator, change the Orientation Matrix setting to Speed Space Follow, and then set the X value to 90.0.

    This forces the particles to constantly orient themselves in the direction they are traveling. Particle Flow provides two Speed Space methods: Speed Space sets the orientation once, when each particle first enters the event, while Speed Space Follow continually adjusts the orientation as particles move through the scene. By default, the three axis values are set to 0.0. However, because the ArrowMesh object is pointing along the X axis, it’s necessary to tell the Rotation operator to rotate particles 90 degrees about the X axis.

    If you play the animation now, you should see the arrows moving correctly along the PathMain spline.

    Next you'll set up tests that will cause some particles to branch off along the other splines.

Next

Creating Branching Paths