前提
HoloLens2でアイトラッキングを使用したアプリ(Dwellボタンに対して視線入力すると左上の数字がカウントアップする)を開発したのですが、アイトラッキングが反応しません。
実現したいこと
- 視線入力できるようにする
- 視線カーソル出す
試したこと
現時点で分かってることは以下の二つです。
- Unity Editor上では正常に動作するが、実機になると動かない
- 実機でもMRTK Examples Hubの中のアイトラッキングのサンプルは動かすことはできる
Unity Editor上では正常に動作するので、オブジェクト配置やスクリプトに間違いはないと思ってます。
また、MRTK Example Hubのアイトラッキングも正常に動作するので、HoloLens2側の設定(キャリブレーションとか)にも間違いがないのかなと思ってます。
考えられる原因としては、アプリケーションをビルドする際に、実機への設定の不備かなと思い、公式ドキュメントを漁ったところ、以下の3つが必要とのことですが、いずれも対処しています。
Eye tracking requirements checklist
For eye tracking to work correctly, the following requirements must be
met. If you are new to eye tracking on HoloLens 2 and to how eye
tracking is set up in MRTK, don't worry! We will go into detail on how
to address each of them further below.
- An 'Eye Gaze Data Provider' must be added to the input system. This provides eye tracking data from the platform.
- The 'GazeInput' capability must be enabled in the application manifest. This capability can be set in Unity 2019, but in Unity
2018 and earlier this capability is only available in Visual Studio
and through the MRTK build tool- The HoloLens must be eye calibrated for the current user. Check out our sample for detecting whether a user is eye calibrated or
not.
また、謎なのが1/20回くらいアプリケーション内で視線入力ができます。
なので、HMDのつける角度やHMDの締めが弱いのかなとも思ったのですが、それも違ったようです。(同じ付け方でExample Hub試してもこっちなら正常に動くから)
正直、何が原因なのかわからず詰まっています。
何か直接的な解決でなくても思い当たるところがありましたら是非教えてもらいたいです。
よろしくお願いします。
補足情報
Unity 2020.3.40f1(LTS)
MRTK2.8.0

あなたの回答
tips
プレビュー