Motion Flow Graph Dialog

Select a biped > Motion panel > General rollout > Motion Flow Mode > Motion Flow rollout > Motion Flow Graph > Motion Flow Graph dialog

Use tools in the Motion Flow Graph dialog to add clips to the dialog window, calculate optimized transitions, set random script transition values, move and delete clips and display clip dependencies. Clips and transitions display as icons in the Motion Flow Graph dialog. The Motion Flow Graph displays when you click Show Graph on the Motion Flow rollout on the Motion panel.

The first step in Motion Flow mode is to add clips in the Motion Flow Graph for use in scripts. Clips represent all or part of a .bip file. Scripts represent different paths through the clips in the Motion Flow Graph. The first clip in the current script is red. Transitions are shown as arrows between clips, red arrows represent the path through the active script. Black transition arrows indicate unloaded scripts. A transition looping back to the same clip represents a cycle or loop.

If the biped is using a shared motion flow then the title of the graph dialog will say "Shared Motion Flow Graph", followed by the name of the shared motion flow. Shared Motion Flows are used to control multiple bipeds with one shared motion flow.

By default minimum motion loss is used to compute transitions. Optimized transitions use an algorithm that uses minimum foot sliding. Optimized transitions take longer to compute but yield very high quality results.

Random Scripts for One or More Bipeds

You can create random scripts by using the Create Random Motion command in the Motion Flow Script rollout. Random scripts are created by randomly traversing clips in a motion flow graph. To use Create Random Motion each biped must be in the same shared motion flow.

To use a shared motion flow to create random scripts for multiple bipeds, the first step is to click Shared Motion Flow on the Motion Flow rollout ,and add bipeds that will share one shared motion flow. On the Motion Flow Graph, clips are added and transitions are created between all the clips. Then Create Random Motion is used to compute a random motion for all the bipeds.

Clips and transitions are given percentages that are used by the software to generate random scripts. Percentages for clips and transitions are set in the clip dialogs and in the transition editor dialog.

You can load many clips and use Synthesize Motion Flow Graph to create all possible transitions between the clips. You can then use Optimize Selected Transitions to create optimized transitions. Once the transitions are created you can quickly create scripts with optimized transitions or generate random motions for a crowd of bipeds.

A .mfe file stores pointers to the clips, transition parameters, and scripts.

See the Motion Flow Script rollout to create scripts and transitions.

Procedures

To create clips in the Motion Flow Graph

  1. Click Create Clip on the Motion Flow Graph toolbar.

  2. Click a few times inside the Motion Flow Graph window.

  3. Click Select Clip/Transition on the Motion Flow Graph toolbar.

  4. Right-click over a clip in the window.

    A Load File dialog displays.

  5. Click Browse in the load dialog and choose a .bip file.

  6. Optionally, set the start and end frame and then click OK.

    The selected icon displays the clip name in the Motion Flow Graph; this clip can now be used for script creation.

  7. To create transitions between clips turn on Create Transition on the Motion Flow Graph toolbar and then click and drag from one clip to another clip.

To load clips and create optimized transitions

  1. On the General rollout turn on Motion Flow Mode.

  2. On the Motion Flow rollout click Show Graph.

    The Motion Flow Graph dialog displays.

  3. On the Motion Flow Graph toolbar click Create Multiple Clips.

  4. Select multiple clips in the load file dialog.

    Clips appear on Motion Flow Graph window.

  5. On the Motion Flow Graph toolbar click Synthesize Motion Flow Graph.

    Every possible transition is added.

  6. Select all the transitions in the Motion Flow Graph.

  7. Click Optimize Selected Transitions.

    Optimized transitions yield high quality transitions but they take time to compute. You can now create scripts or crowd simulations that use these transitions.

Interface

Create Clip: Select and click in the dialog window to create clips.

