immersive-web / webxr-polyfill

Use the WebXR Device API today, providing fallbacks to native WebVR 1.1 and Cardboard
Apache License 2.0
386 stars 86 forks source link

[WebXR 2019] Consider consolidating example pages #66

Open jacobcdewitt opened 5 years ago

jacobcdewitt commented 5 years ago

The 4 pages in the examples folder which are used as E2E tests seem to have lots of overlap. Consolidating them will make maintenance easier as we work to bring the polyfill up to the latest WebXR spec.

magic-window.html is basically xr-presentation.html with support for showing the initial scene on in an inline session (on the desktop screen, for example). These pages could be merged.

I'm not sure if the mirroring.html page is relevant anymore because mirroring support has been removed from WebXR (but is still possible with WebGL calls).

I'm also not sure what offscreen-canvas.html is supposed to do, but it looks very similar to the other example pages.

jacobcdewitt commented 5 years ago

I think @billorr-google knows more about the mirroring situation.

jsantell commented 5 years ago

Some context: these were forks of webxr-samples awhile back and ideally when we're done updating to latest spec changes, we can just use webxr-samples directly. Until then, they're a bit inbetween the 2018 and 2019 versions of the specs. Maybe soon once more pieces are together, webxr-samples will just work