Setting and moving the camera

December 27, 2013

The camera view of MMDAgent can be handled in several ways. At any time, you can see where the camera is focused by pressing the “D” key, and the current focus point will be shown as an orange cube in the scene.

focus_orange_cube

  1. Use the mouse to manually change the camera view:
    • A drag will rotate the view.
    • A drag with “Shift” key will translate the view.
    • Spinning the mouse wheel will change distance from the focus point (zoom in/out).
    • Spinning the mouse wheel while pressing the “Ctrl+Shift” keys will change the fovy (field of view, y).
  2. Use a CAMERA command in the dialog script (.fst) to define a set of camera parameters. The arguments should be given in the format described below, i.e., in the same order and values as in the article “Viewing Log Information,” except for the last argument:
      CAMERA|x,y,z|rx,ry,rz|distance|fovy|time

    Here, “time” is the number of seconds required to move the camera to the specified parameters. A value of “0” will set the parameters immediately, and “−1” will perform a smooth movement.

  3. You can provide a camera motion file (.vmd) created using “MikuMikuDance” to move the camera as programmed:
      CAMERA|camera_motion.vmd

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

カメラ視点を複数の方法で制御することができます.「D」キーを押すことで,カメラの焦点がどこにあるかをシーン内にオレンジの立方体として表示させることができます.

focus_orange_cube

  1. マウスを使って手動でカメラ視点を変更できます.
    • ドラッグで回転
    • 「Shift」キー+ドラッグで平行移動
    • マウスホイールで焦点からの距離を変更(ズームイン・アウト)
    • 「Ctrl+Shift」キー+マウスホイールで画角の調整
  2. 音声対話スクリプト (.fst) 上でCAMERAコマンドでカメラのパラメータを指定できます.「Viewing Log Information」で説明したログの左下の数字を以下のようにオプションとして与えます.
      CAMERA|x座標,y座標,z座標|回転のx成分,y成分,z成分|距離|視野角|所要時間

    最後の所要時間は変更にかける長さ(秒)です.0で即座に変更します.-1を与えるとでスムーズにパラメータが変化します.

  3. MikuMikuDanceで作成したカメラモーションをCAMERAコマンドで与えることでカメラを動かすことができます.
      CAMERA|カメラモーション.vmd

CC-BY-NC Copyright 2009-2013 Nagoya Institute of Technology (MMDAgent Model “Mei”)

MMDAgent version 1.4 Release

December 25, 2013

MMDAgent version 1.4 was released.

  • support VMD files of MikuMikuDance 7.40 and later.
  • re-design plugin framework (event/command message integration).
  • support VBO for efficient rendering.
  • add acoustic models for mobile devices.
  • add sample Makefiles for Android NDK, Visual Studio 2010, and 64-bit Cocoa framework.
  • fix some bugs.
  • update libraries (Julius 4.3, hts_engine API 1.08, and Open JTalk 1.07).

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

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

  •  MikuMikuDance 7.40以降のVMDファイルに対応.
  • プラグインフレームワークの再設計(イベント及びコマンドメッセージの統合).
  • VBOによるレンダリングの高速化.
  • モバイル機器用の音響モデルを追加.
  • Android NDK, Visual Studio 2010及び64-bit Cocoaフレームワークに対するMakefileのサンプルを追加.
  • いくつかのバグ修正.
  • 各種ライブラリ (Julius 4.3, hts_engine API 1.08, Open JTalk 1.07) の更新.

The materials in the example other than the 3-D model of “mei”, including motions, panel models, voice models, and the waveforms generated from voices, are covered under the Creative Commons license (CC BY).

  • You are free to copy and distribute this model under the license terms.
  • You must attribute the work by showing the copyright notice, as shown in the example below.
  • You can only distribute the deliberative work (modified or remixed work of this model) under the same license.

You should also carefully consult the full description of the CC BY license at Creative Commons—Attribution 3.0 Unported—CC BY 3.0.

Example:
menu

CC-BY Copyright 2009-2013 Nagoya Institute of Technology (MMDAgent Accessory “NIT Menu”)

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

Exampleに含まれる,メイちゃんの3Dモデル以外のファイル(モーション,パネル,ボイス)およびボイスから生成される音声波形のライセンスはクリエイティブ・コモンズ BYの元で配布されています.

  • 使用,配布はライセンスに従う限り無償です.
  • コピーライトを表示する必要があります(以下の例を参考に).
  • この作品を改変,変形または加工した場合,その結果生じた作品をこの作品と同一の許諾条件の下でのみ配布することができます.

クリエイティブ・コモンズ BYの要約はCreative Commons — 表示 – 3.0 非移植 — CC BY 3.0をご参照下さい.

例:
menu

CC-BY Copyright 2009-2013 Nagoya Institute of Technology (MMDAgent Accessory “NIT Menu”)