31
Blender 3D Materials and Texturing Phierapath Nannararut College Of Social Communication Innovation Srinakharinwirot University Saturday, August 13, 2011

Materials and Texturing

Embed Size (px)

DESCRIPTION

พีรพัทธ์ นันนารารัตน์ Mekha Project Manager

Citation preview

Page 1: Materials and Texturing

Blender 3DMaterials and Texturing

Phierapath NannararutCollege Of Social Communication Innovation

Srinakharinwirot University

Saturday, August 13, 2011

Page 2: Materials and Texturing

พีรพัทธ์ นันนารารัตน์- Mekha Game Starter Kit Project Manager at SIPA- 5 years experience in Game Industry- 4 Full-Games in Programmer, Designer, Director positions- Studying B.Sc 1st year in Social Communication Innovation (Interactive and Multimedia Design) at SWU- Special Lecturer at SWU, BUU, Mahidol University , Ministry of Education , Sukhothai Open University

Lecturer’s Profile

Saturday, August 13, 2011

Page 3: Materials and Texturing

Part I - Materials

คือการกําหนดคุณลักษณะของพื้นผิววัตถุสามมิติ เช่น การแพร่กระจายของแสง การสะท้อนแสง หรือความโปร่งแสง และอื่นๆ

Saturday, August 13, 2011

Page 4: Materials and Texturing

Material Tools

Saturday, August 13, 2011

Page 5: Materials and Texturing

Basic Material Settings

Saturday, August 13, 2011

Page 6: Materials and Texturing

Material Buttons

Material SlotMaterial NameMaterial StackColor PickerTabs

Saturday, August 13, 2011

Page 7: Materials and Texturing

HSV or HSB

HSV (Hue, Saturation, Value) Color Model หรือ HSB (Hue, Saturation, Brightness) โมเดลสีนี้ประกอบดวยคา 3 คา ไดแก - Hue คือคาของสี เชนสีแดง สีเหลือง สีเขียว วัดเปนมุม คือ 0 – 360 องศา ซึ่งสีแดง สีเหลืองและ สีเขียวจะมีคาตางกันสีละ 60 องศา - Saturation คือคาความเขมของเนื้อสี หรือคาความบริสุทธิ์ของสี มีคาตั้งแต 0 – 100 โดยสีจะมีความเขมมากขึ้นเรื่อยๆ เมื่อคา Saturation มีคาเพิ่มขึ้น - Value หรือ Brightness คือ ความสวางของสี มีคาตั้งแต 0 – 100 โดยภาพจะสวางมากขึ้นเรื่อยๆ เมื่อ Brightness มีคาเพิ่มขึ้นเรื่อยๆ

Saturday, August 13, 2011

Page 8: Materials and Texturing

Light diffusion

แสงพรา หรือ diffusion หมายถึงการที่แสงสะทอนหรือกระทบตัวกลางที่มีพื้นผิวไมเรียบ และกระจายทิศทางการสะทอนหรือการนำแสง โดยไมอิงกับแนวฉาก ทำใหวัตถุที่สะทอนมีความสวางเทาๆโดยไมขึ้นกับทิศทางของผูสังเกตเหมือนการสะทอนแบบกระจกหรือ specular เชนการสะทอนแบบ diffuse ของแปง หรือในการวิ่งผานการที่แสงวิ่งผานเทฟลอนหรือกระดาษ (diffuse transmission) โดยทั่วไปวัสดุจะสะทอนแสงไดทั้งแบบ specular และแบบ diffuse ผสมกันในสัดสวนตางๆกันไปตามชนิดของวัสดุ ซึ่งถาวัสดุสะทอนแบบ diffuse ทั้งหมด (ไมมีแบบ

specular ผสม) แสงสะทอนจะกระจายทั่วครึ่งทรงกลมโดยรอบพื้นผิวนั้น (2π สเตอเรเดียน)

Saturday, August 13, 2011

Page 9: Materials and Texturing

Color diffusion assignment

Saturday, August 13, 2011

Page 10: Materials and Texturing

Specular

