How Head Tracking Works in AR Glasses (IMU and 3DoF)
By AR Compare Team ·
Most AR display glasses track your head with an IMU, short for inertial measurement unit: a tiny chip with a gyroscope that senses turning and an accelerometer that senses acceleration and gravity. Many times a second, software reads how fast your head is rotating, adds up those small turns to keep track of which way you are facing, and shifts the picture the opposite way. The result is a screen that stays pinned in place when you turn your head, instead of following you. This is called 3DoF tracking, because it follows 3 kinds of rotation: turning left and right, nodding up and down, and tilting side to side.
This explainer draws on Android’s guides to motion sensors and position sensors, Google VR’s page on degrees of freedom, and XREAL’s tutorials on its Stabilizer and Screen Leveling settings. To compare glasses with this feature, see the best 3DoF AR glasses.
The sensors inside
Android’s guide lists the main motion sensors in devices:
- Gyroscope: measures the rate of rotation, how fast the device is turning, in each of 3 directions.
- Accelerometer: measures acceleration in 3 directions, including the steady pull of gravity.
- Magnetometer: measures the Earth’s magnetic field, like a compass. Not every pair of glasses uses it.
Android notes the gyroscope and accelerometer are always physical sensors. Others, such as a combined “rotation vector” that reports which way the device faces, are often software that blends readings from the physical ones.
From turning speed to direction
A gyroscope does not tell you which way you are facing. It tells you how fast you are turning right now. Android’s guide explains the next step: the gyroscope’s output is usually added up over time to work out how far the device has turned. Turn your head at a steady speed for a fraction of a second, and the software knows roughly how many degrees you have moved.
Do this many times a second and the glasses know your head’s direction well enough to hold a virtual screen steady.
The drift problem
Adding up readings also adds up their errors. Android’s guide is direct: standard gyroscopes give raw data with no correction for noise and drift, and those errors need compensating. A tiny bias, a reading that is always slightly off, becomes a growing error after many seconds of adding it up. On glasses this shows up as a screen that slowly slides sideways or tilts.
How glasses correct drift
The fix is sensor fusion: checking the gyroscope against sensors that have a fixed reference.
- Gravity for tilt and nod. The accelerometer feels gravity, which always points down. That gives a steady reference for nodding and tilting, so those errors can be corrected. Android says drift is usually estimated by watching other sensors such as gravity or the accelerometer.
- Compass for turning, sometimes. Gravity says nothing about which way you face left to right. A magnetometer can, by pointing to magnetic north, but local changes in the magnetic field can throw it off.
Android’s position sensor guide shows the trade-off. Its “game rotation vector” skips the magnetometer. Android says that makes short-term turns more accurate and immune to magnetic changes, but its left-right reference is allowed to drift by about as much as the gyroscope drifts.
What makers add on top
Glasses software adds features built on head tracking. XREAL’s tutorials for its One series give 2 examples:
- Stabilizer. XREAL says it recalculates the screen’s position in real time to cut visible shaking from small head movements. It is on by default in the mode where the screen follows you. XREAL also notes it can cause slight motion blur or trailing, so it limits brightness while it is on, and that switching it off gives better picture quality.
- Screen Leveling. If the anchored screen looks slightly tilted, you can nudge it by 0.5 degree steps, up to 5 degrees either way, for each kind of rotation.
What an IMU cannot do
An IMU is good at rotation and poor at position. Android’s guide says motion sensors alone are not typically used to track position.
That is the line between 3DoF and 6DoF. Google VR’s page explains that 3DoF tracks rotation only, while 6DoF also tracks moving forward and back, side to side, and up and down. It also notes 3DoF systems use a neck model, a simple estimate of how your head moves when it rotates on your neck, to make rotation feel natural. For true position tracking, glasses add cameras; see how 6DoF tracking works and the 3DoF vs 6DoF comparison.
Why it matters when you buy
If you want a screen that stays put while you look around, for a virtual monitor or a cinema screen, 3DoF tracking is the feature to look for. Some glasses do it in the glasses themselves, others need a phone or PC app. VITURE, for example, lists hardware 3DoF on The Beast, while its Luma glasses get 3DoF through its SpaceWalker app. Look for drift settings, a recenter button, and whether the maker publishes how its tracking works.
For related terms, see the gyroscope, accelerometer and 3DoF glossary entries. To understand delay between moving and the picture updating, read what motion-to-photon latency is.
More buying guides: virtual monitor glasses and AR glasses for productivity.
Frequently asked questions
What is an IMU?
An inertial measurement unit, a tiny chip that combines a gyroscope, which senses turning, and an accelerometer, which senses acceleration and gravity. Some also add a magnetometer, a compass.
How do AR glasses keep the screen in place when I turn my head?
The gyroscope measures how fast your head is turning, many times a second. Software adds those small turns up to track which way you face and moves the picture the other way, so the screen stays pinned in place.
Why does the screen slowly drift on my glasses?
Adding up gyroscope readings also adds up their tiny errors. Android's documentation notes raw gyroscopes include noise and drift that must be corrected using other sensors, so the estimate can slowly wander, especially sideways.
Can an IMU track me walking around?
Not reliably. It is good at rotation but poor at position. Android's documentation says motion sensors alone are not typically used to track position, which is why glasses that let you walk around also use cameras.
What is the difference between 3DoF and 6DoF?
3DoF tracks only rotation: turning, nodding and tilting. 6DoF also tracks moving forward and back, side to side and up and down, which needs cameras as well as an IMU.