Multiple Image Tracking in AR
Explore how to implement multiple image tracking in augmented reality using Unity and AR Foundation. Learn to configure your scene, set up reference image libraries, manage AR tracked images, and script Prefab spawning for various image markers, enabling you to create dynamic interactive AR applications.
In this lesson, we will explore how to track multiple images and spawn corresponding Prefabs for each image marker using AR Foundation. This functionality enables us to create interactive AR experiences where different Prefabs are spawned based on the detected image markers.
Scene setup
Given below are the steps to set up our AR scene:
Duplicate the “ARImageTracking” scene by locating previous scenes and rename it to “ARMultipleImageTracking.”
Create a new folder called “Multiple images” in the “Assets” > “Reference Image” directory. This folder will store the new image markers and the reference image.
Choose the images we wish to use as image markers. For this lesson, we'll use images of a cat, a shark, and the wolf from the previous single image tracking scene.
With these steps, a new scene is generated for multiple image tracking.