2024年5月2日 星期四

BK Week11

 # week11


## week11-0_sample

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

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


## week11-1_TRT_again

1. File-New-project, GLUT專案, week11-1_TRT_again

2. 貼上 week10-1_glutWireCube_myBody_myArm 

3. 把「T-R-T轉動」程式碼拿來改

```cpp

      glPushMatrix();

          glTranslatef(, , );

          glRotatef(, , , );

          glTranslatef(, , );

          myArm();

      glPopMatrix();

```



## week11-2_obj_gundam_opencv_texture_lighting

0. 安裝 OpenCV

1. 重開 CodeBlocks, 改Setting - Compiler

2. 把 GitHub 的程式倉庫下載下來,把 week08-3_glm_gundam_opencv_texture_lighting拿來用

    -下載方法: GitHub - green Code button - Download ZIP


## Maya 切割、匯出OBJ

- handa.obj + handa.mtl

- handb.obj + handb.mtl


## 繼續修改 week11-2_obj_gundam_opencv_texture_lighting

1. 把剛剛的 handa.obj    handa.mtl    handb.obj    handb.mtl 放到 data 目錄

2. 改程式 GLModel * pmodel = NULL; 改成

```cpp

     GLModel * pmodel = NULL;    

     GLModel * handa = NULL;

     GLModel * handb = NULL;

```



沒有留言:

張貼留言