Open D-Marc1 opened 3 years ago
Hey, we're actually working on this now: https://github.com/xr3ngine/xr3ngine/tree/dev/packages/native-plugin-xr
But would love to contribute to a shared community codebase instead.
Since WebXR is already a spec, we have considered just supporting WebXR API first (we are doing same with VR in cap-electron) and treating this like a native polyfill.
This was kind of done for Cordova and could be ported: https://www.npmjs.com/package/cordova-plugin-webxr
Right now we have Android working with a basic API, and are moving on to develop iOS.
I'm sure a lot of people will want a lot of features, but first sticking to the WebXR spec might be a good way to give developers a cross platform solution to start with.
@shawwwwwwww you can add your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)
@lalalune I I'm looking for an AR plugin for capacitor , you have a link for your project ?
@nseb where?
@gelinger777 sorry I wrote too quickly I meant, I'm looking for
Is this possible? I want to run WebXR experiences from React Three fiber on capacitor, is it possible already in 2024?
Plugin Request
Name: Capacitor AR Package:
@capacitor-community/ar
Platform(s)
iOS and Android
Existing Solutions
For Cordova or Capacitor specifically, you can use Wikitude, though it is a bit pricey, and it ties you into their specific service.
In regular JavaScript, which would obviously work in Capacitor/Cordova, you can use the combo of AR.js + A-Frame + three.js, though it is a limited in what it can do, compared to native ARKit and ARCore.
Otherwise, your only other options are:
Description
A Capacitor plugin for augmented reality that uses both ARKit for iOS and ARCore for Android.