2024年4月18日 星期四

BK Week09

# week09

## week09-0_sample

0. 下載 freeglut 至桌面, 並解壓縮, 更改 lib 中的檔名

1. File-New-project, GLUT專案, week09-0_sample


## 複習上週week08-3_glm_gundam_opencv_texture_lighting

1. 要把環境設定好: OpenCV

    a.  桌面上葉正聖老師上課用軟體打開 OpenCV

    b. 小心: ADD PATH

    c. 小心:目錄不要改

    d. 重開CodeBlocks

2. Setting-Complier 要加入 OpenCV 相關的3個設定

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

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

    c. linker 設定, 要加入 cv210 cxcore210 highgui210

3. 要把上週的 Github 倉庫複製下來

    a. 安裝 Git, 開啟 Git Bash 小黑

    b. cd desktop

    c. git clone https://github.com/jimmyblack0112/2024graphicas

    d. cd 2024graphicsa

    e. start .

4. 把上週的 week08-3_glm_gundam_opencv_texture_lighting 打開

    a. File-Open, 到那個目錄,  點開 .cbp (CodeBlocks Project檔)

    b. Build&Run 就可以了

5. 把剛剛的專案變成 week09-1_glm_gundam_opencv_texture_lighting

    a. 把剛剛的專案, 先關起來 Close Project (這樣才不會被鎖)

    b. 目錄:把整個 week08-3_glm_gundam_opencv_texture_lighting 複製到桌面的

    week09-1_glm_gundam_opencv_texture_lighting

    c. CodeBlocks File-Open 開啟  week09-1_glm_gundam_opencv_texture_lighting.cbp檔

    d. 再把專案的 Title 改成 week09-1_glm_gundam_opencv_texture_lighting, 

    就是用 Notepad++ 開啟 week09-1_glm_gundam_opencv_texture_lighting.cbp, 

    把裡面的 week08-3 都改成week09-1就好了, 記得存檔

    e. 再用 CodeBlocks File-Open 開他, 就好了!

## week09-2_glutSolidTeapot_glutSolidCube_glutSolidSphere

1. File-New-project, GLUT專案, week09-2_glutSolidTeapot_glutSolidCube_glutSolidSphere

2. 貼上 GLUT 11行程式碼

3. 畫另外3個, 左上、上、右上, 使用期中考教的程式碼



## week09-3_glutWireTeapot_glutWireCube_glutWireSphere

1. File-New-project, GLUT專案, week09-3_glutWireTeapot_glutWireCube_glutWireSphere

2. 貼上 week09-2 的程式碼



沒有留言:

張貼留言