2024年5月9日 星期四

week12

 #week12

##week12-1_glm_gundam_handA_handB

1. 先設定好環境


2. 安裝 freeglut 再把 lib\libfreeglut.a 複製成 libglut32.a


3. 安裝 opencv 2.1, 記得要 Add PATH, 不要設目錄


4. 關閉重開 CodeBlocks (才會把 PATH 設定設好 要記得存檔)


5. -Search directories 的 Compiler 對應 C:\OpenCV2.1\include


6. -Search directories 的 Linker 對應 C:\OpenCV2.1\lib


7. -Linker setting 要加 cv210 cxcore210 highgui210


8. 再把 GitHub 的程式下載, 再把 week11-2_glm_gundam_opencv_texture_lighting 拿來改


9. week11-2 複製目錄, 改目錄名為 week12-1_glm_gundam_handA_handB


10. 把 .cbp 檔, 改目錄名為 week12-1_glm_gundam_handA_handB.cbp


11. 用Notepad++ 開 .cbp 檔, 改 Title 為 week12-1_glm_gundam_handA_handB


12. CodeBlocks File-Open week12-1_glm_gundam_handA_handB.cbp

        要修改的程式:把今天考試的T.R.T設定正確

把MyBody註解掉,加一顆圓球,把手的關節挪到中心







##week12-2_glm_gundam_upper_lower

把上手臂、下手臂切好 讀入
Maya開起來,把handA.obj 讀入,切割出upperA.obj lowerA.obj

再把week12-1_glm_gundam_handA_handB 複製成week12-2_glm_gundam_upper_lower裡面的 .cbp改檔名成week12-2_glm_gundam_upper_lower.cbp
再用Notepad++ 把Title 和目錄,也更新成week12-2_glm_gundam_upper_lower

加程式
```cpp
GLMmodel * upperA = NULL;
GLMmodel * lowerA = NULL;
```


##week12-3_glm_gundam_keyboardID_mmouse_motion_angle

1.把week12-2_glm_gundam_upper_lower 複製成
 week12-3_glm_gundam_keyboardID_mmouse_motion_angle

2.利用mouse motion 來改變 angle,滑鼠上下可以讓手臂擺動
    在int main()裡加入glutMotionFunc(motion);


沒有留言:

張貼留言