2023年3月29日 星期三

有糖綠茶Week07



開啓texture程式

3D世界是用三角形但人理解的是四邊形


Matrix可以調整圖顯示的位置


先下載Opencv2.1
要add PATH!!!
然後重開CodeBlocks
開Setting-Compiler
在Search directories
Compiler Add C:\OpenCV2.1\include
Linker Add C:\OpenCV2.1\lib
在Linker Settings Add cv210,cxcore210,highgui210
再輸入程式(檔名改成.cpp)


https://gist.github.com/jsyeh
到老師的程式倉庫複製myTexture
再把世界地圖改成earth.jpg下載到freeglut\lib裏面

把程式碼去掉茶壺改成自己畫的四邊形


在倉庫複製myEarth程式
把myEarth.jpg改成Earth.jpg








沒有留言:

張貼留言