2024年4月18日 星期四

week09_Lwy

 ##week09-0_sample

0.開新專案

##複習上周的week08-3

要把環境設好:opencv

1.桌面有葉正聖老師上課用軟體 opencv-2.1.0

2.小心:Add PATH

3.小心:目錄不要改

4.要重開codeblocks

5. codeblocks設定:

1. C:\OpenCV2.1\include

2. C:\OpenCV2.1\lib

3 .cv210 cxcore210 highgui210

##要把上周的github倉庫複製下來

0.安裝git,開啟git bash小黑

1.cd desktop

2.git clone https://github.com/linlinwy/2024graphicsa

3.cd 2024graphicsa

4.start .

把上周的week08-3開起來

1.File-OPen,到那個目錄,點開.cbp

##把剛剛的專案變成week09-1_glm_gundam_opencv_texture_lighting

0.把剛剛的專案先關起來

1.目錄把整個week08-3_glm_gundam_opencv_texture_lighting複製到桌面的week09-1_glm_gundam_opencv_texture_lighting再把week

2.檔案:把新的目錄裡的專案黨week08-3_glm_gundam_opencv_texture_lighting.cbp改檔名成week09-1_glm_gundam_opencv_texture_lighting.cbp

3.codeblocks開啟week09-1_glm_gundam_opencv_texture_lighting.cbp

4.再把專案的title改成week09-1_glm_gundam_opencv_texture_lighting

就是用notepad++開啟week09-1_glm_gundam_opencv_texture_lighting.cbp,把裡面的week08-3都改成week09-1就好了,記得存檔

5.再用codeblocks開啟就好了

6.為了騙得更真實,記得main.cpp裡的glutCreateWindow("week08 Gundam")改成

glutCreateWindow("week09-1 Gundam") 改得更徹底

##week09-2_glutSolidTeapot_glutSolidCube_glutSolidSphere

1.開新的專案

2.貼上11行程式碼

3.畫另外三個,左上,上,右上,使用其中考教的


##week09-3_glutSolidTeapot_glutSolidCube_glutSolidSphere
1.開新的專案
2.貼上week09-2的程式
3.再複製三段,再把y座標改成負的











沒有留言:

張貼留言