Face Mesh

In addition to positioning tracked content around the face, Mattercraft provides a Face Mesh which will fit to the face and deform as the user's expression changes.

This can be used to apply a texture to the user's skin, much like face paint; or to mask out the back of 3D models so the user's head is not occluded where it shouldn't be.

Adding a face mesh

To add a face mesh, first make sure that there is a Face Tracker and a Face Anchor Group in your Hierarchy.

Then, you may use the following instructions:

  1. Right click on the FaceAnchorGroup and hover over New
  2. Find the AR component category and select the FaceMesh component

Adding a Face Mesh to the Hierarchy

FaceMesh properties

The FaceMesh has the following specific properties:

Property Description
Full Head Decides if the full head mesh is 'filled' when it is rendered.
Fill Mouth Decides if the mouth is 'filled' when it is rendered.
Fill Eye Left Decides if the left eye is 'filled' when it is rendered.
Fill Eye Right Decides if the right eye is 'filled' when it is rendered.
Fill Neck Decides if the neck is 'filled' when it is rendered.

Face paint

You may add your own custom face paint to the face mesh should you wish.

Drag and drop face paint texture onto the Face Mesh's material

To add your own face paint texture, you can follow these steps:

  1. Make sure your custom face paint image or video has been imported to the Left Menu, and that you have added a FaceMesh component using the steps above
  2. Drag the custom face paint image or video onto the Standard Material component to assign it as a texture

Please note that distortion may occur due to the image being stretched and squashed when projected onto the contours of the user's face.

Next Article: Face Landmarks

zapcode branded_zapcode i