Getting Started with Crowds
 
 
 

The Crowd object lets you assign behaviors to delegates. This lesson teaches you how to add the Crowd and Delegate objects and make them work together. You'll add a behavior and assign it to the smallest possible crowd: a single delegate.

Create a delegate:

  1. On the Create panel, click Helpers.
  2. In the Object Type rollout, click Delegate.
  3. In the Top viewport, drag to add a Delegate helper object.

    By default, the tip of the pyramid-shaped delegate object is its front; it helps to think of it as an arrowhead pointing in the direction it wants to go. Adding a delegate in the Top viewport points it forward, in terms of the default world orientation.

Create a crowd object:

The Crowd helper object is also available from the Helpers > Object Type rollout.

Add a behavior:

You'll add a behavior and apply it to the delegate. The easiest behavior to use is the Wander behavior.

  1. Go to the Modify panel, which shows rollouts for the Crowd object.
  2. In the Setup rollout, click the New button.
  3. In the Select Behavior Type dialog, choose the Wander behavior and click OK.

    The default name of the behavior, Wander, appears in the list at the bottom of the Setup rollout, and a new Wander Behavior rollout appears in the Modify panel below the Setup rollout. You can find a full explanation of its parameters in the 3ds Max User Reference, in the Crowd Animation User Interface chapter.

    When you have multiple behaviors in a scene, this rollout shows the type and parameters for the current behavior, as indicated in the list.

  4. Change the name of the Wander behavior by clicking in the list box and typing a new name, such as My Wander Behavior.

    The name doesn't change in the behavior's rollout title. The rollout title always displays the name of the behavior type.

    TipWhen a scene contains multiple behaviors of the same type, give them distinguishing names so you don't confuse them.

Assign the behavior:

Next, you'll apply the behavior to the delegate.

  1. On the Setup rollout, click the Behavior Assignments button.

    This dialog lets you group delegates into teams and assign behaviors and cognitive controllers to delegates and teams. You'll cover the more advanced functionality in later lessons.

  2. In the Behavior Assignments And Teams dialog > Assignment Design group, click the two list entries: Delegate01 and My Wander Behavior.

    When you select both a delegate and a behavior, the New Assignment button becomes available. This vertical button, situated between the Assignment Design and Behavior Assignments group, is shown as a column of right-pointing arrows.

    The New Assignment button, outlined in red

  3. Click the New Assignment button.

    The assignment is added to the list in the Behavior Assignments group. By default, it has the highest available Weight value of 1.0 and is active.

  4. Close the dialog by clicking OK.

Solve the simulation:

You're now ready to solve the simulation. During the solution, the software generates animation keys for delegates to which you've assigned behaviors.

  1. On the Modify panel > Solve rollout, click the Solve button.

    The software solves the simulation, while the bar graph under the Solve button shows its progress. As a result, the delegate wanders randomly around on the world grid.

    The wandering delegate's trajectory

    TipYou can see the delegate's trajectory by selecting the delegate, then going to the Motion panel and clicking Trajectories.
  2. Play the animation.

    You might need to change viewport settings to see the delegate throughout the animation.

  3. Experiment with the behavior and delegate settings and continue to solve. Remember that you must have the Crowd object selected to see the various crowd parameters. Also, you must have the delegate selected to see the trajectory.

    Here are some things to try:

Tip To save time, turn on the Keyboard Shortcut Override Toggle, and then press the S key to run a solution when the Modify panel is active.

Now that you've learned the basic features of the crowd system, you can work with real crowds that contain more than a single delegate.

Next

Using Multiple Delegates and Behaviors