The clips are empty, right-click a clip using the Select Clip tool to display the Clip Properties dialog; select a .bip file and set its duration in the Clip Properties dialog. You can also set the Random Start Probability here. Random Start Probability is used when multiple clips are selected as possible start clips when you generate a random motion flow.

Note: Setting clip duration is not critical for transitions; the Transition Editor allows you to start and end a transition on any frame of a clip.

Create Multiple Clips: Load multiple motion files.

Displays an open file dialog. Select multiple files and click OK, multiple files are loaded into the Motion Flow Graph window.

Set lowest starting foot height to Z=0 (.bip files only): Sets the lowest starting foot height to Z=0. This is an option in the Load File dialog. Default=On.

In character studio 3 the height of a motion clip can be retained. This is important if you want to retain the height of a motion clip for motions adapted to characters of different sizes. If, for example, the character is jumping of a rock and you want to retain the Z position of the character, you would turn this option off. Leave this option off if Motion Flow motions must be blended that begin and end at different heights, such as three clips that have the character mounting a bicycle, riding the bicycle, and dismounting the bicycle.

Turning off this option can, however, cause a jump in the motion during motion flow transitions. Turn this on for smooth transitions in Motion Flow mode. If adaptation takes place, the height is set so that the lowest foot at frame 0 starts at the Z=0 height. This lines up clips along the Z axis and creates smooth transitions.

Create Transition: Create a transition between two clips.

Click+drag from one clip to another in the Motion Flow Graph window. Click and then mouse up to create a loop transition. It is necessary to have this capability in order to create random scripts. You can create transitions which are not included in a script.

Move Clip: Moves clips within the dialog window, this does not affect the animation.

Select Clip/Transition: Selects a motion clip or transition.

Right-click a clip to display the Clip Properties dialog. Right-click a transition to display the Transition Editor.

Delete Clip/Transition: Deletes a clip or transition.

If a script is dependent on the clip, a dialog displays a warning; clicking OK on the dialog deletes the clip and the script that is dependent on it.

If you delete the selected clips and transitions from a shared motion flow, it will delete all the scripts from all the bipeds sharing that motion flow which are dependent on those clips and transitions.

Clip Mode: Edit biped footsteps and limbs for the selected clip. Use Set Key on the Keyframing rollout to set biped limb keys. Clips turn green in the Motion Flow Graph window in Clip Mode.

Show Script Dependencies: Displays the scripts that use the selected clip.

If you push the Show Script Dependencies button on a shared motion flow graph, it will check all the bipeds sharing that motion flow for scripts dependent on the selected clips and transitions.

Select Random Start Clips: Turn on and select clips in the Motion Flow Graph window.

Press CTRL+click to add clips. Selected clips are used by Create Random Motion in the Motion Flow Script rollout to start on one of the selected clips based on percentage. If three clips are selected using the default weighting of 100 then each clip has an equal chance of being the start clip.

Show Random Percentages: Displays clip and transition percentages in the Motion Flow Graph window.

Random start clips display in purple and display their probability of starting a random script. This also shows the probability (0 - 100) that each transition will be chosen. Create Random Motion in the Motion Flow Script rollout uses clip and transition percentages to generate random scripts.

Optimize Selected Transitions: Select one or more transitions and then click Optimize Selected Transition to optimize them. Displays the Transition Optimization dialog to set the location of the transition.

Optimized transitions take time to compute. A progress bar is displayed when you use this feature. Minimum foot sliding is the method used to compute an optimized transition.

Show Optimal Transition Costs: Displays costs in the Motion Flow Graph window. The lower the number the better the transition.

Synthesize Motion Flow Graph: Creates transitions between every clip. The transitions are not optimized. Use Optimize Selected Transitions to optimize the transitions. Optimized transitions take time to compute but are high quality.

Check All Transitions: Checks the graph for overlapping transitions and transitions whose length is too long for the clip. It informs you of any problems, or tells you that none have been found.

Auto Clip Names: Names the clip based on the name of the motion file.

Turn off to name a clip yourself.

 

 

 


Comments