Specular reflection เปนลักษณะการสะทอนแสงที่สมบูรณเชนการสะทอนของกระจกเงาหรืออาจหมายถึงการสะทอนบางชวงของสเปกตรัมที่มีลักษณะดังกลาวก็ได โดยการสะทอนแบบนี้จะแตกตางจากการสะทอนแบบ Diffuse reflection ที่ความสวางจะไมขึ้นกับมุมมอง เชนถาเราเดินผานตัวถังรถยนตซึ่งมักใชสีสะทอนแสงเปนเงาวาวแบบ specular เราจะเห็นแสงสะทอนเปลี่ยนไปในแตละมุมมอง ตางจากถนนคอนกรีตที่เปนการสะทอนแบบ diffuse มากกวา specular โดยเราจะเห็นพื้นผิวคอนกรีตเปนสีเดิมไมวาจะมองมาจากทิศทางใด

Saturday, August 13, 2011

Page 11: Materials and Texturing

Specular assignment

Saturday, August 13, 2011

Page 12: Materials and Texturing

Diffuse and Specular

Saturday, August 13, 2011

Page 13: Materials and Texturing

Diffusion and Specular Intensity

Saturday, August 13, 2011

Page 14: Materials and Texturing

Ramp

Ramp Shader เปนเครื่องมือที่กอใหเกิดการผสมผสานระหวางDiffuse กับ Specular อยางละเอียดออน หากติ๊ก Ramp ในสวนใด สวนนั้นจะเปนสีที่มี

ความโดดมากกวาปกติ

Saturday, August 13, 2011

Page 15: Materials and Texturing

Transparency

Saturday, August 13, 2011

Page 16: Materials and Texturing

Mirror

Saturday, August 13, 2011

Page 17: Materials and Texturing

Multi-material assignment

ในโมเดลหนึ่งชิ้น เราสามารถที่จะใชพื้นผิววัตถุหลายๆแบบได โดยดารเลือกเฉพาะสวนที่ตองการใน Edit Mode แลวเลือก Material ที่ตองการ แลวกด Assign

Saturday, August 13, 2011

Page 18: Materials and Texturing

Vertex Paint

กดเลือกเมนู Vertex Paint แลวสามารถวาด Material ที่ตองการได

Saturday, August 13, 2011

Page 19: Materials and Texturing

Get a breakfor a while

Saturday, August 13, 2011

Page 20: Materials and Texturing

Part II - Texturing

Texture can make or break the usability of a 3D model.

Saturday, August 13, 2011

Page 21: Materials and Texturing

Texture Button

* ขอความระวัง ตองสราง Material กอน Texture ทุกครั้ง

Saturday, August 13, 2011

Page 22: Materials and Texturing

Texture Tools

LayerType

Saturday, August 13, 2011

Page 23: Materials and Texturing

Texture assignment

ติ๊กชองสี่เหลี่ยม หลังชื่อ Texture ใน Layer

Saturday, August 13, 2011

Page 24: Materials and Texturing

Picture file

Saturday, August 13, 2011

Page 25: Materials and Texturing

Mapping the Texture

Saturday, August 13, 2011

Page 26: Materials and Texturing

Free Texture Generator

Neo Texture EditSaturday, August 13, 2011

Page 27: Materials and Texturing

UV Texture Mapping

ทดลองสราง Cube โดยที่ไมตองใส Texture และ Material

เขาสู Edit Mode แลวเลือก UV Mapping : Unwrap ที่เมนูดานขวาแลวเลือก Follow Active Quads

เปดหนาตาง UV Editor ขึ้นมา

เลือกรูปภาพที่จะใสในกลองสี่เหลี่ยมแตละดาน

Saturday, August 13, 2011

Page 28: Materials and Texturing

UV Texture Mapping

เลือก Browse ไฟลที่จะนำมา Map จากดานลาง

Saturday, August 13, 2011

Page 29: Materials and Texturing

UV Texture Mapping

หากตองการเร็นเดอร ใหสราง Material ขึ้นมา แลวเลือก Face Texture ในหัวขอ Option

Saturday, August 13, 2011

Page 30: Materials and Texturing

Do it yourself- Create your avatar with Blender 3D

Saturday, August 13, 2011

Page 31: Materials and Texturing

All you can learnwww.thaiopengames.org

Saturday, August 13, 2011