Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to project DOM VR content into a element #25

Open
caseyyee opened this issue May 14, 2015 · 6 comments
Open

Add the ability to project DOM VR content into a element #25

caseyyee opened this issue May 14, 2015 · 6 comments

Comments

@caseyyee
Copy link

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.

@vvuk
Copy link
Owner

vvuk commented May 15, 2015

Can you explain what use case this would have?

@vvuk
Copy link
Owner

vvuk commented May 15, 2015

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.

@brianchirls
Copy link

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

@brianchirls
Copy link

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.

@caseyyee
Copy link
Author

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
Copy link
Author

caseyyee commented Jun 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants