Add DefaultPicture to the scene

Next, make DefaultPicture a child under ImageTarget. If it's already in your hierarchy, you can just move it. If not, and you have a prefab in your Prefabs folder, use that. Or, now would be the time to jump up to the beginning of this chapter and implement the DefaultPicture hierarchy objects and scripts.

  1. ParentDefaultPicture under ImageTarget.
  2. Reset its Transform (use gear-icon | Reset).
  3. Set its Rotation X to 90.
  4. We rotate our picture by 90 degrees to align with the way Vuforia targets are on the X-Z plane.
  5. Press Play, point your camera at the image target, and the DefaultPicture should appear, along with the photo image, frame, and toolbar, as shown here, using a target taped to my wall (vuforia-imagetarget.png): ...

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.