Barcode markers may be very useful for various type of applications, especialy when you have many locations with various markers.
For examples,
[Marcel Freinbichler](https://twitter.com/fr3ino) and [Lisi Linhart](https://twitter.com/lisi_linhart)
wanted to do a augmented reality application for their school: *"When you go to a room, you point your phone and it shows you in augmented reality the availability of this room."*
So they choosed to use barcode markers: one barcode per room. Thus when the AR application see the marker, it convert that to a number which match the room. So you do a xmlhttprequest to get the current schedule of the room and display it on top of the marker.
**About Presets:**
In order to make the common case easier, it offers some presets configuration for markers.
e.g. ```preset: 'hiro'``` to have the classical pattern hiro marker, or ```preset: 'kanji'```
for kanji.
I love this idea! It is useful for other people in the school. It has nice panash with AR. But most of all, it provides relevant informations directly where it needed. This is a key principle for AR applications.
# Add Barcode Marker in Your Project
To add them in your project is rather straight forward.
First you need to tell ar.js to start detecting them and their type of
binary code. So you modify a-scene as below.
Have you notice the ```type``` attribute ? this is for the type of markers. There is currently
![screen shot 2017-07-05 at 14 50 43](https://user-images.githubusercontent.com/6317076/27867388-64baee98-6191-11e7-9fbe-586fd79eba9d.png)
# Move the camera or the marker ?
# Move the Camera or the Marker ?
When handling augmented reality, you need to decide if you want the
3d world origin to be the camera or the marker. Most people will use
...
...
@@ -218,8 +217,6 @@ You will need to use ```<a-marker>```, and a simple camera instead.
<a-entitycamera></a-entity>
```
![screen shot 2017-07-05 at 14 53 43](https://user-images.githubusercontent.com/6317076/27867514-c85fefb6-6191-11e7-99c4-2091ab0a6fd1.png)
TODO transition ?
# How to handle multiple distinct markers
...
...
@@ -231,6 +228,9 @@ TODO to complete
- e.g. you can see it in this [multiple independent markers example](https://jeromeetienne.github.io/AR.js/aframe/examples/multiple-independent-markers.html)
![screen shot 2017-07-05 at 14 53 43](https://user-images.githubusercontent.com/6317076/27867514-c85fefb6-6191-11e7-99c4-2091ab0a6fd1.png)