The face mesh is a 3D model of a face. It works in combination with the face tracker in Spark AR Studio to create a surface that reconstructs someone's expressions.
Find out about:
To add a face mesh:
If you add a face mesh without a face tracker, a face tracker will be added automatically.
One of the simplest effects you can make in Spark AR Studio is a mask effect. To do this, all you need to do is apply a material to the face mesh. To do this:
Either choose a material you've already added to your project, or select Create New Material. The best type of material to use for a mask is the face paint material.
It's also worth watching this short tutorial video, for a step-by-step guide to making a mask effect.
You can use a 3D object called a blend shape to adjust the shape of the face mesh. You can either make your own using a 3D modeling program, or download the face distortion pack. The face distortion pack includes options to distort many facial features - you can see how we've used it in this tutorial.
To add a blend shape:
Under deformation, a range of sliders will appear - depending on what's included in the blend shape. Adjust the sliders until you've got the effect you're happy with:
Spark AR Studio provides a range of assets that you can use to help make face effects.
One of these is the face mesh mask - which can be used to fade the edges of the face mesh, so effects like masks will blend seamlessly with the head.
Uncheck this box to stop the face mesh from rendering in the scene.
You can have more than one face tracker in the scene. Choose which face tracker will drive the face mesh.
Choose whether you want the face mesh to have an opening for someone's eyes, or not.
Choose whether you want the face mesh to have an opening for a mouth, or not.
Edit the position, scale and rotation of the face mesh.
Choose the material you want to apply to the mesh, or create a new one.
Make changes to the shape of the face, using blend shapes you've created in 3D modeling software. Find out more about deforming the face mesh.
If you want to deform the shape of the face, you'd apply the blend shape here.
Use the slider to change the appearance of the face, if you've applied a blend shape to your face mesh.
Insert simple combinations of patches into the Patch Editor, like tap gestures.
Choose the camera or cameras on a mobile device in which you want to render the face mesh
To create a patch to represent the face mesh, all you need to do is select the face mesh in the Scene Panel and drag it into the Patch Editor.
Connect this patch to the Object Tap patch, to create a boolean signal each time the face mesh in the scene is tapped.
Including multiple faces meshes in a scene will impact the performance of your effect. If you're layering simple face meshes, it's best to avoid layering more than 5.