-
Notifications
You must be signed in to change notification settings - Fork 0
3. Wrist Tracking with TouchDIVER and HTC Vive Trackers
We want to be able to use the HTC Vive trackers without the need for a Head Mounted Device (HMD) as only the base stations and trackers are required. In order to do this, some configuration files of SteamVR have to be edited. The equipment used:
- SteamVR Base Station 2.0
- HTC Vive Trackers 2.0
- TouchDIVER
The following guide is copied from the Vive Tracker Utilities github page
- Download Steam and SteamVR
- Find the
<Steam_Directory>/steamapps/common/SteamVR/resources/settings/default.vrsettings
file and edit the following settings:
- “requireHmd”: false
- “forcedDriver”: null
- “activateMultipleDrivers”: true
- Find the
<Steam_Directory>/steamapps/common/SteamVR/drivers/null/resources/settings/default.vrsettings
file and edit the following settings:
- “enable”: true.
Important: These settings may be overwritten by a SteamVR update. Add these values to the steamvr section of the file <Steam_Directory>/config/steamvr.vrsettings
. They will override the defaults.
- Restart SteamVR if it was open. Unplug your headset and Linkbox if they were plugged.
- Plug your dongle if it if you hadn’t done it previously. Make sure your tracker/controller is properly synced. You should see the base stations and the tracker in the SteamVR window.
- Additionally, In the SteamVR app, go to
Setings > General > SteamVR Home
and turn it off. This setting is visible after allowing the Advanced Settings to “Show”.
Important for base stations: The trackers are meant to be mounted higher than the ground level in order for them to actually work. Even if you have followed everything correctly in the above instructions, the base stations may not show up if you don’t place them slightly higher than the desk you’re working on. Moreover, the reflective surfaces or just light reflecting off a surface may be a problem in the detection of the base stations. A similar issue is talked about on this blog post as well.
- For the Unity Integration, we need the UnityVR Plug-in from the Unity Asset store, whose original github page can be found here. In case of an issue, the discussions section can be consulted.
- After you import the SteamVR Plug-in, go to the project select the object you want to track and click Add Component.
- Select Steam VR_Tracked Object from the imported UnityVR plug-in.
- Run the game to ensure it’s in the desired orientation.
If you’re having troubles wit the orientation of the tracked object, follow these steps instead: (as solved in this forum post)
- Create an empty Game Object and name it “Tracked Object”.
- Select the Tracked Object and click Add Component.
- Select Steam VR_Tracked Object from the imported UnityVR plug-in.
- Drag the object you want to track in the hierarchy into the Tracked Object so that it becomes a child object of the “Tracked Object”.
- In this hierarchy, rotate the actual object in the desired orientation.
- Run the game to ensure it’s in the desired orientation.