---
title: 3D Mapping - Lens
slug: studio-guide/3d-mapping-lens
docTags: 
createdAt: 2024-09-02T08:34:13.132Z
---

## STEP 1 : Preparing for lens modeling

First, open the downloaded [LENS\_sample ](docId\:ctCJwcYcqFub-BJhurQlQ) .

- This file includes fbx, prefab, material, and sample texture files.

![491](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-JL0ag2mdn0ZIP820BKIiS-20240904-102325.png)

:::hint{type="danger"}
**❗️ caution**
Each file includes a meta file. This is a file that is automatically generated by Unity. As it has information about options, it must always move together when the file is moved.
:::



When you import the .fbx file in Maya, you can see EYE\_00 (lens mesh), hips joint (the joint connected to EYE\_00), and the mask mesh which has the vertex colored according to the area of the lens.

![1712](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-MAS0RUveMnTdfZ6phFt9n-20240904-102325.jpg)



## STEP 2 : UV mapping

Select EYE\_00 and open the UV Editor to save the UV.

![1600](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-UFJJ9c-czPqtix77vrIKQ-20240904-102325.png)



Checking the weight value of  EYE\_00 will show that both eye\_L and eye\_R are assigned values of 1.

![1812](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-_ZK8ECC-e3spp4iXWTreS-20240904-102325.png)

:::hint{type="success"}
**👍&#x20;**&#x44;on't use the sample file for the weight value but rather keep it as a reference when creating the lenses.
:::



Open Unity and import the LENS\_sample file to find the LENS\_sample prefab. Connect this prefab to the ClothesGlasses tab to see the character's eyes change.

![2880](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-m4PyaWScHEOECDZRU6I5Y-20240904-102326.png)



Refer to the previously made UV to create the texture you want and connect the newly made texture.

![400](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-ilPyUcev9nUfSzvlIOl4p-20240904-102325.jpg)



## STEP 3 : Exporting

Convert the .fbx file into a prefab using the Convert to ZEPETO Style menu.

![2880](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-H6tW6z0gan38fHlEGlyyV-20240904-102325.jpg)



Connect the prefab in Unity to the ClothesDress tab to see your lenses applied.

![2880](https://api.archbee.com/api/optimize/fCt3n1oCa8rgNJ8fw9I2N-Xf7DTNJG0Afn2inRXo5QZ-20240904-102325.jpg)



Select the prefab and create a .ZEPETO file through the ZEPETO Studio -> Export as ZEPETO menu.
