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

soft-exit immersive mode? (browser overlay in webgl) #1466

Open coderofsalvation opened 2 months ago

coderofsalvation commented 2 months ago

Developing WebXR+WebGL feels a lot like having to re-invent the UI wheel compared to HTML elements.

Reason: as long as I can remember, there were hopes for a 3D UI in WebGL (as a standard) to ease this burden.

Solution

A similar exit-immersive workflow like Quest Browser:

https://twitter.com/coderofsalvatio/status/1808066619014303789

Basically, WebXR hands are not updated (frozen), browserwindow pops up, allowing hand interaction.

image

Alternative

Programmatically exiting immersive mode via javascript, and showing a button-overlay in the browser. The problem here is that you're really exiting immersive mode, which is quite uncomfortable.