> For the complete documentation index, see [llms.txt](https://docs.vcamapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vcamapp.com/integration/mocopi.md).

# mocopi と連携する (VCam)

Sonyのモーションキャプチャー「mocopi」との連携をサポートしています。

{% embed url="<https://twitter.com/vcamapp/status/1689123753836572672>" %}

## 連携方法

1. mocopiのアプリを起動して、モーションキャプチャーを開始します。 手順はmocopiアプリに従ってください。

![mocopi](https://github.com/vcamapp/docs/assets/8188636/a8ef381d-5af2-4bd5-8fa8-a919c74e09c8)

2. 右上のメニューから「設定」→「外部サービスとの接続設定」を選びます。

<div><img src="https://github.com/vcamapp/docs/assets/8188636/e305540d-4134-4b62-9e8f-f6730521037e" alt=""> <img src="/files/uDkuL3tqbgvvkqWAuV5L" alt="" width="375"></div>

3. VCamアプリを開いて、 ⚙️ ボタンをクリックし、「連携」タブからmocopiを有効にします。

![VCam](https://github.com/vcamapp/docs/assets/8188636/4ef7a7b3-f2e5-4664-ab36-8d4fa753bb44)

4. mocopiアプリの「外部サービスとの接続設定」で送信先を「配信支援アプリ」を選びます。次に、3のVCamの設定画面に表示されているInfoのIPアドレスを「IPアドレス」に指定して、OKを押します。 (ポート設定や送信フォーマットは画像の通り、そのままにしてください)

<img src="/files/nDIzbtLTj3NMJ4erEHTp" alt="mocopi" width="375">

もし、IPアドレスが表示されない場合は、下記のサイトなどを参考にIPアドレスを確認してください。\
<https://www.iodata.jp/support/qanda/answer/s17702.htm>

5. mocopiでモーションキャプチャーを開始 (画面下中央のボタン) すると、VCamに反映されます 🎉

## Tips / 活用テクニック

mocopiアプリはバックグラウンドでも動きます。そのため、[VCamMocap](https://tattn.fanbox.cc/posts/5134895)やiFacialMocapも同時に接続できます。

## トラブルシューティング

### VCamでアバターをクリックして選択できない

mocopiのトラッキングでの表示位置がズレている可能性があります。下記のボタンをタップして位置を修正してください。

![mocopi](https://github.com/vcamapp/docs/assets/8188636/ac6f636c-f31f-4d24-9280-bf50d1feee66)

### mocopiアプリではトラッキング開始しているのにVCamに反映されない

iPhoneとMacが同じWiFiに繋がっているか確認してください。またセキュリティソフトなどでポート「12351」が塞がっていないか確認してください。

[BVH Sender](https://www.sony.net/Products/mocopi-dev/jp/downloads/DownloadInfo.html#BVH_Sender)を使うとmocopiなしで動作確認ができます (IPアドレスは127.0.0.1を指定してください)。このアプリのモーションがVCamに反映できる場合はネットワーク周りの設定に問題がある可能性が高いです。再度ご確認ください。

### VCam側の動きがmocopiアプリ側と比べて1秒ほど遅延している

一度mocopiアプリで接続を解除し、再接続をお試しください。

### mocopiとの連携を解除したい

設定画面の連携タブからmocopiを有効にするチェックを外します。その後、トラッキングタブでトラッキング方法を選択します。もし「手」が選択できないときはmocopi連携のチェックが外れているか確認してください。

![VCam](https://github.com/vcamapp/docs/assets/8188636/fc69e9c1-f8a3-4327-a5a2-6e067680f9c7)

### mocopiで前後に動けない

現在は左右の動きだけ反映される仕様にしています。前後の動きは将来のアップデートをお待ち下さい。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.vcamapp.com/integration/mocopi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
