1.安裝freeglut再把lib\libfreeglut.a複製成libglut32.a
2.File-New-Project,GLUT專案week09-0_sample
3.要把環境設好:OpenCV
4.桌面有葉正聖老師上課用軟體OpenCV-2.1.0
5.小心:Add PATH
6.小心:目錄不要改
7.要重開CodeBlocks
8.CodeBlocks:Setting-Compiler裡,要設定3個地方
9.C:\OpenCV2.1\include
10.C:\OpenCV2.1\lib
11.cv210 cxcore210 highgui210
12.要把上週的GitHub倉庫複製下來
13.安裝Git,開啟Git Bash小黑
14.git clone https://github.com/帳號/2024graphicsa
15.cd 2024graphicsa
16.start .
17.把上週的week08-3_glm_gundam_opencv_texture_lighting開起來
18.File-Open,到那個目錄,點開.cbp(CodeBlocks Project檔)
19.Build&Run就可以
20.把剛剛的專案,先關起來Close Project(這樣才不會被鎖)
21.目錄:把整個week08-3_glm_gundam_opencv_texture_lighting複製到桌面的week09-1_glm_gundam_opencv_texture_lighting再把week
22.檔案:把新目錄裡的專案檔week08-3_glm_gundam_opencv_texture_lighting.cbp改檔名變成week09-1_glm_gundam_opencv_texture_lighting.cbp
23.CodeBlocks File-Open開啟week09-1_glm_gundam_opencv_texture_lighting.cbp檔
24.再把專案的Title改成week09-1_glm_gundam_opencv_texture_lighting,就是用Notepad++開啟week09-1_glm_gundam_opencv_texture_lighting.cbp檔,把裡面的week08-3都改成week09-1就好了,記得存檔
25.再用CodeBlocks File-Open開它,就好了
26.為了騙的更真實,記得main.cpp裡的glutCreateWindow("week08_Gundan")改成glutCreateWindow("week09-1_Gundan")改得更徹底
27.開一個新專案,命名為"week09-2_glutSolid_glutSolidCube_glutSolidSphere"
28.開一個新專案,命名為"week09-3_glutWire_glutWireCube_glutWriteSphere"
沒有留言:
張貼留言