README.md

ARToolKit.js

When writing JavaScript and making changes be aware that the emscripten uglifier does not support the ES6 syntax.

Project Structure

build/ (compiled debug and minified versions of ARToolKit.js)

doc/ (documentation, coming...)

emscripten/ (source code for ARToolKit.js)

examples/ (demos and examples using ARToolKit.js)

js/ (compiled versions of ARToolKit.js with Three.js helper api)

tools/ (build scripts for building ARToolKit.js)

WebAssembly

JSARToolKit5 supports WebAssembly. The libary builds two WebAssembly artefacts during the build process. These are build/artoolkit_wasm.js and build/artoolkit_wasm.wasm. To use those include the artoolkit_wasm.js into your html page and define var artoolkit_wasm_url = '<<PATH TO>>/artoolkit_wasm.wasm'; prior to loading the artoolkit_wasm.js file, like so: