This plug-in provides support for the NaturalPoint TrackIR head tracking devices. The TrackIR plug-in supports both position and rotation data.
The TrackIR plug-in is implemented as a Vizard extension. Before attempting to connect to the tracker in Vizard, make sure the TrackIR application is running and able to track your target. Also, make sure "Vizard" is displayed in the list of supported titles. If Vizard is not listed, you might need to update the game list by selecting "Check For Game Updates..." from the TrackIR application menu.
The TrackIR extension object has the following methods:
Method |
Description |
<trackir>.addTracker() |
Returns a TrackIR 6DOF sensor. |
The TrackIR sensor object has the following methods in addition to the standard extension sensor methods:
Method |
Description |
<sensor>.reset() |
Re-center the head tracker. |
<sensor>.getActive() |
Returns True if tracking is active, or False if tracking has been disabled/paused by user. |
<sensor>.getFrameNumber() |
Returns the frame number of last received data packet. |
The following example shows how to add the TrackIR sensor and link it to the main viewpoint: