Description
Summary
Provide a way for the sites to request an AR session that uses a user-facing camera if it is available.
Example use cases
Potential use cases:
- direct user interactions with virtual objects
- occlusion of virtual objects with the real world objects
- face effects?
- AR you know and love, but in selfie mode!
This assumes that the sites can leverage the information we already provide in AR sessions since we do not plan on enabling face detection with this proposal. Depth sensing / hit-test should be sufficient for interacting with the user directly for various physics-based effects.
A rough idea or two about implementation
One approach would be to expose this as an additional session feature. This is mostly due to the fact that some other features can become unavailable in user-facing AR sessions. An additional thing to solve would be to ensure that the sites can either tolerate mirrored images (users usually expect selfie camera images to be mirrored), or configure it.
See also: immersive-web/administrivia#190, immersive-web/webxr-ar-module#64.