MMDAgent version 1.3.1 was released.

  • fix some bugs.

=== Japanese ========================================

MMDAgent バージョン 1.3.1 を公開しました.

  •  いくつかのバグ修正.

Motion superimposition (2)

December 21, 2012

This section describes the “Motion superimposition” topic in more detail.

The following figure illustrates an example of starting these short motions sequentially in a model with four sets of bones: “head”, “body”, “arm” and “leg”. Each motion controls a different of these sets of bones, and will be started asynchronously at different timings.

When multiple motions control the same bone, the latter one will supersede the previous one by default. In this example, the “body” bone will be controlled first by the blue motion, then orange, green, red, and green again.  If you want to modify the priority of each motion, you can manually set the value by the PRIORITY option in the MOTION_ADD command.

Pressing the “B” key toggles display of the currently already started motions with its alias names.  Their controlling bones are also displayed as a skeleton icon at the upper right.

=== Japanese ========================================

「Motion superimposition」の記事で説明したモーションの重ねあわせについて,仕組みをより詳しく説明します.

ここでは下図のように「head」「body」「arm」「leg」ボーンを持つモデルを想定します.図のように青,オレンジ,緑,赤色のモーションを実行した場合を表します.また,横軸は時間です.

それぞれのボーンについて,後に重ねたモーションのほうが優先されます. 例えば「body」ボーンにおいては,青→オレンジ→緑→赤→緑の順で各モーションで指示された動きが実行されます.この優先度はMOTION_ADDコマンドのPRIORITYオプションで個別に設定することもできます.

「B」キーを押すと,実行中の全モーションのエイリアス名とそれぞれが制御しているボーンの略図を表示させることができます.

CC-BY-NC Copyright 2009-2011 Nagoya Institute of Technology (MMDAgent Model “Mei”)
CC-BY Copyright 2009-2011 Nagoya Institute of Technology (MMDAgent Accessory “NIT Menu”, MMDAgent Motion “Wait of Mei”)

Physics simulation

December 7, 2012

MMDAgent has a physics engine to simulate natural-looking movements of models.  The simulation is applied to models that contain extra definitions of rigid bodies and joints.  MMDAgent adopts the same engine as MikuMikuDance, so any physics-enabled models for MikuMikuDance can be used in MMDAgent.  The major differences in MMDAgent are:

  • The default gravity scale factor of MMDAgent is 2.0, and that may cause a feeling of the object being floating on air during simulation, if compared to MikuMikuDance.  Setting the factor to 10.0 will make the simulation closer to MikuMikuDance.  You can change the gravity scale by writing “gravity_factor=2.0”  in the configuration file (.mdf).
  • The rigid body of the floor (XZ plane) does not exist in the simulation.

Pressing “Shift+W” key in the window toggles the debug display of the rigid bodies.  The colors of the rigid bodies are based on their bone-association type.  Also pressing the “P” key will pause / resume the physics simulation, while keeping the physics status when paused.

=== Japanese ========================================

MMDAgentでは自然な動きをシミュレートするために物理演算ライブラリを用いています.MikuMikuDanceと同じライブラリを使用しており,物理演算用の定義を含むモデルがMMDAgentでも利用可能です.主要な違いは以下のとおりです.

  • 重力係数の倍率が異なります.MMDAgent のデフォルトは2.0 で,MikuMikuDanceに比べ浮いているように感じるかもしれません.10.0とするとMikuMikuDance に近い挙動になります.設定するには設定ファイル(.mdf)の中に「gravity_factor=2.0」のように値を指定します.
  • 床(XZ平面)には剛体が入っていません.

「Shift+W」キーで物理剛体の表示を切り替えられます.表示は物理剛体のボーン関連タイプによって色分けされています.また,「P」キーで物理演算を一時停止・再開することができ,停止前後で各剛体の挙動は維持されます.