Miarmy Crowd Simulation Documentation (English)

Probabilities State Machine

Each action in story list can be extended into a "state", and each "state" contains a sub list of actions.

Like the below picture, the 06 and 07 are 2 states instead of regular actions,

And when we selected the 06 … STATE: walk, the third tab (Weight Story Branch) will display the sub list of actions of 06 STATE: walk, the walk is the state name. It indicates the walk state contains 3 actions walk, walkSad and walkHappy. Also each one of the action has its weight. In below sample, the walk's weight is 999, and the walkSad's weight is 6, and the walkHappy's weight is 13.

When we are using a story list, our system will sequentially playback the actions in the Story Main list, and if it encounter the state it will try to find the actions in the state and select one of the actions from the state's branch actions randomly. And the probability is based on the weights of actions.

Like the following picture, suppose our system is using story sto2, and it will playback actions from 01 to 05, and when system step into the 06, it will detect it as a "state" then it will choose one of actions in its sub actions. Walk, walkSad or walkHappy, one of them should be chosen. And when our system is choosing the actions, it will check the weights of them, so the walk's weight is 999 and has the biggest chance to be selected, whereas the walkSad have smallest chance to be selected.


Story list expanded to "state machine" usage


To add a state, in Story List Editor, we need select the …… in the All Actions column and click Add -> button, and then we need specify a state name.


Adding a "state" into the story list


To add actions into the state, we need firstly select the state. And then we need select one of the actions in the All Actions column (right side) and click add of it.


Adding action(s) into the state


To change the weights of the actions in Story Branch, we need double-click the action name and specify a new number (greater than 1) into the blank


Changing the weight of the action in state


Sentence

State machine's sentence is the same as the story list

rehearsal actions in story:?? priority 1


Use Probability State Machine

We can use this tool to control the rehearsal like animation sequence.

For example a lot of agents are dancing or a crowd of stadium people. We can make them animated like we just planned, but the state machine branch can make some variation of the actions make your scene more complex and lifelike.







Basefount Technology