2024年5月2日 星期四

Week11

 #week11-0_sample

0.安裝freeglut,把lib/libfreeglut.a複製成libglut32.a



1.File-New-Project,GLUT專案  #week11-0_sample

#week11-1_TRT_again

1.File-New-Project,GLUT專案  #week11-1_TRT_again

2.把上週 week10-1_glutWireCube_myBody_myArm 程式貼來用

3.要用剛剛交的[小考T-R-T轉動],來做修改




#week11-2_obj_gundam_opencv_texture_lighting

0.安裝OpenCV 2.1 小心!Add PATH,用預設目錄

1.重開CodeBlocks,Setting-Compiler裡要改3個地方

接下來,再把GitHub的程式倉庫下載下來,

week09-1_glm_gundam_opencv_texture_lighting拿來用,複製成

week11-2_glm_gundam_opencv_texture_lighting


有兩種下載法。

第一種是用Git Bash下指令

-cd desktop

-git clone https://github.com/shushu921218/2024graphicsa

-cd 2024graphicsa

-start . 開檔案總管,把week09-1目錄複製到桌面,再改目錄名

第二種作法,在GitHub網站

https://github.com/shushu921218/2024graphicsa點綠色的Code的Download ZIP再解壓縮,也能把week09-1目錄拉到桌面


File-Open開桌面week11-2_glm_gundam_opencv_texture_lighting裡面的

再改week11-2_glm_gundam_opencv_texture_lighting.cbp


開起來後,再改專案的Title變成week11-2_glm_gundam_opencv_texture_lighting

#Maya 切割、匯出OBJ

要有Autodesk的帳號


#繼續修改week11-2_glm_gundam_opencv_texture_lighting

1.把剛剛的hand A.obj hand A.mtl hand B.obj hand B.mtl 放到data目錄

2.改程式GLMmodel * pmodel = NULL;改成

'''cpp

GLMmodel * pmodel = NULL;

GLMmodel * hand A = NULL;

GLMmodel * hand B = NULL;

'''

再做修改void drawmodel(){...}複製2段程式

裡面的pmodel也

從week11-1複製程式碼,空心變實心才能正確打光

把貼圖功能先關掉,不然會被手的黑色貼圖汙染

沒有留言:

張貼留言