用git hub
把上禮拜鋼蛋檔案Cobe過來
cd desktop
git clone https://github.com/wowrush/2024graphicsa
cd 2024graphicsa
start .
在設定OpenCV的環境
-compiler 的 include 要加入C:\openCV2.1\include
-linker 的 lib 要加入 C:\OpenCV2.1\lib
-linker 設定,要加入 cv210 cxcore210 highgui210
會有的錯誤
Release(這個是舊的)->Execution working dir 要改成0
Debug(新的)也要
所以要改兩個,改完要存檔
打開Notepad++ 更改名字把8-3改成9-1
week09-2_glutSolidTeapot_glutSolidCube_glutSolidSphere
貼上GLUT 程式11行
glPushMatrix();//備份矩陣
glTranslatef(+0.5,+0.3,0);
glutSolidSphere(0.3,30,30);圓形
glPopMatrix();
glPushMatrix();//備份矩陣
glTranslatef(0.0,+0.30,0);
glutSolidCube(0.3);//正方形
glPopMatrix();
glPushMatrix();//備份矩陣
glTranslatef(-0.5,+0.3,0);//移動
glutSolidTeapot(0.3);//茶壺
glPopMatrix();
week09-3_glutWireTeapot_glutCube_glutWireSphere
把 glutSolidTeapot 的 Solid 都改成 Wire




沒有留言:
張貼留言