先下載OpenCV-2.1.0-win32-vs2008.exe
在打開codeblocks>setting>compiler>add(1)compiler:C:\OpenCV2.1\include
(2)linker: C:\OpenCV2.1\lib
link加入三個檔案 👇
cv210 cxcore210 highgui210
把圖存到freeglut\bin,試著用三行程式碼秀出圖檔
2021電腦圖學 Computer Graphics 授課教師: 葉正聖 銘傳大學資訊傳播工程系 每週主題: 程式環境、點線面顏色、移動/旋轉/縮放與矩陣(Matrix)、階層性關節轉動(T-R-T)、做出機器人、打光、貼圖、glu/glut函式、鍵盤、滑鼠、計時器(timer)、讀入3D模型、粒子系統、聲音、特效、投影矩陣、攝影機與運鏡、機器人2.0、期末作品
#include "glm.h" GLMmodel* pmodel = NULL; void drawmodel(void) { if (!pmodel) { pmodel = glmReadOBJ("data/porsche.obj...
沒有留言:
張貼留言