2024年4月29日 星期一

Sean的電腦圖學日誌 week11

 #week11


#week11-0_sample

0.安裝freeglut

1.新增GLUT專案


#week11-1_TRT_again

1.新增GLUT專案

2.把上週程式week10-1_TRT_glutSolidCube_myBody_myArm貼上

3.搭出T-R-T的程式

4.把T-R-T註解掉,再(從下到上逐一解鎖)


##week11-1_obj_gundam_again

0.安裝OpenCV2.1,記得Add PATH

1.重開CodeBlocks, Setting-Compiler,設定Search

directories要設2個(include lib),Liker setting要設3個

2.利用git clone 拿week09-1

3.改成week11-2

4.目錄裡專案檔,也改檔名

5.再用CodeBlocks開起來,左邊Title還是舊的,用Project-Properties去改Title


#用Maya裁切模型

1.先開Maya, import剛剛week11-2的Gundam.obj模型

2.裁切、剩下左手,存檔hand1.obj

3.裁切、剩下右手,存檔hand2.obj


#week11-3_obj_gundam_hand1_hand2

1.要複製專案 把week11-2_obj_gundam_opencv_texture_lighting整個目錄複製成week11-3_obj_gundam_hand1_hand2

2.把裡面的.cpb改檔名成week11-3_obj_gundam_hand1_hand2.cbp

3.複製桌面的hand1.obj hand1.mtl hand2.obj hand2.mtl到week11-3_obj_gundam_hand1_hand2目錄裡

4.CodeBlocks選File-Open, 到week11-3_obj_gundam_hand1_hand2目錄

week11-3_obj_gundam_hand1_hand2.cbp

Properties改Title

5.修改程式碼void drawmodel()函式


沒有留言:

張貼留言