Identifying the AR Marker

We need to tell the AR Controller what target data to use for tracking. For this little demo, we will use the example gibraltar.jpg image we printed earlier. The data for this image is already included in the ARToolkit assets that we imported at the start, and is located in the Assets/StreamingAssets folder.

Add an ARMarker component to the ARController:

  1. In the Hierarchy, select your ARController, then select a script named ARMarker.

Now we need to set the ARMarker parameters:

  1. We need to give it a tag name, say gibraltar, and enter that text into the Marker Tag field.
  2. For Type, select NFT as the target type, because we're going to be tracking an image.
  3. Then, for NFT Dataset Name, enter gibraltar. This is actually ...

Get Augmented Reality for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.