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
Section titled “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:
- Right click on the
FaceAnchorGroup
and hover overNew
- Find the
AR
component category and select theFaceMesh
component
FaceMesh properties
Section titled “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
Section titled “Face paint”You may add your own custom face paint to the face mesh should you wish.
To add your own face paint texture, you can follow these steps:
- 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 - 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.