Week 07-00 Texture.exe
1.到 https://jsyeh.org/3dcg10/ 把 win32 data 下載並解壓縮至同個資料夾
Week 07-01 OpenCV
1.下載 OpenCV 並安裝,途中安裝選項要選好,如圖下
2. 在codeblocks的setting後compiler進行設定
分別為
Search directories的compiler中加入C:\OpenCV2.1\include
Linker中加入C:\OpenCV2.1\lib
Linker Setting中加入的cv210 cxcore210 highgui210
1.建立GLUT專案,並將程式碼全刪,透過網址去 gist.github.com/jsyeh,找到老師的範例程式碼複製並貼上專案
glBegin(GL_POLYGON);
glTexCoord2f(0,0);glVertex2f(-1,+1);
glTexCoord2f(1,0);glVertex2f(+1,+1);
glTexCoord2f(1,1);glVertex2f(+1,-1);
glTexCoord2f(0,1);glVertex2f(-1,-1);
glEnd();
會讓背景以earth.jpg圖片填充
1.開新GLUT專案,並去老師的github網頁: https://gist.github.com/jsyeh
找到myEarth的程式碼並複製貼上,以及下載 myEarth.jpg 圖片並放入\freeglut\bin資料夾裡
沒有留言:
張貼留言