IMAGE TARGETS
=============

Image tracking (MindAR) follows ordinary pictures - posters, cards, book covers, album art - instead of black and
white markers. The pictures to look for are compiled into one '.mind' file.

targets.mind holds these three cards, in this order:

  index 0   card_A.png      world.addImageTarget({ index: 0 })
  index 1   card_B.png      world.addImageTarget({ index: 1 })
  index 2   card_C.png      world.addImageTarget({ index: 2 })

Print them out or show them on another screen. Each card is 1 unit wide and 1.25 units tall in your sketch.


MAKING YOUR OWN .mind FILE
--------------------------

1. Choose your pictures. Good targets have lots of detail, sharp corners and contrast all over the picture.
   Plain areas, smooth gradients, repeating patterns and mostly-text images track badly.

2. Open the MindAR image target compiler:
   https://hiukim.github.io/mind-ar-js-doc/tools/compile

3. Add all of your pictures at once (one .mind file holds all of them), then click Start. The compiler shows
   the feature points it found on each picture - more points spread across the whole picture = better tracking.

4. Download the result (targets.mind) and put it in your project.

5. In index.html, point imageTargetSrc at it:
       <a-scene id="ARScene" mindar-image="imageTargetSrc: targets.mind; autoStart: false; uiScanning: no">
   (or use the World option:  new AFrameP5AR.World('ARScene', { imageTargets: 'targets.mind' }) )

6. In sketch.js, the index of each picture is the order you added them to the compiler (the first one is 0).

Only one picture is tracked at a time unless you ask for more:
       new AFrameP5AR.World('ARScene', { maxTrack: 2 })


TIPS
----

- Keep the printed picture flat and avoid glare.
- Show the whole picture to the camera to start tracking; after that it can follow the picture even if part of it
  goes off screen.
- If tracking is jittery, try the World options filterMinCF (lower = steadier, e.g. 0.0001) and
  filterBeta (higher = less lag, e.g. 0.01).
