How 6DoF Tracking Works in AR Glasses and Headsets
By AR Compare Team ·
6DoF tracking follows both how your head turns and how it moves through space. Cameras on the glasses or headset pick out distinct details in the room and watch them shift from frame to frame, while motion sensors inside measure every turn and jolt. Software combines the 2 streams to work out, many times a second, exactly where your head is and which way it faces. That lets virtual objects stay fixed in the room as you walk around them, instead of following your head.
The details come from Google’s documentation on degrees of freedom, Android motion sensors and ARCore’s tracking, plus Bernard Kress’s SPIE book on headset optics, which ends with a chapter on sensor fusion in mixed reality headsets. For headsets built for this kind of work, see the best AR headsets for work.
The 6 degrees
Google’s VR documentation splits motion into 2 groups of 3.
Turning (rotation):
- pitch, nodding up and down,
- yaw, shaking your head left and right,
- roll, tilting your head toward a shoulder.
Moving (translation):
- forward and back,
- left and right,
- up and down.
3DoF tracks only the turning. It keeps a virtual screen pinned in place when you turn your head, instead of following you, but it can’t tell if you lean in or step aside. 6DoF tracks both, so windows sit in fixed positions around your workspace as you lean and move. For the buying side of this choice, see 3DoF vs 6DoF AR glasses.
Part 1: the motion sensors
The fast half of tracking comes from an inertial measurement unit, or IMU. Google’s Android documentation describes its 2 core sensors:
- an accelerometer, which measures acceleration in 3 directions, including the pull of gravity,
- a gyroscope, which measures how fast the device is turning in 3 directions.
The gyroscope’s readings are added up over time to get how far the device has turned. That works anywhere, with no view of the room, which is how head turns alone can be tracked for 3DoF. The problem is drift. The Android documentation notes that gyroscope noise and drift introduce errors that have to be corrected, usually by checking against other sensors such as the accelerometer’s sense of which way is down.
Position is harder. The documentation notes motion sensors are not typically used on their own to track where a device is. Working out position from acceleration means adding up readings twice, so small errors grow quickly into large ones. That is why 6DoF needs something more.
Part 2: the cameras
Google’s ARCore documentation explains how its tracking fills the gap. It uses SLAM, short for simultaneous localization and mapping: building a map of the room while working out where you are in it.
- Find feature points. The software picks visually distinct details in each camera frame, like corners, edges and patterns.
- Watch them move. As you move, those points shift in the image. How they shift reveals how the camera moved.
- Combine with the IMU. ARCore combines camera data with the IMU’s measurements to estimate the camera’s pose, meaning its position and its direction.
The cameras don’t drift the way the IMU does, because the room stays put, and the IMU keeps reporting motion between camera frames. Together they give tracking that is both quick to respond and steady. Kress’s book treats this blend of sensors as its own topic in its final chapter.
Part 3: understanding the room
Once it can track, the system can also learn about the room. ARCore looks for clusters of feature points that sit on a common flat surface and reports them as planes, like floors and tables. Virtual objects can then sit on them.
To keep a virtual object in the same real place as the map improves, apps attach it to a spatial anchor. ARCore’s documentation explains that the device’s estimate of where things are keeps being refined, and an anchor keeps the object steady through those updates.
When tracking struggles
- Blank surfaces. ARCore’s documentation warns that flat surfaces without texture, such as a white wall, may not be detected properly. The cameras need detail to lock onto.
- Low light. For the same reason, cameras that need visible detail work best in a room that is lit well enough to show it.
- Drift between fixes. Anything that stops the cameras from seeing detail leaves the IMU on its own, and the Android documentation is clear that its errors build up without correction.
3DoF or 6DoF: which do you need?
- Watching films or working on one floating screen while seated: 3DoF is usually enough. It keeps the screen in place as you look around.
- Multiple virtual monitors you lean between, or 3D objects you walk around: 6DoF.
- AR that places objects on real tables and walls: 6DoF plus plane detection.
For glasses that offer tracking, see the best 3DoF AR glasses.
Related buying guides: XR glasses and AR glasses for developers.
Frequently asked questions
What does 6DoF mean?
6 degrees of freedom. Google's VR documentation explains it as tracking 3 kinds of turning (pitch, yaw and roll) plus 3 kinds of moving (forward and back, left and right, up and down).
How do AR glasses track movement without external sensors?
Cameras on the glasses pick out distinct details in the room, called feature points, and watch how they shift as you move. Motion sensors inside measure turning and acceleration. Combining the 2 gives your position and direction, a method called SLAM.
Why does tracking drift?
Motion sensors have small errors that add up over time. Google's Android documentation notes gyroscope noise and drift have to be corrected using other sensors. Cameras correct it by checking against fixed points in the room.
Why does tracking fail on blank walls?
The cameras need visible detail to lock onto. Google's ARCore documentation warns that flat surfaces without texture, like a white wall, may not be detected properly.
Is 3DoF enough for display glasses?
For watching video or working on a floating screen while seated, often yes. 3DoF keeps the screen pinned in place when you turn your head. You need 6DoF if you want to walk around virtual objects or lean in toward them.