SteamVR

SteamVR

[Unity] Reset CameraRig Rotation
Hey there,
I don't know what to try anymore and therefore ask you for help.
I would like to reset the rotation of the HMD. For my application it is very important to have an exact rotation of the HMD. However, if a user sets up the HMD and sets it so that everything is well visible to him, there is often an ofset in the x rotation although the person indicates to look exactly straight and recognizes a reference point as exactly centered.
At the moment I'm already using this:
_steamRend = UnityEngine.Object.FindObjectOfType<SteamVR_Render>(); _steamRend.trackingSpace = Valve.VR.ETrackingUniverseOrigin.TrackingUniverseSeated; Valve.VR.OpenVR.System.ResetSeatedZeroPose(); UnityEngine.XR.InputTracking.Recenter();
That recentered the position, but unfortunately not the rotation.
Does anyone have an idea? I can't set up the HMD for my test persons in such a way that the x rotation fits me and my research results, but the test persons can't see anything anymore :-).

Thank you for every hint.
< >
Showing 1-3 of 3 comments
Earl of Sandwich Nov 15, 2018 @ 8:32pm 
Errm...first take care of your test person. Sounds bad...:D
Maybe you can counter your offset if you put your VR cam into a game object (make it child).
So if offset is 90 to the left, turn game object 90 to the right. That way you should be able to make the cam point into the direction you want at beginning.
Engines forum is maybe better suited though?;)
Last edited by Earl of Sandwich; Nov 15, 2018 @ 8:33pm
76561198843787567 Nov 16, 2018 @ 12:20am 
Hey,
thanks for the hint. Thought about that already. But as Elevation rotation is from -90 to 90 degrees, I get trouble when it comes to angles close to so pole (angle of the camera - 11 = 90 doesn't exist, than the Azimuth comes into account. So if the offset would be 11degrees, the highest angle I could achieve with this workaround would be 79 degrees).
I am using steam Audio as well for rendering 3D tracked Audio. With the Offset always "the wrong" HRTF angle is picked. A huge problem for my task 😔.
I am sorry, I am not allowed to post it anywhere else (it's restricted for new users).
Last edited by silke-boegelein; Nov 16, 2018 @ 12:39am
galaxy5599 May 29, 2021 @ 11:59pm 
ResetSeatedZeroPose() works for me in Unity if you set this in the project settings.

Window->SteamVR Input->Advanced Settings->SteamVR Settings->"Tracking Space Origin" drop-down, "Tracking Universe Seated"

Valve.VR.OpenVR.Compositor.SetTrackingSpace(ETrackingUniverseOrigin.TrackingUniverseSeated) cannot be used.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Nov 15, 2018 @ 8:09am
Posts: 3