2024年5月9日 星期四

Week12電腦圖學

 1.從上課軟體下載freeglut




 2.將壓縮檔解壓到桌面

3.點開freeglut後復製其連結


4.點開lib後將freeglut.a復製


5.改名為libglut32.a (124KB)



6.到codeblock開新的專案 file > project,(檔名為week12-0)




7.opencv安裝


8.選項選2或3
9.不要更換目標資料夾
10.重開codeblocks

11.設定Settings-compiler要加入三個設定


11.1.search 目錄 compiler 的include 目錄 加 C:\OpenCV2.1\include



11.2.search 目錄 linker 的lib 目錄 加 C:\OpenCV2.1\lib

11.3.加入linker 設定的 3個檔名cv210 cxcore210 highgui210

12.下載git啟動器 
13.將上週的week11-2從github下載下來

14.將剛剛的專案,先關起來Close Project (不然會被鎖),將目錄從11-2複製到12-1,新檔案名改為12-1,最後再把專案的Title改成 week12-1,用notepad++打開cbp檔把裡面week11-2改為week12-1



15.加上TRT公式和一顆圓球讓手以圓為中心轉


16.加上另外一隻手

17.到codeblock開新的專案 file > project,(檔名為week12-2_glm_gundam_upper_lower)



18.開啟maya


19.將手打開並切割upper,lower
20.開啟切割好的手臂,並將原本的handa改為upper,lower
21.讓手臂兩段分別移動(angle+=da)

22.將剛剛的檔案複製改為Week12-3_glm_gundam_keyboard_angleID_mouse_motion_angle
23.將手臂改為可以用滑鼠操控

24.將轉動改為x軸轉

25.上傳github



沒有留言:

張貼留言