2018年4月16日 星期一

Week08_葉子的筆記

電腦圖學

(1) 主題:打光
(2)期中模擬考
(3)T-R-T模擬考
(4)回家作業
(5)Recap (最少一個關節)


參考3D模型-Step 1


TODO: 到 http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/ 下載

windows.zip /  data.zip / glut32.dll

source.zip 等一下要用 glm.h / glm.c -> glm.cpp

再參考 lightMaterial.c  (詳見請見圖一、二、三)


(圖一)


(圖二)




(圖三)

認識什麼是Lighting-Step 2

可以觀察到Lighting有幾種特性
1. material compostion of object
2. light's color and position
3. global lighting parameters
       ambient light
       two sided light
4. availble in both color index and RGBA mode
(詳見請見圖四)


(圖四)

動手寫一個3D模型程式

1. 首先先開啟codeblocks新增一個glut專案
(詳見圖五)

(圖五)


(圖六)


(圖七)


(圖八)



(圖九)



(圖十)



(圖十一)



(圖十二)


(圖十三)


(圖十四)



(圖十五)



(圖十六)



(圖十七)




沒有留言:

張貼留言