proposals icon indicating copy to clipboard operation
proposals copied to clipboard

Proposal for panel distance API in VR

Open brycethomas opened this issue 2 years ago • 4 comments

From https://github.com/w3c/webappswg/issues/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?

brycethomas avatar Apr 04 '23 17:04 brycethomas

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.

AdaRoseCannon avatar Apr 11 '23 19:04 AdaRoseCannon

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

brycethomas avatar Apr 21 '23 17:04 brycethomas

/facetoface discuss panel distance API shape

cabanier avatar Apr 21 '23 17:04 cabanier

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. https://github.com/immersive-web/webxr/issues/224

mkeblx avatar Apr 24 '23 19:04 mkeblx