2019年5月30日 星期四

06160061_W15

電腦圖學

(1)主題:攝影機、運鏡
(2)主題:投影、矩陣
(3)複習:位置移動 VS.轉動
(4)複習:背景貼圖
(5)期末作品

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

















將[data][win32]解壓縮
把[data]的資料夾放入window內 將glut32.dllu也放入window






















拉近











拉遠











glutLookAt(eyeX,eyeY,eyeZ
                     centerX,centerY,centerZ,
                     upX,upY,upZ)
GLUT程式
1.網頁搜尋freeglut window->下載freeglut 3.0.0 MinGW Package
2.將壓縮檔拉至桌面
3.把資料夾開啟->lib資料夾開啟->將libfreeglut.a檔案負制病原地貼上->把複製檔重新命名為libglut32.a
4.進入code block
































下載source





















將window內的data放入freeglut的bin資料夾











將glm.cpp加入code blocks











將projection的程式碼貼上code blocks
成果











加上打光











模型旋轉











正常模型旋轉











大鼻子小眼睛

沒有留言:

張貼留言