jeromeetienne / AR.js

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

Running on webserver offline #432

Closed alejokalderon closed 5 years ago

alejokalderon commented 5 years ago

Hi,

Sorry but I want to implement an AR solution on a webserver that works for a rural school that not have internet connection ¿is this possible with AR.js? Sorry if it not is the place for a question, please if you could give me a better contact channel I will be so grateful.

Regards!

nicolocarpignoli commented 5 years ago

Hi! It can be done! Take this file for example: https://github.com/nicolocarpignoli/nicolocarpignoli.github.io/blob/master/ar-playground/index.html.

Instead of loading scripts from remote as it is done in that file, you can include AR.js script files on the folder of your project

instead of this

   <script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
    <script src="https://rawgit.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
    <script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>

you can do something like this:

   <script src="<your-folder>/aframe.min.js"></script>
    <script src="<your-folder>/aframe-ar.min.js"></script>
    <script src="<your-folder>/aframe-extras.loaders.min.js"></script>

This way it can be possible to run your project on a local server. :)

For more quick responses, there is a chat, try to ask there: https://gitter.im/AR-js/Lobby

Good luck!

droid001 commented 5 years ago

Or you could deliver your project as a progressive web app. I'm giving this webxr boilerplate a go.