-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give developers control over "overlay" browser #1365
Comments
On other platforms like PC it is common to be able to open a web browser overlay inside of an XR application without freezing it. Instead of having this new developer control halt the WebXR session - could you also have an option to let the overlay browser be accessible inside the WebXR session? I think developers would love being able to access the overlay browser from inside a WebXR session and control it. |
That's what this proposal is |
Would it be a single overlay or multiple overlays? Would the overlay (or overlays) be fixed or positional? I'd prefer multiple positional overlays. |
It's just one and it will always be centered. Basically what you have today except you can trigger it as an author |
It could also be interesting to have drag-and-drop functionality between that browser window and the XR session (and back?). |
There's the potential for something really powerful here - more than just a userland API for the current system function. It'd be very useful to be able to open multiple browser windows while still being active in the current session. I think the browser window(s) would have to locally (i.e. in spatially-aware manner) "capture" user interaction from the parent WebXR session - kinda like an iframe does for mouse/keyboard/etc. events in HTML (or, more analogously, OS windows, I guess). So e.g. could seamlessly tap pause button on YouTube window while remaining in game/social world, or e.g. copy text back and forth between the WebXR world and a Discord browser tab. And if it's just another browser tab then you could stream the browser window/tab to your friends in social VR using the web's Media Capture API. This sort of paradigm feels like it leans into the web's strengths. Perhaps too architecturally ambitious for now, but I hope the spec that's produced here can leave some possibilities open for future proposals. It's a very exciting direction! |
Today, a VR browser user is able to size, position, and place a browser html window wherever they want (almost). Imagine opening a website in AR passthrough that opens WebXR. Could the page keep its original user set position and then just be visible in WebXR? Picture clicking the Enter XR button and the webpage never disappears and cleanly transitions into WebXR. The webpage disappearing when webXR starts might be the opposite of the ideal default behavior.
The powerful feature I am most excited for is detatched 3D CSS. Once a HTML page can be loaded in VR like this, the next step could be adding VR support to the web's existing 3D functionality to make it immersive XR 3D. Then standard HTML and CSS wil work in VR and allow placing as many 3D overlays as a page could want and work in 2D too. |
Sounds promising.
Unrestricted mode would resonate with doing serious work in (Web)XR. |
Potentially relevant viral (1.7k likes) tweet in the VRChat community from yesterday:
I'm guessing this feature could be in MVP/v1.0 of this spec - just requires exposing position, orientation, and size of each overlay browser/panel, which is kind of a bare minimum anyway if this proposal goes beyond a simple " Note that the above image shows sub-windows within the panels - not sure if they're cosmetic/fake, but for WebXR this would not be relevant/appropriate (can use web's Media Capture API as mentioned earlier if dev wants to allow users to share their overlays). |
A security consideration: If the user's hands are near the keyboard that's associated with an overlay, hand/finger tracking information should not be exposed to WebXR, since this could leak passwords and other info. Might also need to consider lowering eye and arm tracking resolution - in the extreme case (probably not necessary), the user's body (or all except head/centroid?) could completely "freeze" from WebXR's perspective while they're interacting with an overlay. As mentioned earlier, this is akin to the browser iframe (or OS window) capturing mouse/keyboard events - usually based on the spatial position of the input device (though there is also the concept of frame "focus" in browser/OS land - not sure if that's relevant here - maybe gaze factors into that). Seems like it'd be enough to freeze hand joint positions when they're near overlay or keyboard, and lower the resolution of some other stuff based on conservative heuristics (e.g. gaze, when looking at an overlay, and wrist joint from body tracking when near overlay). |
Meta Quest recently introduced support to show the 2d browser while staying in VR/AR.
This mode can only entered/left by the user using system gestures.
We've gotten multiple requests since launching this features to allow for developer control over this. Basically, developers want to trigger overlay by calling an API so they can show a configuration or shopping screen. Then they want to present the user with a button to resume the WebXR session.
/facetoface give developers control over "overlay" browser
The text was updated successfully, but these errors were encountered: