Everything you need to know to create an interactive augmented reality experience.
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.
In this tutorial, you'll learn to track an object to a person's hand.
You'll also learn:
Download the sample content to follow along. If you open the finished effect, you'll see that when you wave your hand, it looks like you're holding a baseball.
Open Spark AR Studio and create a new project. To see what an effect that uses Hand Tracking looks like, you'll need to switch on your webcam by clicking Video then FaceTime HD Camera in the Toolbar.
Click Insert and select Hand Tracker from the menu, then click Insert.
When your hand is in view of the Camera, you should see an axis tracking your hand in the Viewport.
You should also see handtracker0 listed in the Scene tab on the left. This tab lets you manage the hierarchy of objects in your scene. The Hand Tracker will be inserted by default in the right position.
Next, you'll need to insert an object.
On handtracker0, Click Insert. Select 3D Object and select baseball.fbx from the sample folder.
In the Scene tab you'll now see an object nested under the Handtracker, called baseball. This object has a container with a mesh nested under it, also called baseball.
If you raise your hand, you'll see a sphere tracking your hand.
In this tutorial, the sphere isn't the right size. We've changed this by clicking the container and changing the Scale in the Inspector panel to 1 for the X, Y and Z axis.
To make the object look like a baseball you'll need to apply 2 textures.
First, click the baseball mesh in the Scene tab. Then, in the Inspector panel, click baseballMaterial. You'll see baseballMaterial is now listed in the Asset panel.
Next, to add colors to the baseball:
Finally, tick the box for Specular. This will give the ball a shiny effect.
You can drag and drop an object file containing all the materials and textures you need from your computer directly into Spark AR studio.
We've provided a complete file in the sample content - just drag the file into the Asset panel.
To make the baseball appear in the scene, drag and drop the file onto the Hand Tracker.
You can also use scripting to achieve more complicated effects. For example, to assign an object's coordinates to the hand.
Find inspiration, see examples, get support, and share your work with a network of creators.Join Community