arLibType |
string
|
|
|
ArLib type: 'jsartoolkit, 'jsaruco' |
trackingElem |
video
|
img
|
canvas
|
|
|
DOM element used for tracking, such as a video, img or canvas |
markerSize |
number
|
|
|
Size of marker in mm, determines scale of scene |
verticalFov |
number
|
<optional>
|
|
Vertical field-of-view of web cam (you will have to estimate this). For JSARToolKit,, if this is not defined, it will use a generic vertical field-of-view which seems to work well for general web cams. |
threshold |
number
|
<optional>
|
128
|
Threshold value for turning tracking stream into a binary image. Ranges from 0 to 255. Used only for JSARToolKit. |
debug |
boolean
|
<optional>
|
false
|
Whether to turn on debug view/mode |
canvasContainerElem |
canvas
|
<optional>
|
|
Div DOM element to append a newly-created tracking canvas to. If not specified, the newly-created canvas will just be appended to the body DOM element. |
rendererType |
string
|
|
|
Renderer type: 'threejs' |
renderer |
THREE.WebGLRenderer
|
|
|
Three.js renderer |
scene |
THREE.Scene
|
|
|
Three.js scene |
camera |
THREE.Camera
|
|
|
Three.js camera |
markersJsonFile |
string
|
|
|
Path to a JSON file that specifies markers and models to load |