Building blocks for eye tracking in Augmented Reality AR
and Virtual Reality VR
or more generally Head Mounted Displays HMD
.
- Start Pupil Capture or Pupil Service on a Linux or macOS machine. Make sure that the Pupil Remote plugin is loaded.
- Open
Assets/scene/Calibration.unity
with the Unity3d Editor. - In Unity3d - configure the
PupilGaze
propertyServer IP
to point to the machine running Pupil Remote and set the port based on what is shown in Pupil Remote (default port is: 50020). - [HMD Hardware Dependent] Some headsets like the HTC Vive require the Open VR SDK. This SDK is is not enabled in the project by default. You can add it by going to
Edit > Project Settings > Player > Other Settings
and selecting it using the+
symbol. Make sure thatVirtual Reality Supported
is also checked - Plugin your HMD and start it up.
- Press the
Play
button in the Unity Editor. (This starts Pupil Eye Processes; check to make sure that the pupil is well detected). - To calibrate press the
C
key.
Chat with the hmd-eyes community here
Join the google group to discuss ideas and stay updated.