How Eye Tracking Works in VR and AR Headsets
By AR Compare Team ·
Eye tracking works by shining invisible infrared light at your eyes and filming them with tiny cameras. The light makes small reflections on the front of each eye, and the cameras see those reflections along with the dark circle of your pupil. Software works out from the position of the pupil and those reflections which way your eye is pointing. A headset can then tell, many times a second, which part of the view you are looking at.
The details come from eye tracking maker Tobii’s guide, the Khronos OpenXR specification, and the 2021 review of AR and VR displays by Xiong and colleagues in Light: Science & Applications. For headsets aimed at work, see the best AR headsets for work.
The 4 steps
Tobii lays out the basic process:
- Light. Infrared light is directed toward the eyes. People can’t see it, so it doesn’t distract you.
- Cameras. Cameras capture reflections from the cornea, the clear front surface of the eye, and from the pupil.
- Math. Algorithms work out where you are looking from the position of the eye.
- Mapping. That gaze direction is mapped onto a screen or the scene in front of you.
This runs continuously, in real time.
Calibration
Calibration tunes the tracker to your eyes. Tobii notes accuracy depends on proper calibration, the device itself, lighting, and how the device sits on you. When those are right, it says modern devices reach accuracy within a small fraction of a degree of your view.
What the tracker sees
Beyond where you are looking, Tobii lists several signals an eye tracker records:
- fixations, when your eyes stop to focus on something,
- saccades, the quick jumps between fixations,
- blinks,
- pupil size and how it changes.
In a headset, the main use is gaze direction.
Screen trackers and wearable trackers
Tobii describes 2 broad kinds. A screen-based tracker sits under a monitor and maps your gaze onto that fixed screen. A wearable tracker sits on your head and maps your gaze onto the real world, using a forward-facing scene camera to know what is in front of you. A headset’s tracker is the wearable kind, but it maps gaze onto the virtual scene it is drawing rather than a camera view. From that stream, research tools also build measures such as scan paths, how long you dwell on each spot, and how quickly your eyes first land on something.
What eye tracking enables
Looking to select. The OpenXR standard, which many headsets use to talk to apps, offers eye gaze as an input. Its eye gaze extension is meant for gaze good enough to aim or target things, so you can look at a button and confirm with a pinch or a tap. Google’s Android XR documentation lists eye tracking among the main inputs on XR headsets, next to hand tracking.
Saving power with foveated rendering. Your eyes only see fine detail in a small central spot. If the headset knows where that spot is, it can draw full detail there and less elsewhere. See how foveated rendering works.
Fixing focus problems. The 2021 review describes varifocal displays, which move the picture’s focus to match what you are looking at, as needing eye tracking to know how far away that is. That is a route to easing vergence-accommodation conflict.
Steering the image. Some research displays have a tiny viewing zone and need to move it to follow your pupil. The review notes this pupil steering needs real-time eye tracking. More in Maxwellian and holographic displays.
Privacy
The OpenXR specification is direct about privacy: eye tracking data is sensitive personal information and closely linked to privacy. It strongly recommends that apps ask for active, specific consent before storing or sending it.
It also sets a hard rule for devices with a permission system. Until an app has been allowed to use the eye tracker, the device must report that gaze is not being tracked and give the app no valid gaze data. On such devices, an app can’t read your gaze until you allow it.
Tobii, an eye tracking maker, is among the listed contributors to that OpenXR extension, along with people from Microsoft, Oculus, Varjo and Magic Leap.
Limits
- Fit and lighting. Tobii names lighting, posture and how the device sits as factors in accuracy, along with calibration.
- Extra hardware. Eye tracking needs its own lights and cameras aimed at your eyes, plus the processing to read them, which adds weight, power draw and cost to a headset or pair of glasses.
What to look for
If eye tracking matters to you, check whether the device lists it as a feature and whether its apps use it for selection or foveated rendering. Check the maker’s privacy settings for how gaze data is handled. For the term itself, see the eye tracking glossary entry.
Related buying guides: AR glasses for developers and XR glasses.
Frequently asked questions
How does eye tracking work in a headset?
Small infrared lights shine at your eyes, and tiny cameras watch the reflections from the front of the eye and the position of the pupil. Software turns those images into the direction you are looking, many times a second.
Can you see the eye tracking lights?
No. Eye trackers typically use infrared light, which people can't see.
How accurate is eye tracking?
Tobii, an eye tracking maker, says modern devices reach accuracy within a small fraction of a degree of your view, depending on calibration, lighting and how the device sits.
What is eye tracking used for in VR and AR?
Selecting things by looking at them, drawing full detail only where you look to save power, and in research displays, changing focus or steering the image to where your pupil is.
Is eye tracking data private?
The OpenXR standard calls it sensitive personal information and strongly recommends that apps ask for clear consent before storing or sending it. Devices with a permission system must not share gaze data until you allow it.