SteamVR

SteamVR

Unpredictable Vive Tracker orientation between Unity app launches with Base Station 1.0s
I have a Unity app that uses the SteamVR plugin. In the scene there is a [Camera Rig] (SteamVR prefab) acting as the Main Camera and simple cube game object with the Steam VR_Tracked Object component attached. The cube follows my Vive Tracker which is connected to the pc via USB, and tracked with two 1.0 model Vive Base Stations.

No custom scripting is involved here.

When I build then run in standalone I most often get the desired "default" orientation from my Tracker (using a crude ascii art representation of a Vive Tracker):

/\__/\__/\ --> forward

However about 1 in 10 runs of the build will give me this default orientation (tracker must be held rotated 90deg in order to have the on-screen cube accurately follow my tracker):

>
|
> --> forward
|
>

I need help figuring out how to stop this behavior.

Does anyone know what could be causing this? It seems like some sort of race condition in applying settings at a lower level than my Unity scene (maybe the OpenVR API?) I fiddled around with my SteamVR settings, namely by going to Devices > Manager Vive Trackers and trying out different Tracker Roles but that didn't seem to change anything.

Any help would be greatly appreciated!
Last edited by am_ga; Nov 30, 2020 @ 3:35pm
< >
Showing 1-2 of 2 comments
76561199032674443 Nov 30, 2020 @ 1:17pm 
Forgot another important detail: I'm not using a headset. Instead I'm using the "null" driver in order to use the Vive Tracker + Base Stations for a Unity app running on a regular display. See <pencilsquaregames DOT com/getting-steamvr-tracking-data-in-unity-without-a-hmd/> for details. This shouldn't be relevant unless some info about the Tracker's orientation requires the headset to communicate to the software.

Also, <hostb DOT org/5MB> here's the sample app (entire project zipped). Would be amazing if someone with 1.0 Base Stations and a Vive Tracker could download, build, run several times and let me know if they are able to replicate!

Last edited by am_ga; Nov 30, 2020 @ 1:21pm
76561199032674443 Nov 30, 2020 @ 1:26pm 
On another pc (with more powerful hardware) the undesired orientation happens I'd say 9/10 times the standalone is launched. This further leads me to believe it's some sort of race condition.
< >
Showing 1-2 of 2 comments
Per page: 1530 50