2018年4月9日 星期一

week07 宇的筆記

1.前往 http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/
   下載 source data win32
   再去 moodle 下載上課用軟體 3DExplorer_v181.rar

2.解壓縮 3DExplorer_v181.rar
   安裝後利用它讀入 data 裡的3D模型

3.利用 codeblocks 來寫 transformation.exe

(1)新建 glut 專案,並把 glm.cpp glm.h transformation.cpp 加入專案

(2)在 freeglut 的 bin 資料夾新增 data 資料夾

(3)改變 Compiler  因為 transformation.cpp 裡面有舊的函式 
     Compiler會出錯

(4)清空 main() 因為 transformation.cpp 裡面已經有了

(5)執行

4.用 transformation.cpp 把 main() 改寫 
   並把 transformation.cpp 全部註解掉
   然後執行

沒有留言:

張貼留言