[meta/webvr] Allow Iframe to be used as "portal" into another 3d world/view

UNCONFIRMED
Unassigned

Status

()

Core
WebVR
UNCONFIRMED
3 years ago
11 months ago

People

(Reporter: Casey Yee, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [webvr] [horizon])

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8615709 [details]
iframe-viewport.png

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2420.0 Safari/537.36

Steps to reproduce:

We need this to be able to view CSS-VR sites from within Horizon.


Actual results:

iframe embedded CSS-VR content shows extreme perspective.

http://caseyyee.github.io/experiment-cssvr-iframe/iframe.html

The screen shots are from May 7th builds.
(Reporter)

Updated

3 years ago
Whiteboard: webvr, horizon
(Reporter)

Updated

3 years ago
Whiteboard: webvr, horizon → [webvr] [horizon]
Testing bugzilla slack integration (forgive me)
-> Core/General; in order to do this we'll likely need to hang a bunch of bugs off this one.

This is essentially allowing multiple preserve-3d contexts to exist, with flattening along the way, but with different viewports.
Component: Untriaged → General
Product: Firefox → Core
Summary: Allow Iframe to be used as "portal" into another 3d world/view → [meta/webvr] Allow Iframe to be used as "portal" into another 3d world/view
(Reporter)

Comment 3

3 years ago
Attempted to fix this in-content by applying the inverse perspective matrix to the containing element of the iframe.  Turns out, the left/right eye projections are slightly different and the cannot be reversed uniformly.  The fix will have to happen in platform.

Updated

11 months ago
Component: General → WebVR
You need to log in before you can comment on or make changes to this bug.