##week12-1_glm_gundam_HandA_HandB
安裝opencv2.1,記得要add path
重開codeblocks
設定compiler
search directories-compiler->C:\OpenCV2.1\include
search directories-linker->C:\OpenCV2.1\lib
linker setting->cxcore210 cv210 highgui210
下載github檔案 方法1:Git指令 方法2:Download Zip
把week11-2拿來用
把 .cbp檔改名為week12-1_glm_gundam_handA_handB
用notePad++改Title week12-1_glm_gundam_handA_handB
codeblock開啟week12-1_glm_gundam_handA_handB
##week12-2_glm_gundam_upper_lower
把week12-1的HandA、B複製過來.cbp改成week12-2_glm_gundam_upper_lower
notepad++ title和目錄也改成week12-2_glm_gundam_upper_lower
maya打開切割upper、lower
加程式
GLmodel * upperA =NULL;
GLmodel * lowerA =NULL;
再把void drawHandA()複製成upperA和lowerA
##week12-3_glm_gundam_keyboard_angleID_mouse_motion_angle
新增void motion(int x,int y)///加入mouse motion的對應函式
{
angle=y;
}
int main()中加入
glutMotionFunc(motion);
用滑鼠來操控手臂的角度
沒有留言:
張貼留言