# How to create an AR Face with Face Paint

Using a given face paint reference you can create your own AR face paint. This refers to a type of augmented reality application that allows users to apply virtual face paint or makeup to a user's face in real time using a camera feed. This enhances a user's appearance by overlaying digital cosmetics onto their face, creating various artistic or cosmetic effects. Inside Easy AR you can see the second example (tiger face) is face paint. Follow the steps given below to create your own AR face paint.

<figure><img src="/files/o0BggIfifR0sjYTkd9F2" alt=""><figcaption></figcaption></figure>

### How to Identify the correct face section to paint (Building reference face)

**Step 1:** Go to Face filter scene by double clicking on Face filter scene inside <mark style="color:yellow;">Easy AR -> Scenes</mark> folder

<figure><img src="/files/Yefr672Gy4tE0TYG5fHs" alt=""><figcaption></figcaption></figure>

**Step 2**: Click AR Session Origin game object and inspect the Switch Face script. Under the Face Prefabs list click + button. It will add a new object to the Face Prefabs list.

<figure><img src="/files/KBEknsAD6Xeg5DWB1hOS" alt=""><figcaption></figcaption></figure>

**Step 3**: Go to <mark style="color:yellow;">Assets -> Easy AR -> Prefabs -> Face Filter</mark> folder. Find ReferenceFacePaint prefab.

<figure><img src="/files/bmArsv3xC4vN8ulwkse9" alt=""><figcaption></figcaption></figure>

**Step 4:** Drag and drop ReferenceFAcePaint prefab into the newly added listMask Prefab. You can add any mask icon sprite into Mask Icon or you can ignore it. (For example, the mask icon is ignored)

<figure><img src="/files/nqepkFsNSxxOO20lcIcg" alt=""><figcaption></figcaption></figure>

**Step 5:** Now go to <mark style="color:yellow;">File -> Build settings</mark>. In the Build settings window choose your build platform and build the apk.

<figure><img src="/files/sNfOPpT6Mw5JLNeQGxV9" alt=""><figcaption></figcaption></figure>

Once you build this build, go to the <mark style="color:yellow;">Menu -> Face filter</mark> demo. You can see a new empty button on the bottom panel. Click it and you can see new face paint with reference texture. Using this reference face you can identify which section you need to paint on your new face paint

<figure><img src="/files/GvdqCFSRSzB1ZU4pW19O" alt="" width="375"><figcaption></figcaption></figure>

### How to draw a face using reference texture

Now you have a pretty understanding of which face segments need to be painted. Let’s start painting.&#x20;

**Step 1:** Go to <mark style="color:yellow;">Assets -> Easy AR -> Textures -> Face Filter</mark> folder. Find FaceUV.png which is your reference image. Add your reference image to photo manipulation software like Adobe Photoshop or Adobe Illustrator.

<figure><img src="/files/7XwtUTuLECPF6swkWitf" alt=""><figcaption></figcaption></figure>

**Step 2:** Create a new layer in the layers panel. Then paint your face paint according to the reference AR face build before. For example, we paint our tiger face on the new layer on top of the reference texture.

<figure><img src="/files/Vez8sGriyl7NcTGkEZ5A" alt=""><figcaption></figcaption></figure>

**Step 3:** Once you complete the face paint, disable the reference texture and export only your face paint layer as a png image.

<figure><img src="/files/KazF03HkRX7zeO0jRukE" alt=""><figcaption></figcaption></figure>

**Step 4:** Then import this face paint image to Unity <mark style="color:yellow;">Easy AR -> Textures -> Face Filter</mark> folder.

<figure><img src="/files/cXWZAZ2kqGtoYO6VsQ3d" alt=""><figcaption></figcaption></figure>

**Step 5:** Then go to <mark style="color:yellow;">Easy AR -> Materials -> Face Filter</mark> folder. Create new material by right click -> Create -> Material.

<figure><img src="/files/GimAOSlGgPKB90VGDae0" alt=""><figcaption></figcaption></figure>

**Step 6:** Name this material as your face paint name, in our case tiger. Set material shader to Standard in the inspector. Set Rendering mode to Fade. Set Face paint texture (Tigerface.png) as Albedo map

<figure><img src="/files/8qMZzujAGmDFUXFfFqZk" alt=""><figcaption></figcaption></figure>

**Step 7:** Go to <mark style="color:yellow;">Easy AR -> Prefabs -> Face Filter</mark> folder. Duplicate the ReferenceFacePaint prefab and change its name to your facepaint name. In our case, we painted Tiger Face so name it as TigerFace. Double-click to load the prefab.

<figure><img src="/files/CrvOH2jEN0Cb5A9BAPI6" alt=""><figcaption></figcaption></figure>

**Step 8:** Click the TigerFace game object. In Inspector under mesh renderer materials set newly created tiger material.

<figure><img src="/files/8ugTTkLUL74aUpt82XyU" alt=""><figcaption></figcaption></figure>

**Step 9:** Then go back to the face filter scene and select the AR session origin game object. In inspector remove reference AR Face from list in the Switch Face script. Attached to game object. Add your newly created prefab (in example Tiger face) to a new item on the Face prefabs list. If you have an icon for the button convert that image to sprite type and Add to mask icon box.

<figure><img src="/files/Zin8FA9RCFodA13htLYN" alt=""><figcaption></figcaption></figure>

**Step 10:** Now it’s time to build the apk. Go to File -> Build Settings. In the Build window make sure you added the Face Filter scene. Choose your build platform and build the apk.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://render-island.gitbook.io/easy-ar/guides/how-to-create-a-custom-ar-face/how-to-create-an-ar-face-with-face-paint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
