Example: Animating Flow Settings

Set up the Populate flow:

  1. Start or reset 3ds Max and zoom the Perspective viewport out so the grid is very small.
  2. Open the ribbon to the Populate tab and click to turn on (Create Flow).
  3. Click twice to create a single straight flow.
  4. Right-click to create only a single flow segment, then right-click again to end flow creation.
  5. Go to the Modify panel. On the Flow rollout, change the Direction to Forward.
  6. In the time controls, near the lower-right corner of the 3ds Max window, click (Time Configuration).
  7. On the Time Configuration dialog, change the Length of the animation to 500, then click OK.
  8. On the ribbon Populate tab Simulate panel, change Number Of Frames to 500 as well.
    Note: As you might have noticed already, when Number Of Frames is greater than the current Time Configuration frame count, clicking Simulate extends the frame count to include the entire simulation. For example, the default animation length is 100 and the default Number Of Frames is 300. If you don't change either of these values and then click Simulate, Populate extends the frame count to end at frame 300. But to animate Flow parameters, you need to be able to set keys along the timeline, so it's easiest to adjust the frame count before you animate.

Animate the flow Density:

  1. Click to turn on (Auto Key).
  2. Make sure you are at frame 0, then in the Flow rollout Portals group, drag the Density slider all the way to the left.

    Red brackets appear on the slider, indicating that there is an animation key for this setting.

  3. Go to frame 500—you can drag the time slider or click (Go To End)—and drag the Density slider all the way to the right.
  4. Turn off (Auto Key).
  5. Click (Go To Start).

Run the simulation:

  1. On the Simulate panel, click (Simulate).

    3ds Max shows a progress bar while the simulation calculates.

  2. When the simulation is done, play the animation.

    Initially the flow is empty. Then a single pedestrian appears, and then another.

    As the animation progresses, pedestrians appear more frequently.

    If the Modify panel is open while the animation plays, you can see the Density slider moving as well as the people in the viewport.

Animate the Running value:

  1. Turn on (Auto Key) once again, then click (Go To End).
  2. On the Modify panel, drag the Running slider all the way to the right.
  3. Drag the time slider to frame 200.
  4. Drag the Running slider back to the left (no runners).

    This prevents any runners from appearing in the simulation before frame 200.

  5. Turn off (Auto Key), then click (Go To Start).

Simulate again:

  1. On the Simulate panel, click (Simulate) once more.
  2. When the simulation is done, play the animation.

    The animation begins as the previous animation did, but after frame 200 more and more runners appear.