Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

Eye Tracking – Migrating from VIVE Pro Eye to Focus 3 using Unity and Wave SDK


What will you learn?

You will learn how to migrate your eye tracking project from VIVE Pro Eye to Focus 3 using Wave SDK and Unity.

Note:
In this tutorial we will use Unity 2021.3.9f1 and VIVE Focus 3.


Project Settings

  1. In Unity, switch build target to Android.
EyeTracking_Wave_Migration_Unity1.png

  1. Install the latest version of VIVE Wave XR Plugin.
EyeTracking_Wave_Migration_Unity2.png

  1. Go to Edit > Project Settings > XR Plug-in Management and enable.
EyeTracking_Wave_Migration_Unity3.png

  1. When the WaveXRPlayerSettingsConfigDialog is displayed, click Accept All.
EyeTracking_Wave_Migration_Unity4.png


Setup scene

  1. Add the EyeManager . If you have installed the VIVE Wave XR Plugin – Essence package, then you can add the EyeManager in Unity from the menu option Wave > GameObject > Add Eye Manager. Otherwise create an empty gameobject and add the EyeManager script manually.
  2. Replace the current eye tracking API calls with the following:
   Vector3 origin;
   Vector3 direction;
   EyeManager.Instance.GetCombinedEyeOrigin(out origin);
   EyeManager.Instance.GetCombindedEyeDirectionNormalized(out direction);