-
Notifications
You must be signed in to change notification settings - Fork 38
How to use
gpsnmeajp edited this page Nov 7, 2019
·
19 revisions
「動かない」と言う前に、まずこちらの手順で試してみてください。
それでも思うように動かないときは、よくある質問をご確認ください。
sh_akiraさんのVirtualMotionCapture(v0.36~)が必要です。
https://sh-akira.github.io/VirtualMotionCapture/download.html
※旧バージョン(~v0.35)では使えません!!!!
可能な限り最新の先行リリース版をお使いください。
動作確認済み環境
- Windows 10
- UniVRM-0.53.0_6b07
- uOSC v0.0.2
- Unity 2018.1.6f1 (5.6.3p1以上)
- Steam VR
- HTC Vive
なお、EasyMotionRecorderを使うことで、モーションの記録も可能になります。
注意点があります。下のよくある質問をご確認ください。
注意!
VMCとUnityで同じボーン位置のVRMを読み込むようにしてください!
シェーダーはUnity側で変更できますので、VRMを作る段階ではとりあえずUnlitとかで構いません。
EVMC4Uを使用する前に、まずバーチャルモーションキャプチャーを正しく使用できている必要があります。
なお、EVMC4Uは、あくまでバーチャルモーションキャプチャーとUnityを繋ぐもので、
バーチャルモーションキャプチャー無しででどうこうできるものではありません。
動画: https://youtu.be/L5dkdnk5c9A
- Unityを準備する
- ExternalReceiverPackをダウンロードして新しい3Dプロジェクトに入れる
最新版
安定版 - 読み込みたいVRMファイル入れて、ExternalReceiverSceneを開いて配置する(あるいはExternalReceiverプレハブを配置する)
- Scene ViewでExternalReceiverに、読み込んだVRMのGameObjectを「Model」に割り当てる
- 再生して実行開始
- VirtualMotionCaptureを起動して、OSCモーション送信を有効にする
(v0.36以降のみ存在します)
- VirtualMotionCaptureでキャリブレーションする。
UnityPackage内には以下を同梱しています。
- Unityを準備する
- ExternalReceiver.csをダウンロードして、動かしたいプロジェクトに入れる
- UniVRMをダウンロードして、動かしたいプロジェクトに入れる
https://github.com/vrm-c/UniVRM/releases - uOSCをダウンロードして、動かしたいプロジェクトに入れる
https://github.com/hecomi/uOSC/releases - 読み込みたいVRMファイル入れて、Sceneに配置する
- Scene ViewでCreate Empty
- Inspectorで、ExternalReceiver.csと、uOSC Serverを割り当てる
- ExternalReceiverに、読み込んだVRMのGameObjectを「Model」に割り当てる
- uOSC ServerのPortをVirtualMotionCaptureに合わせる(デフォルト: 39539)
- 再生して実行開始
- VirtualMotionCaptureを起動して、OSCモーション送信を有効にする
(v0.36以降のみ存在します)
- VirtualMotionCaptureでキャリブレーションする。
- Open Unity project.
- Download ExternalReceiverPack and install.
Latest
Stable - Drag&Drop your VRM file, and Open "ExternalReceiverScene", Place VRM Model.
(or put "ExternalReceiver" prefab on your scene) - put VRM Model game object on ExternalReceiver's "Model" in Scene View.
- Let's Play.
- Start VirtualMotionCapture, And turn on "Enable OSC motion sender"
(required more than v0.36)
- Calibration on VirtualMotionCapture.
- Open Unity project.
- Download "ExternalReceiver.cs" and put in.
- Download "UniVRM" and put in. https://github.com/vrm-c/UniVRM/releases
- Download "uOSC" and put in. https://github.com/hecomi/uOSC/releases
- Drag&Drop your VRM file, and Place VRM Model.
- "Create Empty" in Scene View.
- Attach "ExternalReceiver.cs" and "uOSC Server"
- put VRM Model game object on ExternalReceiver's "Model" in Scene View.
- Set uOSC Server's "Port" to VirtualMotionCapture's Port. (Default: 39539)
- Let's Play.
- Start VirtualMotionCapture, And turn on "Enable OSC motion sender"
(required more than v0.36)
- Calibration on VirtualMotionCapture.