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

Question/Feature Request #132

Open everythingability opened 3 years ago

everythingability commented 3 years ago

Hi,

p5xr looks like just what I need. Forgive me if this is silly question, but I'd like to be able to make an xr app, whilst previewing on my Mac/ students' Ubuntu machines.

When previewing my xr on a mac, Chrome (91.0.4472.77 (Official Build) (x86_64)) and Firefox(89.0 (64-bit)) I'm told...

Chrome: AR supported without polyfill NotSupportedError: Failed to execute 'requestSession' on 'XRSystem': No XR hardware found. unable to request an immersive-ar session.

Firefox: This device does not support immersive VR sessions.

I can't find any chrome://flags that mention webxr or xr even...

Is there a way to fix this?

Thanks

Tom

stalgiag commented 3 years ago

Well in the case of AR there aren't any options for previewing on Mac and Ubuntu. WebXR AR support is limited at the moment.

For VR, inline previews are enabled for Safari and Chrome on Mac (untested on Ubuntu but Chrome should work) in the latest build of the main branch. This hasn't been released yet but I will release it before the end of the month. If you want it sooner you can do steps 1-5 in the contributor docs to build it locally.