Setting the image target

We want our game court to appear at the image target position in the world. You may choose any image target or marker you prefer. A playing-card sized one, like those used in Chapter 5, AR Solar System, might work well.

Choose an image target for the project. We are using a predefined image, stones in the StonesAndChips database provided with the Vuforia samples package. Print out a hardcopy of this image now if you need to. Let's set up the project to use this image target:

  1. From the main menu, go to Vuforia | Configuration and then check the LoadStonesAndChips Database checkbox and Activate.
  2. Drag the ImageTarget prefab from Assets/Vuforia/Prefabs/ into the Hierarchy.
  3. In Inspector, set Type: Predefined, Database ...

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.