安裝freeglut 再把lib\libfreeglut.a複製成libglut32.a
要把環境設好:OpenCV
桌面有葉正聖老師上課軟體 OpenCV-2.1.0
小心:Add PATH
小心: 目錄不要改
要重
安裝GIT, 開啟git bash小黑
cd desktop
git clone https://github.com/帳號/2024graphicsa
cd 2024graphicsa
start .
把上週的week03_glm_gundam_oencv_texture_lighting開起來
file-open到那個目錄,點開.cbp (CodeBlocks Project檔)
Build&Run就可以!
把剛剛的專案先關起來CLose Project
目錄:把整個week08-3_glm_gundam_opencv_texture_lighting複製到桌面的week09-1)glm_gundam_opencv+texture_lighting
檔案:把新的目錄裡的專案檔week08-3_glm_gundam_opencv_texture_lighting.cbp
改檔名變成week09-1_glm_gundam_opencv_texture_lighting.cbp
CodeBlocks File-Open 開啟week09-1_glm_gundam_opencv_texture_lighting.cbp
再把專案的Title改成week09-1_glm_gundam_opencv_texture_lighting.cbp
就是用Notepad++開啟week09-1_glm_gundam_opencv_texture_lighting.cbp
把week08-3都改成09-1就好了,記得存檔
再用 CodeBlocks File-Open 開他,就好了
File-New_Project,GLUT專案
貼上GLUT程式11行
換畫另外三個左上,上,右上,使用期中考教的程式碼
貼上week09-3程式
把3段再複製到下面,並把下面的座標改成y是負的
沒有留言:
張貼留言