2017年11月30日 星期四

James的圖學筆記week12

Part1.myGL_Frustrum221編譯且執行

步驟1.下載並解壓縮,網址:
https://moodle2.ntnu.edu.tw/pluginfile.php/218519/mod_folder/content/0/myGL_Frustrum221_MultiView_2012_1221-20171130T060949Z-001.zip?forcedownload=1
步驟2.codeblocks建立GLUT專案
將解壓縮後的程式碼全部複製貼上到main.cpp
步驟3.執行(這裡我遇到了一個問題"freeglut ERROR: Function called without first calling 'glutInit'.",於是我參考了https://stackoverflow.com/questions/26685010/qt-using-freeglut-error-with-glutinit的做法,將int main(int argc,char *argv[])補上,再將glutInit( & argc, argv );這行指令加在main裡面)

part2.viewer2D

步驟1.開啟processing並添加庫文件"collada"
步驟2.從文件->範本程序->viewer2D
步驟3.將boolean modelsEnabled[] = new boolean[]{false,true,false,false,false,false,true};這行布林陣列隨意一個設為true然後執行
步驟4.按a,s,d,z,x,c,1,2,3,p,o決定模式,再用滑鼠去控制

沒有留言:

張貼留言