Skip to content
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

Proposal for panel distance API in VR #83

Open
brycethomas opened this issue Apr 4, 2023 · 4 comments
Open

Proposal for panel distance API in VR #83

brycethomas opened this issue Apr 4, 2023 · 4 comments

Comments

@brycethomas
Copy link

From w3c/webappswg#93 (I'm not sure if webappswg or immersive-web is a more appropriate venue, so sharing the proposal here):

I'd like to propose a new API which exposes the (virtual) distance between the viewer and the Browser panel in VR. For example, the Browser panel may open at a virtual distance of 2 meters from the viewer. The user takes one step forward, and the viewing distance is now 1.5 meters. An example use-case is transitioning a page between a summary and detailed view (e.g. today's weather vs. weekly forecast) as the user gets closer to the panel. Has anything of this sort been proposed in the past? If not, is this an appropriate venue for such a proposal?

@AdaRoseCannon
Copy link
Member

It definitely seems like something worth talking about and I think there is room for discussion in this group.

I'd be worried about the user's position information being exposed to the page, so I think it would need to be pretty coarse grained. It sounds like something that would be a CSS media query rather than a JS API.

@brycethomas
Copy link
Author

Tagging for potential /facetoface discussion next week if I'm not too late. Else we can continue the conversation here.

@cabanier
Copy link
Member

/facetoface discuss panel distance API shape

@mkeblx
Copy link

mkeblx commented Apr 24, 2023

Magic Leap's browser exposed the browser panel's orientation (vertical or horizontal) to Javascript:
https://ml1-developer.magicleap.com/en-us/learn/guides/prismatic-page-orientation

There's also the previous discussions on a 'Magic Window' mode, where this distance API use case would be able to be implemented with. Of course Magic Window is a much bigger feature.
immersive-web/webxr#224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants