2024年4月29日 星期一

week11 Tina

week 11

## 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_TRT_glutSolidCube_myBody_myArm的程式

(小心中文的問題)
3.搭出T-R-T的程式
4.把T-R-T註解掉,在從下到上(1)(2)(3)試著逐一解鎖

##week11-2_obj_gundam_again
0.安裝openCV2.1, 要勾Add PATH,裝在預設目錄
1.Setting Compiler裡,要把3個設定設好
-Compiler 加入C:\OpenCV2.1\include
-Linker加入C:\OpenCV2.1\lib
-Linker setting裡,加入3個 cv210 cxcore210 highgui210
重新開啟CodeBlocks
2.利用 git clone https://github.com/你的帳號/2024graphicsb把雲端程式拿下來,week09-1是我們要用的專案
-安裝git軟體
-將GitHub上周的程式clone下來(先有程式碼)
 -在小黑Git Bash裡指令:
 -cd desktop
 -git clone https://github.com/你的帳號/2024graphicsb
 -cd 2024graphicsb
 -start .

3.複製放到桌面後,把
week09-1_obj_gundam_opencv_texture_lighting
改目錄名為
week11-2_obj_gundam_opencv_texture_lighting

4.把目錄裡的專案檔,也改檔名
week09-1_obj_gundam_opencv_texture_lighting.cbp
改檔名為
week11-2_obj_gundam_opencv_texture_lighting.cbp

5.再用CodeBlocks開起來。可惜的是,左邊的專案title還是舊的。請用Project-Properties去改title

##用maya裁切模式
1.先開maya,import剛剛week11-2的gundam.obj模型
2.裁切、剩下左手、存檔hand1.obj(檔案格式是 OBJExporter)
3.裁切、剩下右手、存檔hand2.obj(檔案格式是 OBJExporter)

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

2.再把裡面的.cbp也改檔名成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 改成week11-3_obj_gundam_hand1_hand2

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

沒有留言:

張貼留言