stalgiag / p5.xr

a library that helps turn p5.js sketches into immersive experiences using WebXR
GNU Lesser General Public License v2.1
117 stars 25 forks source link

WEBGL mode/usual canvas, when webvr not available? #97

Closed zepadovani closed 3 years ago

zepadovani commented 4 years ago

Is it possible to make some sort of conditional that returns an usual 3D canvas (with mouse to control the view) when the VR is not available? (just like a VR switch in youtube does, for instance)

stalgiag commented 4 years ago

Hi @zepadovani yes I can add this next time I work on this library. Right now I am waiting to hear back about some issues with the latest version of the webxr-polyfill before continuing work.

Alternatively, If you have an interest in contributing this example is a good starting point.

stalgiag commented 3 years ago

After a long time, I finally worked on this today. Most of the functionality is together just need to:

Will hopefully merge and release by end of March. Sorry it took so long but your request will serve others in the future 🤷 😅