liveBook · Manning

Head tracking

As explained in Web Components in Action

Head tracking is the measurement of a user's head position and orientation over time.

In a headset, looking around replaces moving a mouse across a flat 3D view. Head tracking measures how your head moves so the view can follow it. section 15.2

How can a phone tell which way you turned? Its accelerometer detects movement, its gyroscope detects rotation, and its magnetometer supplies a compass direction. Sensor fusion combines their readings to determine head movement. Paired with slightly different left- and right-eye views, that movement helps create a stereo 3D experience. The sensor-fusion math and tracking code are left aside. section 15.2

How Web Components in Action covers it

How deep it goes
Explains the contributing sensors and sensor fusion conceptually, but leaves aside the tracking math and code.
Examples
Uses a phone in a headset and slightly offset left- and right-eye views to illustrate the experience.
What it assumes
Starts with familiar mouse-controlled 3D navigation and explains each phone sensor's role.
What you can do after
Evaluate/understand how phone sensors support head-controlled viewing without implementing sensor fusion.
How it connects
Links accelerometers, gyroscopes, magnetometers, sensor fusion, and stereoscopic 3D views.

This explainer was generated by Manning's knowledge graph from the text of Web Components in Action. The section links point to the parts of the book it draws on.