Face Mask
The Face Mask
effect maps a 2D texture to your face. The texture appears to be painted on your skin and contorts with facial movements. Great for full face masks but also can be used for realistic makeup.
Create the Face Mask
To create a Face Mask
object, first click the +
button in the Objects
panel. Then, select Face Effects -> Face Mask
.
Adjust the Face Mask
If you haven't imported a texture into your project yet, select + -> Import Files
from the Resources
panel and select the texture you wish to import. Click the Texture
field in the Face Mask
component and assign it to your imported texture.
The Face Mask
object is a 2D object. Adding a new face mask automatically opens the 2D Scene
view in the Scene Panel to visually edit the face mask.
Adjust the anchor points in the Scene
panel to map the texture to the face. These points anchor areas of the face to the inputted texture.
The three buttons below the point editors represent Symmetrical Mode
, Detect Face
and Reset Points.
Points are moved symmetrically by default. You can disable this by unchecking the Symmetrical Mode
button. If you're using a texture with a recognizable face, click the Detect Face
button to map the points automatically. Reset Points
will reset all the anchor points to the default positions.
The Opacity Texture has a different set of anchor points. To tune the Opacity Texture points, choose Opacity
from the toggle above the point editor. Align your anchor points to fit the Opacity Texture. Note, every Face Mask
has a default Opacity Texture so you can ignore this step if you don't need a custom Opacity Texture.
Face Mask Helper Files
To help create your face mask, you can download the following files which contain PNGs and a PSD that can be used as a reference to draw your mask. Take a look at the Face Paint Template to learn more about how you can use the Face Mask, and this reference file.
Face Mask Settings
The Face Mask
object has a number of settings that can be configured in the Inspector
panel.
- Face Index - Which face the object will apply to. The first face in the scene is 0; the second face in the scene is 1
- Material - This is the material that will be added to the face. In most cases, you can leave this material set to
Default
. When using theDefault
material, the following properties can be modified to customize the Face Mask object:- Texture - This is the texture that will be added to the Material on the Snapchatter's face
- Opacity Texture - The Opacity Texture defines where the
Face Mask
will draw. White in the Opacity Texture defines areas where the face texture will be drawn while black occludes. TheFace Mask
object initializes with a default Opacity Texture - Blend Mode -
Face Mask
offers a variety of blend modes. Using modes beyond Normal also helps the texture blend more naturally with the face - Alpha - The intensity of the
Face Mask
object. Often, we dial back the alpha of aFace Mask
object so it blends more naturally with the user's skin
- No Mask - Enable if you won't be using a mask
- Draw Mouth - Should the face mask apply to the mouth
- Use Original Face - Enable this if you want to use the user's face as the texture. Used for drawing the user's face over a 3D object attached to the head