Vicon MotionBuilder

https://github.com/aizwellenstan/MotionBuilder2019_Plugins

# インストール
## Vicon
Step 1.
Vicon MotionBuilder Pluginをダウンロード

Step 2.
```
C:\Program Files\Autodesk\MotionBuilder 2019\bin\x64\plugins
```

Step 3.
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/1198de7c-79b8-95d1-c56b-61a81314d8e2.png)

## UE
Step 1. 
MotionBuilder Pluginをダウンロード
https://github.com/ue4plugins/MobuLiveLink/releases

Step 2. 
unzipしてpluginファイルMotionBuilerにコピーします
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/488a7a0b-dd05-1b97-1837-a91daa981cf2.png)
```
C:\Program Files\Autodesk\MotionBuilder 2019\bin\x64\plugins
```

Step 3.
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/9550bc9f-1514-219b-6fd8-06b8a274987c.png)

## Vicon -> MotionBuilder
Step 1.
Template/Device/Vicon Stream Dvice　シーンにドロップする
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/022eff88-0766-49c3-9d72-f04bfcc3de8d.png)

Step 2.
Server Address 変更して　Onlineボタンをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/ec32665d-2638-01bb-265e-70173269dc09.png)

Step 3.
Model binding -> Create
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/d4a128ef-794a-934d-48b6-1a2f77e91129.png)

Step 4.
カメラの基本操作は
Shift + 左クリック -> 移動
Shift + 右クリック -> 回転

Step 5.
全員T-poseになったら Pause Live Streamingボタンをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/d21fb452-632e-2553-99cf-58cc87016385.png)

Step 6. Characterize
Templates/Characters/Charcter Rootにドロップします
-> Characterize -> Biped

Characters/Character 左クリック -> Rename
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/7eeddfe1-6b6e-5f2c-2e64-433b3bc62c35.png)

Step 6.
モデル(fbx ファイル）シーンにドロップします
Fbx Merge -> <No Animation>
今回はAutodeskのキャラクター Tutorials/mia_blueで
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/0735211c-1679-5a3a-8925-93bb4849626b.png)

Step 7.
Display -> X-Rayに変更します
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/e512ecc8-6ed6-4b80-fa4b-b2ecc066af3d.png)

Step 8. Characterize
Step 6 とおなじくCharacterizeください
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/0cb7ac0d-cc6c-36fc-bb0d-62068cc88887.png)

Step 9.
Renameしてダブルクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/bc0a120e-d1b9-d011-30cb-8bfb308dc5fe.png)

Step 10.
Input Type -> Character
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/4d8bbe09-999b-f231-48a4-628adc889688.png)

Active
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/d1f26b8f-8b0e-f98b-b308-42b21d20e478.png)

キャラクター人のポジションに移動するなら成功です

Step 11.
Devices/Vicon Stream Device -> Resume Live Streaming
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/15452407-b986-5527-1dcf-812e71f7663e.png)

## MotionBuilder->UE
Step 1.
Devices/UE - LiveLinkシーンにドロップします
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/9a4dee1c-0eb1-e254-6dde-4f70e9e33256.png)

Step 2.
Devices / UE - LiveLink 「...」ボタンをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/1bc2de33-ea26-13ef-ec57-528456ce140b.png)
キャラクターのRootをチェック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/3c5b2cfa-25ef-309e-f1d3-2d5e56dad55d.png)

Step3. 
Onlineボタンをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/5fa0a212-26eb-9124-6253-a26ca207bb7a.png)

Step4.
Addボタンをクリック
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/1b29912e-b24b-1b6e-f190-cd5720eb3308.png)

Step5.
StreamType Full Hierachy
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/9464d204-051f-cce9-393d-074cbdbbc1ab.png)

Step6. Unreal
Window -> LiveLink
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/1034f2db-c85f-67ce-87b6-9b3e9a8cab87.png)

Step7.
Source -> Mange Bus Source
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/c12270a5-1c0f-8f72-2882-bfdc4edc3c34.png)

Step8.
Animation BluePrint
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/399596/9ba244d8-70de-38af-7104-04b026e39a1f.png)