gecko-dev icon indicating copy to clipboard operation
gecko-dev copied to clipboard

Add the ability to project DOM VR content into a element

Open caseyyee opened this issue 10 years ago • 6 comments

Implement CSS property to specify that a element is to be interpreted as a stereo left/right pair.

This will be used in cases where we want to create stereo rendered output outside of using requestFullscreen.

caseyyee avatar May 14 '15 22:05 caseyyee

Can you explain what use case this would have?

vvuk avatar May 15 '15 19:05 vvuk

Based on slack discussion: this is basically allowing an iframe (e.g. the horzion browser frame) to act as a "portal" into another 3D world/view, with the right things happening in each eye. We can look into this, but it will be far down the line.

vvuk avatar May 15 '15 19:05 vvuk

Yes, this would definitely be useful for that. Could also be used for stereoscopic images and videos.

brianchirls avatar May 15 '15 20:05 brianchirls

As long as CSS support is coming back around, I'm strongly in favor of this (though I acknowledge it must be extremely challenging to implement). It could be the best bet to implement seamless transitions between Web VR sites, without having to completely re-think and re-implement the browser UI for VR. It would allow the community to experiment with interaction models before having to commit to one approach built-in to the browser.

I think this feature needs to be paired with a way for a given iframe to determine it's position/orientation relative to the top-level camera, so it can render accordingly. For CSS elements inside the iframe, it might be handled by the browser, but if you have a full-window canvas inside that iframe, you need a way to get the correct perspective.

brianchirls avatar May 20 '15 14:05 brianchirls

Update: This looks like it kind of works. We get a stereo view, but the perspective is way off:

image

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

This is using the builds from May 7.

caseyyee avatar May 29 '15 00:05 caseyyee

Filed in bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=1171764

caseyyee avatar Jun 04 '15 23:06 caseyyee