Igalia / wolvic

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

[Vision Glass] Beam extends all the way to the pointer #1393

Closed felipeerias closed 5 months ago

felipeerias commented 6 months ago

It is easy to get lost while using the Vision Glass because the controllers are not drawn in the 3D world and the narrow field of view means that the beam is not always visible to the user.

This change extends the beam so it reaches all the way to the pointer, making the UI easier and more understandable.

felipeerias commented 6 months ago

@svillar I've added a small gap between the beam and the pointer so it looks a bit better.

Another small concern is that our beam is actually a very narrow pyramid so when we make it taller the tip becomes fuzzy (too thin for the pixels on the screen).

felipeerias commented 5 months ago

This change requires the method void SetHitDistance(const float) which was introduced in https://github.com/Igalia/wolvic/pull/1384