2024年4月18日 星期四

04/18

 1.week09-0_sample

下載freeglut,新增專案week09-0_sample

2.複習上週week08-3_glm_gundam_opencv_texture_lighting

把OpenCV弄好

Setting-Compiler要加入OpenCV相關的3個設定

--compiler的include要加入C:\OpenCV2.1\include

--linker的lib要加入C:\OpenCV2.1\lib

--linker設定,要加入cv210 cxcore210 highgui210

要把上周的GitHub倉庫複製下來

安裝Git,開啟Git Bash

cd desktop

git clone https://github.com/帳號/2024graphicsa

cd 2024graphicsa

start

把上週的week08-3_glm_gundam_opencv_texture_lighting開起來

--File-Open,到放的目錄,點開.cbp (CodeBlocks Project檔)

--Build&Run

把剛剛的專案先關起來close project(這樣才不會被鎖)

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

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

CodeBlocks File-Open開啟week09-1_glm_gundam_opencv_lighting.cbp

再把專案Title改成week09-1_glm_gundam_opencv_lighting

用Notepad++開啟week09-1_glm_gundam_opencv_lighting.cbp檔,把裡面的week08-3改成week09-1就好記得储存

再用CodeBlocks File-Open開啟

3.week09-2_glutSolidTeapot_glutSolidCube_glutSolidSphere

貼上11行

換畫另外3個

4.week09-3_glutWireTeapot_glutWireCube_glutWireSphere

貼上week09-2_glutSolidTeapot_glutSolidCube_glutSolidSphere

把3段複製到下面把Solid改成Wire



沒有留言:

張貼留言