2021年5月12日 星期三

阿~一代一代 week12

下載3D Explorer,左邊找到gundam(3D模型),File>Save  As存成  .cpp檔(選SampleAPP)




















開啟OpenGL專案,貼上 .cpp檔後Remove file上一步產生的檔案放專案的資料夾裡Add file


















前4行註解,
加glRotatef( nAngle, 0, 1, 0); 
 glScalef(3, 3, 3);


















開啟Maya,Import3D模型,右鍵>face
開啟Glut專案,copy打光程式碼,改專案執行目錄,把freeglut.dll放進專案資料夾



































照第11週處理好貼圖

沒有留言:

張貼留言

距地表面160 Week11

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