แล็บ: ขัดเกลาโมเดล วัสดุ PBR และเรนเดอร์
Course 3 · Module 2
Type: Hands-on (detail modeling · materials · lighting · render)
Suggested time: ~3.5–4 ชั่วโมง
Read first: Lesson · Look-dev sheet · ← TOC · ← M01 · M03 →
Keep these tabs open
หัวข้อที่มีชื่อว่า “Keep these tabs open”| Document | Why |
|---|---|
| Boolean Modifier | cutouts |
| Solidify | wall thickness |
| Bevel | soft edges |
| Principled BSDF | PBR |
| EEVEE / Cycles | render |
Lab Goals
หัวข้อที่มีชื่อว่า “Lab Goals”- พัฒนาไฟล์จาก M01 ให้มีช่องเปิดอย่างน้อย 2 จุด
- แยก ฝา กับ ฐาน เป็นคนละ object
- ใส่วัสดุ PBR อย่างน้อย 2 ชนิด
- เรนเดอร์ภาพนำเสนออย่างน้อย 1 ภาพ (แนะนำ 2: beauty + technical)
- กรอก material-lighting-sheet.md
Prerequisites
หัวข้อที่มีชื่อว่า “Prerequisites”- มี
m01_block_enclosure.blend(หรือเทียบเท่า) จาก M01 - หน่วยยังเป็น Metric + mm ตามสูตรทีม
- PCB placeholder ยังอยู่ในฉาก
คัดลอกไฟล์เป็น m02_enclosure_detail.blend ก่อนแก้ — เก็บต้นฉบับ M01 ไว้
Lab A — Lock scale, then thicken (required)
หัวข้อที่มีชื่อว่า “Lab A — Lock scale, then thicken (required)”- เปิดไฟล์ · ตรวจ Dimensions ของ
PCB_placeholderยังตรง checklist M01 Ctrl+A→ Scale บน enclosure- ทำให้ผนังหนาประมาณ 2 mm (Solidify หรือวิธีเจาะโพรงตามบทเรียน §2.2)
- Wireframe: PCB ยังอยู่ภายในและไม่ชนผนัง
Pass when: ความหนาผนังชัด และสเกล PCB ไม่เปลี่ยนโดยไม่ตั้งใจ
Lab B — Cut at least two openings (required)
หัวข้อที่มีชื่อว่า “Lab B — Cut at least two openings (required)”- สร้าง cutter สำหรับช่องที่ 1 (เช่น USB)
- Boolean Difference บน enclosure
- ทำช่องที่ 2 (เซ็นเซอร์ / LED / ปุ่ม)
- ตรวจขนาดช่องเผื่อ connector ตามแนวทาง M01
- Apply Boolean เมื่อพอใจ · ตั้งชื่อ object ให้สื่อความหมาย
Pass when: มองเห็นช่อง ≥ 2 จากมุมนอกกล้อง
Lab C — Bevel and split lid / base (required)
หัวข้อที่มีชื่อว่า “Lab C — Bevel and split lid / base (required)”- มนขอบนอกที่มือจับ (Bevel ≈ 0.5–1.5 mm)
- แยกเป็น
Enclosure_baseและEnclosure_lid - จัด Origin ของฝาที่ขอบบานพับหรือกึ่งกลางขอบหลัง (เตรียมหมุนใน M03)
Pass when: Outliner มีอย่างน้อย 2 object ของกล่อง และเลื่อนฝาแยกจากฐานได้
Lab D — Two PBR materials (required)
หัวข้อที่มีชื่อว่า “Lab D — Two PBR materials (required)”- สร้าง
Plastic_matte_bodyตามค่าเริ่มต้นในบทเรียน (หรือเทียบเท่า) - สร้างวัสดุที่ 2 (ยาง / โลหะ / ปุ่ม)
- Assign ให้ชิ้นส่วนที่เกี่ยวข้อง
- จดค่า Base Color / Roughness / Metallic ใน look-dev sheet
Pass when: Material ≥ 2 และมองเห็นความต่างของผิวใน Material Preview หรือ Rendered viewport
Lab E — Lights, camera, render (required)
หัวข้อที่มีชื่อว่า “Lab E — Lights, camera, render (required)”- เลือก EEVEE (หรือ Cycles ถ้าเครื่องไหว)
- ตั้งไฟแบบ three-point หรือ World + Area หนึ่งดวง
- จัดกล้อง three-quarter ที่เห็นพอร์ต
- Render ≥ 1 ภาพ ความละเอียดอย่างน้อย 1280×720 (แนะนำ 1920×1080)
- บันทึก PNG เช่น
m02_beauty.png - (แนะนำ) เรนเดอร์มุมเทคนิค
m02_ports.png
Pass when: มีไฟล์ภาพในโฟลเดอร์โปรเจกต์และ sheet กรอกครบ
Lab F — Optional
หัวข้อที่มีชื่อว่า “Lab F — Optional”- Emission อ่อน ๆ บน LED
- เทียบผิวกับโมเดลใน ternion-3d-assets-free
- Render ด้วย Cycles เปรียบเทียบ EEVEE หนึ่งคู่
Deliverables checklist
หัวข้อที่มีชื่อว่า “Deliverables checklist”-
m02_enclosure_detail.blend - ช่องเปิด ≥ 2 · ฝา/ฐานแยก
- วัสดุ ≥ 2
- PNG render ≥ 1
- material-lighting-sheet.md กรอกครบ
Troubleshooting
หัวข้อที่มีชื่อว่า “Troubleshooting”| Symptom | What to try |
|---|---|
| Boolean รูเพี้ยน / ไม่เจาะ | Apply Scale · ลอง Solver Exact · ตรวจ cutter ทับผนังจริง |
| Bevel ไม่สม่ำเสมอ | Apply Scale · ลดความกว้าง bevel |
| PCB ใส่ไม่ลงหลัง Solidify | ผนังหนาเข้าด้านในเกินไป — ขยายกล่องหรือ offset ออกนอก |
| วัสดุดูดำทั้งก้อน | เพิ่มไฟ / เปิด Material Preview · ตรวจ Metallic ไม่เป็น 1 โดยไม่ตั้งใจบนพลาสติก |
| Render ช้ามาก | สลับ EEVEE · ลด resolution ชั่วคราว |
Lesson · Look-dev sheet · TOC · M03 →
อ้างอิงบทเรียนนี้
ถ้านำบทเรียนนี้ไปสอน ทำสไลด์ หรือทำเอกสารต่อ ให้อ้างอิงด้วยข้อความนี้ ถ้าดัดแปลงเนื้อหา ให้เติม (ดัดแปลง)ต่อท้ายชื่อบทเรียน
"แล็บ: ขัดเกลาโมเดล วัสดุ PBR และเรนเดอร์" จาก TESA Open Knowledge โดยสมาคมสมองกลฝังตัวไทย (Thai Embedded Systems Association: TESA) https://github.com/tesaiot/tesa-qualification-program สัญญาอนุญาต CC BY-NC 4.0
ข้อความอ้างอิงภาษาอังกฤษ: "Lab: Refine Model, PBR, and Render" from TESA Open Knowledge by the Thai Embedded Systems Association (TESA), https://github.com/tesaiot/tesa-qualification-program, licensed under CC BY-NC 4.0
ลิงก์บทเรียน: https://tesaiot.github.io/tesa-qualification-program/courses/product-design/m02-modeling-render/l02-lab/
บทเรียนนี้ดัดแปลงจากต้นฉบับด้านล่าง เมื่ออ้างอิงให้คงเครดิตต้นฉบับไว้ด้วย
https://github.com/drsanti/TESAIoT-Courses/blob/287c21814ba8c75f693136616dcd270349a15966/C3/M02/lab.md · Original content by Asst. Prof. Dr. Santi Nuratch (ผศ.ดร.สันติ นุราช), KMUTT. Course 3 (C3/) of drsanti/TESAIoT-Courses. TESA funded the work and holds the rights; published here under CC BY-NC 4.0. The upstream repository carries no licence file. Text kept faithful; structure, front matter, quizzes and notes added by TESA Open Knowledge.
TESA Open Knowledge · © 2026 สมาคมสมองกลฝังตัวไทย (TESA) · CC BY-NC 4.0
เนื้อหาเผยแพร่ภายใต้ CC BY-NC 4.0 นำไปใช้ต่อในงานที่ไม่ใช่เพื่อการค้าได้ โปรดอ้างอิงสมาคมสมองกลฝังตัวไทย (TESA) ทุกครั้ง · วิธีอ้างอิง TESA