Creating Multiple BIP Files
 
 
 

In this lesson, you'll learn how to create a different motion clip from an existing clip so you can use it in a motion flow network. You'll take an existing motion clip and convert it from freeform to footstep animation. Then you'll alter the motion somewhat, convert it back to freeform animation, and insert it as a new clip into the shared motion flow network.

Set up this lesson:

Examine an existing motion clip:

  1. Load tut_black_papa.max.

    The original black-and-white panda stands motionless in the scene.

  2. Select any part of the biped and go to the Motion panel.
  3. From the Biped rollout, click Load File and load panda_walk.bip. Play the animation.

    The panda takes several steps in a straight line.

    This motion consists entirely of freeform animation. In general, it is easier to use freeform clips in a crowd simulation because they minimize clutter in the viewports. However, for editing motion data, it is much easier to work with the motion if you convert it to footsteps first.

Convert freeform animation to footsteps:

  1. In the Biped rollout, click Convert. The Convert to Footsteps dialog opens.

    NoteThe state and name of this dialog varies depending on whether the biped already contains either freeform or footstep animation.
  2. Make sure that Flatten Footsteps to Z=0 is turned on, and Generate a Keyframe per Frame is turned off. Click OK.
  3. If footsteps don't appear in viewports, click the expansion bar on the Biped rollout to unhide the Display Group, and click the Show Footsteps.

    The converted freeform animation now appears as a simple series of editable footsteps.

Edit the footsteps:

  1. In the Biped rollout, turn on Footstep mode.
  2. In the Top viewport, select all footsteps except the first one, footstep 0.

  3. In the Footstep Operations rollout, change the Bend parameter to 10.0.

    In the Top viewport, you can see the footsteps bend subtly to the left. The biped updates to reflect the edited footsteps.

    Now, you'll convert the edited footsteps back to freeform animation and save the motion as a separate motion clip.

Convert footsteps to freeform animation:

  1. Turn off Footstep mode.
  2. Click Convert to open the Convert to Freeform dialog.

  3. Make sure that Generate a Keyframe per Frame is turned on, and click OK.

    The edited footstep motion is converted back to freeform animation.

  4. In the Biped rollout, click Save File, and save the motion clip as my_panda_walk_L10.bip.

Modify the motion flow network:

Next, you'll modify the motion flow network by adding the new moderate turn motion. You'll then create additional transitions between the new clips and the existing clips.

  1. Re-open the file my_biped_crowds04.max that you created in the previous lesson, or open tut_biped_crowds04.max.
  2. Select any part of any biped.
  3. Open the Motion panel. On the Biped rollout, make sure that Motion Flow Mode is turned on.
  4. On the Motion Flow rollout, click Show Graph.
  5. On the Motion Flow Graph toolbar, click Create Clip. Click in an empty place near the bottom of the graph to place an empty clip. Right-click an empty part of the graph to turn off Create Clip mode.

  6. Right-click the new clip in the graph. The Edit Clip dialog opens.
  7. In the Edit Clip dialog, click on Browse and open the panda_walk_L10.bip motion file. Click OK to close the Edit Clip dialog.

  8. Draw a selection region around all clips and transitions to select them, and click Create All Transitions in the Motion Flow Graph toolbar. Click Yes on the dialog that appears.

    Transitions are created between the new clip and all other existing clips.

  9. In the Motion Flow rollout, click the Save File button. Save the motion flow network as my_panda_crowd_multiple.mfe. Close the Motion Flow Graph.
  10. Select the Crowd object, go into the Modify panel, and solve the simulation again.

    The new motion clip is integrated into the crowd motion.

Save your work as my_biped_crowds05.max

In your work with the panda crowd simulation, you might have noticed that the baby pandas don't walk properly. This sometimes occurs when clips made for a specific biped (such these clips, which were made for the father panda) are used with a different-sized biped.

You can solve this problem by loading each motion clip onto the baby panda, and working with the motion to make it work for that biped. You would then create a new motion flow network with the new clips, and apply it to the baby pandas in the crowd scene.

When working with the motion clips, you might have to deactivate footsteps and create new keys for them. If you create new keys for the footsteps, you will lose the arm motion currently in the clip. To keep the arm motion, copy the biped arm motion to a track before working with footsteps, then paste the arm tracks back to the biped before saving the BIP file.

To see another version of the crowd simulation that uses different clips and a new motion flow network for the baby pandas, load the file tut_biped_crowds06.max.

Next

Troubleshooting the Simulation