การทำแผนที่ 3 มิติ - เลนส์
ก่อนอื่น เปิดไฟล์ที่ดาวน์โหลด LENS_sample .
- ไฟล์นี้ประกอบด้วยไฟล์ fbx, prefab, material และไฟล์ texture ตัวอย่าง

❗️ ข้อควรระวัง แต่ละไฟล์ประกอบด้วยไฟล์ meta ซึ่งเป็นไฟล์ที่สร้างขึ้นโดยอัตโนมัติโดย Unity เนื่องจากมีข้อมูลเกี่ยวกับตัวเลือกต่างๆ ไฟล์นี้ต้องย้ายไปพร้อมกับไฟล์หลักเสมอเมื่อมีการย้ายไฟล์
เมื่อคุณนำเข้าไฟล์ .fbx ใน Maya คุณจะเห็น EYE_00 (ตาข่ายเลนส์), ข้อต่อสะโพก (ข้อต่อที่เชื่อมต่อกับ EYE_00) และตาข่ายหน้ากากที่มีการระบายสีตามพื้นที่ของเลนส์

เลือก EYE_00 และเปิด UV Editor เพื่อบันทึก UV

การตรวจสอบค่า weight ของ EYE_00 จะแสดงให้เห็นว่า eye_L และ eye_R ทั้งสองมีค่าเท่ากับ 1

👍 อย่าใช้ไฟล์ตัวอย่างสำหรับค่า weight แต่ให้เก็บไว้เป็นข้อมูลอ้างอิงเมื่อสร้างเลนส์
เปิด Unity และนำเข้าไฟล์ LENS_sample เพื่อค้นหา LENS_sample prefab เชื่อมต่อ prefab นี้กับแท็บ ClothesGlasses เพื่อดูการเปลี่ยนแปลงของดวงตาตัวละคร

อ้างอิง UV ที่สร้างไว้ก่อนหน้านี้เพื่อสร้างพื้นผิวที่คุณต้องการและเชื่อมต่อพื้นผิวที่สร้างขึ้นใหม่

แปลงไฟล์ .fbx เป็น prefab โดยใช้เมนู Convert to ZEPETO Style

เชื่อมต่อ prefab ใน Unity กับแท็บ ClothesDress เพื่อดูเลนส์ที่คุณนำไปใช้

เลือก prefab และสร้างไฟล์ .ZEPETO ผ่านเมนู ZEPETO Studio -> Export as ZEPETO

