Description
๐งโ๐ญ ES6 feature under development
We (@MikiDi @nickw1 @nicolocarpignoli and other) are working to make this a reality see #116 . At this time it is possible to import AR.js into a React environment. You can check it in my example repo react-AR-experiments. I made a simple set up for the THREEx API in this folder react-threex-example. You need to install the dependencies with yarn
follow the instructions
This is a simple example with a pattern HIRO marker,
This feaure is not yet ready, but if you want to test you are welcome.
๐ Importing the package
At this moment we have not yet our npm repository you can import as a package in this way:
"@ar-js-org/ar.js": "https://github.com/AR-js-org/AR.js.git#<GIT_COMMIT_HASH>"
where the <GIT_COMMIT_HASH>
is the latest git commit hash,
Install the package with NPM:
npm i @ar-js-org/ar.js
### โ Note:
You need to change <GIT_COMMIT_HASH>
every time we push changes in the ES6 branch.
๐ฆ NPM package
We will setup the npm package as soon as the code will be almost ready to be merged in the dev branch (we are working on this too...).
We have set up a NPM organization, so we will publish as a scoped package: @ar-js-org/ar.js
We have the first beta package at https://www.npmjs.com/package/@ar-js-org/ar.js.
๐ฎ Aframe version
I didn't yet made a working example with. I'm trying to do in react-arjs-example, but at the moment is not working properly. If you are an expert with AFRAME and React, a help is very welcome.
But @thauska made this project with Aframe-Vue https://github.com/thauska/peticov-ar if you want to test.
In addition @j-era and friends are developing react-three-arjs
๐น Live examples
There aren't Live examples yet, i will provide them soon...
Report here if you find some issues, but consider that not all the code was ported yet... and some bugs may arise. ๐