Node-AR.js
Node.js installable AR.js based on AR.js by jeromeetienne.
- AR.js v1.6.0
Usage
;; // ArToolkitSource uses your version of THREE.jsconst _artoolkitsource = ;const arToolkitSource = sourceType: 'webcam';
Currently, the other modules use a pre-installed 0.95.x version of THREE.js.
Other modules can be used simply as:
const arToolkitContext = cameraParametersUrl: cameraParam detectionMode: 'mono' maxDetectionRate: 30 canvasWidth: 80 * 3 canvasHeight: 60 * 3; const markerControls = arToolkitContext markerRoot type: 'pattern' patternUrl: markerPattern changeMatrixMode: 'cameraTransformMatrix'; const smoothedControls = smoothedRoot lerpPosition: 04 lerpQuaternion: 03 lerpScale: 1;
Example
Example usage can be found in this repository
TODO
Decouple all modules from THREE.js and make them rely on installer's THREE.js version