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

AR fallback for non-ARCore devices #68

Closed stalgiag closed 4 years ago

stalgiag commented 5 years ago

Need to make fallback for AR mode for devices that do not support ARCore. Mozilla is currently working on an iOS app that enables WebXR for ARKit devices. I think that the support coverage should be roughly:

Least -> Most robust support:

  1. Any device with a camera and accelerometer/gyroscope
    • Able to see objects from p5 sketch and use tilting of device to move camera while displaying camera feed
  2. Above requirements plus relatively recent hardward (less than 4 years old).
    • Can run jsartoolkit5.This is what AR.js runs on and will allow us to do marker-based anchors.
    • Can also do above
  3. Devices that have ARCore (Android >=8.0) or ARKit (iOS >= 12.0) running WebXR-iOS.
    • Able to do everything above and also setAnchor and detectPlane. Allows for correctly mapped anchors in arbitrary location in space.
stalgiag commented 5 years ago

This will likely need to be split up into sub-issues.