Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
796 stars 100 forks source link

[Vison Glass] Vertical axis in the controller is inverted #1484

Closed felipeerias closed 3 weeks ago

felipeerias commented 2 months ago

When using the Vision Glass, occasionally the vertical axis gets inverted: moving the phone upwards makes the pointer move downwards, and viceversa.

This bug can be reproduced by launching Wolvic and turning slowly to your right. At one point (~90-180 degrees) the controller starts to misbehave. Turn back to your starting position and it works fine again. Tapping the recenter button does not fix the bug.

If you monitor the quaternion that we receive from the system while moving the phone slowly, there is a point where the values change from

X > 0, Y < 0, Z < 0

to

X < 0, Y > 0, Z > 0

Roughly the same direction but pointing in the opposite way. I think that this might be the root cause of the bug.