2017年12月9日 星期六

周承翰_計圖學習筆記_Week12

myGL_Frustrum221編譯且執行

1. 至moodle 下載myGL_Frustrum221壓縮檔,並解壓縮

2. 開啟CodeBlocks的GLUT專案檔
    解壓縮後資料夾裡的程式碼 - [複製貼上] 至專案檔中

3. 執行 
    問題 : freeglut ERROR: Function called without first calling 'glutInit'
    解決方法 : (1) int main(int argc,char *argv[]) 補上
                      (2) glutInit( & argc, argv );這行指令加在main裡面)

4. 

 Viewer2D 

1. 開啟P程式語言 processing3.3.6.exe

2. 安裝 [速寫本] - [引用庫文件] - [添加庫文件] - [ collada ] (方法詳情請至week11)

3. 開啟 [文件] - [範本程序] - [viewer2D] 
    

4. boolean modelsEnabled[] = new boolean[]{false,true,false,false,false,false,true};
  這行bool array 隨意一個設為 true 然後執行 

5. 選擇鍵盤 [ a , s , d , z , x , c , 1 , 2 , 3 , p , o ]決定模式,再用滑鼠控制 


    (電腦跑不出來...暫定略過)

沒有留言:

張貼留言