capacitor-community / proposals

Plugin and platform requests ✋
72 stars 2 forks source link

Native Augmented Reality #99

Open D-Marc1 opened 3 years ago

D-Marc1 commented 3 years ago

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.

lalalune commented 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.

riderx commented 2 years ago

@shawwwwwwww you can add your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)

nseb commented 1 year ago

@lalalune I I'm looking for an AR plugin for capacitor , you have a link for your project ?

gelinger777 commented 1 year ago

@nseb where?

nseb commented 1 year ago

@gelinger777 sorry I wrote too quickly I meant, I'm looking for

cyango commented 4 months ago

Is this possible? I want to run WebXR experiences from React Three fiber on capacitor, is it possible already in 2024?