Getting Data from VIVE XR Tracker(Beta)
VIVE OpenXR Unity plugin supports the VIVE XR Tracker. By following this guide, you can retrieve the tracking data of VIVE Ultimate Tracker.
Supported Platforms and Devices
Platform | Headset | Supported | |
PC | PC Streaming | Focus3/ XR Elite | X |
Pure PC | Vive Cosmos | X | |
Vive Pro series | X | ||
AIO | Focus3/ XR Elite | V |
Specification
This chapter will explore how to create more immersive experiences using the VIVE XR Tracker feature within the [VIVE XR Tracker] extension.
Environment Settings
In the following, let’s see how to use this VIVE XR Tracker profile. You can check overall VIVE XR Tracker data defined in the Input Device VIVE XR Tracker(OpenXR) from menu item Window > Analysis > Input Debugger.
Add the VIVE XR Tacker Profile.
To use the VIVE XR Tracker, simply add the VIVE XR Tracker profile in Edit > Project Setting > XR Plug-In Management > OpenXR.
Golden Sample
Binding the VIVE XR Tracker data path.
Use the feature through an Action
With using the component Tracked Pose Driver (Input System), you can configure the Action of Position Input and Rotation Input by double clicking No Binding.
-
devicePosition: indicates the position of the tracker. (The same as devicePose/Position)
Path: <ViveXRTracker>{Ultimate Tracker id}/devicePosition (id:0,1,2,3,4) -
deviceRotation: indicates the rotation of the tracker. (The same as devicePose/rotation)
Path: <ViveXRTracker>{Ultimate Tracker id}/deviceRotation (id:0,1,2,3,4) -
isTracked: indicates whether the tracker is tracked or not. (The same as devicePose/isTracked)
Path: <ViveXRTracker>{Ultimate Tracker id}/isTracked (id:0,1,2,3,4) -
trackingState: indicates the InputTrackingState of tracker. (The same as devicePose/trackingState)
Path: <ViveXRTracker>{Ultimate Tracker id}/trackingState (id:0,1,2,3,4)
Use the feature through Reference to VIVE XR Tracker
We provide the Input Action Assets ViveOpenXRToolkits defined the data of VIVE XR Tracker with Ultimate Tracker ID 0 to 4 in Assets > Samples > VIVE OpenXR Plugin > {version} > VIVE OpenXR Toolkits > Toolkits > Common.
For example you can add an action for "Tracker 0's position" by following the illustrations below.
-
Add Tracker0 in Action Maps and add Action for T_XRTracker0. Configure the action Position's Action Type and Control Type.
-
Add Binding for action Position.
See Also
If you aren’t familiar with how to use action maps, please refer to the basic input.