Clear
Back

Creating a Mask with the Face Paint Material

Use the face paint material in Spark AR Studio to create mask effects that shows the skin and features of the person using the effect, behind either a custom texture or a color.

For example, you can use this material to create a tattoo or makeup effect.

Learn about:

  1. Creating a face paint material.
  2. Making a mask effect using the face paint material.
  3. The face paint material's properties.

We've used the face paint material to make a simple mask in this video tutorial.

Creating a face paint material

To create a face paint material:

  1. Select the material in the Assets panel - the material should be applied to a face mesh.
  2. Set the Shader Type to Face Paint in the Inspector panel.

Making a mask effect

First create a face mesh:

  1. Click Add to Scene.
  2. Select Face Mesh.

You'll see a face shape in the Viewport:

With the face mesh selected in the Scene panel, go over to the Inspector.

  1. Click + next to Material, to create a material for the face mesh.
  2. Select the material you just created in the Assets panel.
  3. In the Inspector, change the Shader Type to Face Paint.

You can then either add a texture or color to the material by selecting an option from the dropdown next to Type:

Importing a texture

If you've selected Texture, choose the texture file you want to add from the menu or import a new one.

Once you've added the texture, you should see it on the face in the Viewport and Simulator:

Choosing a color

If you've selected Color, simply add a color from the palette:

Face paint material - properties

Type

  • Texture - Choose the texture file you want to add from the menu or import a new one.
  • Color- Add a color from the palette.

Render Options

Cull Mode

Back - Discard pieces of the mesh that are facing away from the viewer. Most effects use this mode to improve performance.

Front - Discard pieces of the mesh that are facing the viewer.

Opacity

Set the transparency of the material on an individual map level.

BG Influence

Multiplies a color or texture against a grey-scale version of the video feed.

Brightness

Sets the brightness of a color.

Double-sided

Displays both sides of a face normal.

Used By

Check which object this material is applied to.

Learn more

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?