> For the complete documentation index, see [llms.txt](https://portalgraphvr.gitbook.io/portalgraphdokyumento/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portalgraphvr.gitbook.io/portalgraphdokyumento/portalgraphapurinoi/camera-tracking-guide.md).

# カメラトラッキング設定ガイド

Portalgraph設定

Portalgraphで制作されたアプリケーションを実行して設定画面を開き（標準ではF12キーで開く）、トラッカーアプリ自動起動にチェックし、その下のドロップダウンからCameraを選択すると、次回起動時に自動でカメラトラッキングソフトが起動します。

<figure><img src="/files/BVWzLUTWGDoVBcaHLR1J" alt=""><figcaption></figcaption></figure>

トラッカー位置はEyeCenterを選択し、適用をクリックします。目座標、目回転が全て0なら設定不要です。

<figure><img src="/files/DT0HIJEZBVGeihlCZikV" alt=""><figcaption></figcaption></figure>

「次へ」をクリックしキャリブレーション画面に遷移したら、「カメラ」をクリックします。

<figure><img src="/files/x2BQfDm0z2WD0RpeWU5k" alt=""><figcaption></figcaption></figure>

もし、PC内蔵の画面のすぐ上のWebカメラを使用し、一般的な16:9のモニターの場合、カメラトラッキング設定画面で画面サイズを入力してOKをクリックします。

<figure><img src="/files/RQCzlJH7lNeWLkOSI21Z" alt=""><figcaption></figcaption></figure>

もしもそうではない場合、上級モードをチェックして、画面サイズを手動で入力し、カメラの座標と角度を入力してください。XYZは画面に向かってそれぞれ上、右、奥方向が正方向になります。

<figure><img src="/files/fpf0zfXkzHYfrHANONvp" alt=""><figcaption></figcaption></figure>

## カメラトラッキングアプリ設定

カメラトラッキングアプリは、標準的なPC内蔵Webカメラに合わせて設定済みですので、もし本体内蔵カメラを使う場合はカメラを選択して適用をクリックするだけで設定完了です。

<figure><img src="/files/Uu6Jue2tRflyASMcYVzo" alt=""><figcaption></figcaption></figure>

特殊なカメラを使用していたり、より正確なトラッキングをしたい場合、「キャリブレーション」をクリックするとカウントダウンが始まるので、メジャーなどを使って距離を計測し、カメラの真正面50cmのところに目が来るよう顔を置いてください。カウントダウンが完了するとカメラの視野角、焦点距離が調整されます。

<figure><img src="/files/vwAe9t7A2lWh8Ma0KY7R" alt=""><figcaption></figcaption></figure>

体験を快適にするための注意点は以下です。\
・CPU負荷を下げるため、カメラ解像度は低めにする（640×360で十分です）\
・高FPS対応のカメラだと反応性が良くなります\
・広視野角のカメラだと広い範囲で動けますが、視野の外側に行くほど歪みが発生します。\
・開発者はこの視野角120度、60fps対応のカメラを使っています。<https://amzn.asia/d/8dBhXX2>\
・カメラの対応解像度、FPSは、Windowsのカメラアプリの設定の「ビデオの設定」から確認できます。

以上


---

# 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://portalgraphvr.gitbook.io/portalgraphdokyumento/portalgraphapurinoi/camera-tracking-guide.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.
