New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 836349 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: 10
NextAction: ----
OS: ----
Pri: 1
Type: Task
Proj-VR
Proj-XR



Sign in to add a comment

WebXR: revisit approach to rendering camera frames for AR

Project Member Reported by lincolnfrog@chromium.org, Apr 24 2018

Issue description

The current design is that blink copies the texture to the frame buffer before telling the app to render, hence why pages need camera permissions.

An alternative would be apps render to an rgba buffer, which we composite with camera frames browser-side (or gpu-side), but this isn't the currently implementation

We could do browser-side compositing if we add exclusive session support that draws fullscreen.  For non-exclusive with multiple canvases, I don't know an easy way to do this browser-side since we need the normal compositing flow, this would need complex hooks in compositing.
 
Cc: klausw@chromium.org billorr@chromium.org
Labels: Proj-XR-AR
Status: Available (was: Untriaged)
Summary: WebXR: revisit approach to rendering camera frames for AR (was: WebAR - revisit approach to rendering camera frames)
Cc: vollick@chromium.org ijamardo@chromium.org btebbs@chromium.org
Components: Blink>WebXR
Components: -Blink>WebXR Blink>WebXR>AR
Labels: BlinkWebXR
Removing Blink>WebVR component and assigning to Blink>WebXR 
Components: Blink>WebXR
Labels: -BlinkWebXR
Removing Blink>WebVR component and assigning to Blink>WebXR 
Components: -Blink>WebVR
EstimatedDays: 10
Labels: -Pri-3 Pri-1
Marking this as P1 until we decide that we are going to target a release where AR requires the camera permission. If we want to have a separate AR permission, we will absolutely need this.
Labels: AR-Rendering
Labels: XR-Spec
This is related to https://github.com/immersive-web/privacy-and-security/blob/d1a8ded7262e7d3d8c368fd57093a69b5fc53536/ARModeExploration.md. It may be that AR requires the camera permission anyway and the potential for JS to access camera frames is not an issue.

Sign in to add a comment