Skip to content

Commit

Permalink
Added a brief comment in the marker_ar demo's index.html file to desc…
Browse files Browse the repository at this point in the history
…ribe how to bind a POI to a JSARToolkit marker.
  • Loading branch information
Rob Manson authored and Rob Manson committed Oct 15, 2016
1 parent 8387618 commit e8fe1e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion examples/marker_ar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@

awe.settings.update({data:{value: 'ar'}, where:{id: 'view_mode'}})

/*
Binding a POI to a jsartoolkit marker is easy
- First add the awe-jsartoolkit-dependencies.js plugin (see above)
- Then select a marker image you'd like to use
- Then add the matching number as a suffix for your POI id (e.g. _64)
NOTE: See 64.png in this directory or https://github.com/kig/JSARToolKit/blob/master/demos/markers
This automatically binds your POI to that marker id - easy!
*/
awe.pois.add({ id:'jsartoolkit_marker_64', position: { x:0, y:0, z:0 }, visible: false });
awe.projections.add({
id:'marker_projection',
Expand All @@ -83,7 +91,6 @@
visible: false,
}, { poi_id: 'jsartoolkit_marker_64' });


awe.pois.add({ id:'fixed_poi', position: { x:100, y:0, z:-250 }, visible: true });
awe.projections.add({
id:'fixed_projection',
Expand Down

0 comments on commit e8fe1e5

Please sign in to comment.