Head Tracking and the Sensor Class
At the end of Chapter 12, we introduced the Sensor class as an abstract sensor for all kinds of inputs including buttons, joysticks, and 6DOF devices. We will now focus specifically on 6DOF devices for head tracking.
Recall that a Sensor is a variable length circular buffer of time stamps each with a Transform3D and the state of various buttons. In the head tracking scenario, it is the values of this Transform3D that we want to use to control our view. The reason for maintaining the information in a circular buffer is that this enables some flexibility in choosing which timestamp and data elements to use in assigning the best approximate position of whatever device is being monitored. The buffer of SensorReads ...
Get Java™ Media APIs: Cross-Platform Imaging, Media, and Visualization now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.