jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.79k stars 2.22k forks source link

Integrating into a mobile app #726

Closed ugintl closed 4 years ago

ugintl commented 4 years ago

Is it possible to integrate it into a mobile app?

benallfree commented 4 years ago

I'm working on this with Cordova (iOS). Is anyone else already working on it?

agomezmart commented 4 years ago

Hi guys! I'm currently trying to integrate AR.js in my current IONIC (v1) application.

For the time being, after installing the iosrtc plugin, including the different ".js" and adding the following to the 'deviceReady event' cordova.plugins.iosrtc.registerGlobals(); i've been able to open the camera (I'm testing in iOS), but I'm struggling when it comes to showing something in a given location.

If anyone has achieved this (to show the camera and an object in a location) in a Cordova application, would be nice to know how to get it

benallfree commented 4 years ago

@agomezmart So it seems there are at least 3 of us attempting the same thing. Yesterday I got to the same spot as you, it shows the camera view but does not seem to recognize a Hiro marker.

Do you want to collaborate a bit?

agomezmart commented 4 years ago

@benallfree sure!

Concerning your answer, you are working with the marker-based solution while I'm dealing with the location-based one.

benallfree commented 4 years ago

@agomezmart I'm starting with markers but will be adding location too.

Feel free to add your own demo experiment to this repo: https://github.com/benallfree/arjs-mobile-app-samples

agomezmart commented 4 years ago

@benallfree nice! I'll prepare the demo, even though it is not working 100%, and upload it to the repo 😃

benallfree commented 4 years ago

Child ticket created in https://github.com/aframevr/aframe/issues/4451

benallfree commented 4 years ago

aframe fork: https://github.com/aframevr/aframe/pull/4452

nicolocarpignoli commented 4 years ago

Hi there, please feel free to re-open the issue at new AR.js repository: https://github.com/AR-js-org/AR.js

thank you!