Articles
Fundamentals
Templates

Using Templates

Templates in Spark AR Studio are complete AR projects you can quickly customize to make your own effects.

Opening a template

To open a template:

  1. Open Spark AR Studio.
  2. Select a template from the options in the Welcome Screen.

Templates to choose from

In some templates we’ve used blocks to combine assets, objects and patches. Learn more about blocks.

Real-World Scale Object

Using this template is the quickest and simplest way to create a world effect with an object that’s sized for the real world. Users of effects made with this template can tap to place, move or rotate your object in their real-world surroundings.

Customize the template

You can replace the template’s lamp object with any object, as long as it’s correctly scaled and measured in meters before you import it to Spark AR Studio. To customize the template:

  1. Import your chosen object and select it in the Assets panel.
  2. To place the object in the world, drag and drop it in the Scene panel, under dragHere.
  3. Finally, in the Scene panel, select deleteMe and press delete on your keyboard to remove the lamp placeholder object.

Choose the devices that can view your effect

The template is set up by default to show your effect on all devices, whether or not they support real scale. This means that objects in your effect will appear arbitrarily scaled to users on unsupported devices. If your effect doesn’t make sense at an arbitrary scale you can make sure it’s only distributed to supported devices. To do so:

  1. Select planeTracker0 in the Scene panel.
  2. Go to the Inspector and to the right of Enable Effect, from the dropdown, select Only supported devices.

Learn how to build a real-scale effect withouth the template.

Wings

Select the wings block in the Scene panel and adjust the Inputs in the Inspector to change the hue, position, scale and motion of the wings.

Replace the wings with your own image of a single wing or a set of wings via ReplaceMe. If you choose an image of two wings make sure to check the box to the right of Texure Split in the Inspector to get the same effect.

Hair Color

Transform the color of someone’s hair.

Post-Processing

Use the post-processing filter template to apply different visual effects to the whole scene. The template lets you either choose between six different built-in post-processing filters or layer multiple filters on top of each other. Learn more

Elements

Use the Elements template to add realistic visual effects to your Spark AR effects. In particular, flames, water and air. In this article, we’ll show you how to edit and customize this template to create your own unique effect. Learn more

2D and 3D Stickers

Let people place images and objects in the world. The images and objects will be visible through the back camera of a mobile device.

Replace the 2D textures or 3D objects in the Assets panel to make this effect your own.

Object Reveal

Make an object appear through a hole in a flat surface. People using this effect can then position the object somewhere in the world.

Replace the object in the Scene panel to customize the template.

Eye Color

Add iris tracking to a project. Adjust values in the Inspector to edit the color and appearance of the iris tracking effect.

3D Animated Poster

Use this template to create a target AR world effect. When the back camera is pointed at a real life target, an effect will play.

Face Decoration

Use this template to place objects on the face, like glasses. Just add the objects to your project and drag them into the Scene panel.

World Object

Place an object in the world to create a world effect visible through the back camera on a mobile device with a gyroscope.

Makeup

Use the options in the Inspector to edit the make-up effect on the face in the scene.

Background

This template has background segmentation already set up. Replace the texture applied to the background material to customize the effect.

Head Decoration

Use this template to place objects on the head, like hats or crowns. Just add the objects to your project and drag them into the Scene panel.

Color Filter

Adjust options in this template to create color filters. All you need to do is select the object named ColorFilter in the Scene panel, and edit the values in the Inspector.

Neck Decoration

Use this template to place objects on the neck, like jewelry or a bow tie. Just add the objects to your project and drag them into the Scene panel.

Face Mask

This is a face effect that uses a a physically-based material to create a mask with metallic details, surface texture and realistic lighting.

Voice Changer

Select the voice block in the Scene panel and adjust the Inputs in the Inspector to change how the voice of the person using your effect sounds.

Face Distortion

Adjust the blendshape in the Inspector to change the shape of someone’s face or facial features.

Any effect that changes the shape of the face must not promote the use or depict the sale of a potentially dangerous cosmetic procedure, as per the Spark AR Policies. This includes effects that depict such procedures through surgery lines.

Assets you'll need


Some templates can be customized by simply adjusting the options in Spark AR Studio. To customize other templates you’ll need to add your own:

You can choose from a range of 3D objects in the AR Library or make your own. Use the face reference assets to create textures that fit perfectly on someone’s face.

Check the supported file formats before your import any textures and objects.

How to customize templates

When you open a template, the object or asset we recommend changing will be highlighted in blue. You can edit other parts of the project too if you want.

Depending on the template you’re editing, you’ll either:

  • Replace elements of the scene.
  • Drag and drop objects.
  • Adjust properties in the Inspector.

Replace

The example below is the Background template. You can replace the texture using the options in the Assets panel:

Drag and drop

Import your own objects like 3D models, then drag and drop them from the Assets panel into the Scene panel. In the example below, we're replacing the object in the Head Decoration template:

Adjust properties in the Inspector

When objects are selected in the Scene panel, make changes to them using the options in the Inspector. In the example below, we're changing the hue in the Color Filter template:

Was this article helpful?