Clear
Back

Target Tracker

In Spark AR Studio you can create effects that are triggered when the camera is pointed at an image in the real world, for example a poster for a movie. You'll an object called a target tracker to do this.

Learn about:

Adding target tracking

Start by adding a target tracker:

  1. Click Add Object.
  2. Select Fixed Target Tracker from the menu.

It’ll be listed in the Scene panel. You’ll also see a square in the middle of the Viewport and Simulator. This square represents the space for the target image:

Add the target image

This is a texture representing the real life image that will trigger the effect. To add it:

  1. Select the target tracker in the Scene panel.
  2. Go to the Inspector.
  3. Next to Texture, click Choose File....
  4. Select the texture file that you want to trigger the effect.

You'll see the texture appear in the Viewport:

Adding the effect that will be triggered by the target

To add the effect you want to trigger when the camera is pointed at the target, add the objects you want to appear as a child of the target tracker.

Target tracker properties

When the target tracker is selected in the Scene panel you can view and edit its properties in the Inspector.

Layer

Set which layer the target tracker is assigned to.

Visible

When this box is checked, the target tracker is visible in the effect.

Texture

Add the texture that will trigger the effect.

Transformations

Change the position, scale or rotation of the target.

Enable for

Set whether the target tracker works through the front or back camera, before the effect is captured or during capture.

Interactions

Create simple patch graphs to represent the target tracker.

Creating a patch for the target tracker

To create a patch, drag the target tracker from the Scene panel into the Patch Editor.

A series of 3 patches will be created:



  • Target Finder will find a target image when the camera is pointed at it.
  • Target Select will output a boolean signal when a target is detected by Target Finder.
  • staticTargetTracker can output the position, scale and rotation of the target in 3D space, and whether a target has been found.

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Join the Spark AR Creator's community

Find inspiration, see examples, get support, and share your work with a network of creators.

Join Community

Frequently asked questions

Have a specific question? Maybe it's been answered.


Read FAQs
Was this document helpful?