Learn Spark AR Studio

Everything you need to know to create an interactive augmented reality experience.

Clear
Back

There may be differences between your version of Spark AR Studio and this tutorial because the product is currently in beta and we update it regularly.

Tutorial: Adding a Hand Tracker

You can use a hand tracker to create effects that respond when the camera detects a hand.

In this tutorial, you'll learn to add hand tracking to an effect, by:

  1. Adding a hand tracker.
  2. Tracking an object to the hand.

Download the sample content to follow along. In the finished effect you'll see that when you wave your hand, it looks like you're holding a baseball.

Setting up

To see what an effect with hand tracking looks like, you'll need to switch on your computer's camera. This will let you see your own hands in the Simulator, when it comes to testing out the hand tracking effect.

To do this:

  1. Click the video symbol in the toolbar.
  2. Select your camera.

Adding a hand tracker

Start by adding a hand tracker to the scene:

  1. Click Add Object.
  2. Select Hand Tracker.


In the Simulator, you'll see an instruction saying Hold up a hand!.



This is an automatic instruction that's added to all effects with a hand tracker. If you hold up a hand, the message will disappear. Find out more about adding instructions.

Tracking an object to a hand

We've already added a 3D object to the project. It's listed in the Assets Panel as baseball. The object looks like, you guessed it, a baseball.

You could try out hand tracking with another object if you wanted - there are lots to choose from in the AR Library.

To make the object appear in response to a hand, the object should be a child of the hand tracker in the Scene Panel. When an object is a child of another object in Spark AR Studio, it'll respond to its parent object - in this case, appearing when a hand is detected.

To create a child-parent relationship, all you need to do is drag one object onto another in the Scene Panel:



You can drag the baseball object directly from the Assets Panel, onto the hand tracker in the Scene Panel. This will add the object to the scene, at the same time as creating the relationship with the hand tracker.

Because the object is a child of the hand tracker, it's nested underneath it in the Scene Panel.



And there you have it, an effect with hand tracking!

Learn more

In this tutorial, you've learned to add a hand tracker! Next, learn about:

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?