2021年5月5日 星期三

【】week11 3D模型【】

將moodle中的zip檔下載,window解壓縮,將data解壓縮的檔案放進window裡
source裡的glm.c、glm.h、transformation.c丟進新開的GLUT資料夾,將glm.c改名為glm.cpp
將glm.cpp加進GLUT檔
執行後會閃一下(因為找不到data檔,但程式成功)
將data檔放入freeglut\bin裡,自己的transformation程式出來了!
自己打造transformation程式(從transformation.c裡複製glm相關程式)
從week08複製過來就有光影了
—————————————————————————
裝OpenCV2.1,設定好,重開Codeblocks,將老師傳的main.cpp直接貼上
—————————————————————————
先試玩一下!

沒有留言:

張貼留言

距地表面160 Week11

 #include "glm.h" GLMmodel* pmodel = NULL; void drawmodel(void) {     if (!pmodel) { pmodel = glmReadOBJ("data/porsche.obj...