webxr-input-profiles
webxr-input-profiles copied to clipboard
HTC Vive Wand controller models are offset in relation to SteamVR overlay.
Profile id
htc-vive
Describe the bug Controller model is offset to what I would expect.
To Reproduce Steps to reproduce the behavior:
- Open Firefox 94 with
dom.vr.webxr.enabled
set to true in about:config - Go to WebXR Input Profile Viewer
- Click Enter VR
Expected behavior I would expect the controller model position to match the controller position in SteamVR overlay.
Screenshots Here is a screenshot taken right after opening SteamVR overlay to show the difference. You can also see that the pointer ray is rotated, but I am not sure if that is expected.
3D engine (please complete the following information):
- Engine: WebXR Input Profile Viewer
- Viewed today 2021-11-05 in Firefox 94.0.1 with
dom.vr.webxr.enabled
set to true
Additional context
Firefox is the only browser in which I could get the viewer to work.
The same issue appears when the model is imported into Unity using glTFast. There you need to also rotate the model by 180 degrees, but that is expected according to the importer's readme. To get the models to match I have to change the transforms of htc_vive_none
from
Position: Vector3(0,-0.00500781788,-0.0285869762)
Rotation: Vector3(357.762024,0,0)
to
Position: Vector3(0,-0.0083999997,0.0544999987)
Rotation: Vector3(354.950012,180,0)
But those are only approximate values acquired by moving the controller in the editor until it roughly matches model taken from Steam\steamapps\common\SteamVR\resources\rendermodels\vr_controller_vive_1_5
folder