2024年4月29日 星期一

賀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_TRT_glutSolidCube_myBody_myArm的程式貼上來(小心中文的問題)
3.搭出 T-R-T的程式
4.把 T-R-T註解掉,再從下到上(1)(2)(3)試著逐一解鎖



##觀察

第一個不動

第二個為中心點旋轉

第三個中心點在右上旋轉



##用Maya 裁切模式

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



##week11-2_obj_gundam_again

0.安裝OpenCV2.1,記得Add PATH, 裝在預設目錄 C:\OpenCV2.1
1.重開CodeBlocks, Setting-Compiler,設定 Search directories 要設 2個(include lib), liker setting要設3個
2.利用git clone https://github.com/帳號/2024graphicsb把雲端程式打下來,week09-1是我們要用的專案,複製過來用
3.放到桌面後,把
week09-1_obj_gundam_opencv_texture_lighting改目錄名為
week11-1_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




##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目錄裡
4.CodeBlocks選 File-Open, 到week11-3_obj_gundam_hand1_hand2目錄裡,開啟week11-3_obj_gundam_hand1_hand2.cbp檔案







沒有留言:

張貼留言