Face paint texture tutorial
In this post we'll show you how to make face paint in DeepAR Studio.
We'll make a simple, two-color face paint effect. This can be useful when creating fun filters for sports team supporters.
First of all, you'll need to download the example folder that contains the original face mesh needed to go through this example.
Download this example with all assets.
1. Importing FBX in DeepAR Studio
The first thing you'll need to do is to open DeepAR studio and import the original face mesh.
Go to File → Import Legacy FBX
and choose original_face.fbx
under the face_paint_example folder.
2. Making the Face Paint effect
After you import the FBX, you'll need to make your face paint texture.
We already prepared the face paint texture for you. You can find it in the download folder for this tutorial.
You can also make your own texture. We've put a face mesh asset in the download folder. You can use it to make your own face paint according to this face mesh image.
See how we created this example in the Photoshop screenshot below.
3. Importing and setup face paint
Next, you need to add texture you want to use as face paint.
To add the image you want to display, (face_paint in this case), go to the Texture tab
, click Add → Texture
and choose the face_paint.png
under the face_paint_example folder.
Now let's set up the material:
Go to the
Material properites
For
Select shader
choose theUnlit texture
For
Diffuse texture
select theface_paint.png
For Blend mode
, try which one works best for your face paint.
In this case, we choose the Alpha Blend
mode.
And here it is, your face paint filter ready to be exported and used in your app!