Week11-1_TRT_again
0. 打開glut 專案
1. 把 week10-1 的程式碼複製貼上
Week11-2_obj_gundam_opencv_texture_lighting
0. 安裝 OpenCV2.1
1. 重開CodeBlocks,Setting-Complier,要改3個地方
- opencv_step01_step02_目錄_Compiler_include_和_Linker_lib
- opencv_step03_linker_cv210_cxcore210_highgui210
接下來再把 GitHub 的程式倉庫下載下來
week09-1_gundam_opencv_texture_lighting 的檔案拿來用,名字複製成
week11-2_gundam_opencv_texture_lighting
去 GitHub 網站,點綠色的 Code 的 Download ZIP 在解壓縮,把 week09-1 目錄拉到桌面,再改目錄名稱
File-Open 開桌面 week11-2_gundam_opencv_texture_lighting.cbp
開啟後再改專案 Title
繼續修改Week11-2_obj_gundam_opencv_texture_lighting
1. 把剛剛的 handA.obj handA.mtl handB.obj handB.mtl 放到 data 目錄
2. 改程式 GLMmodel * pmodel = NULL 改成
GLMmodel * pmodel = NULL;
GLMmodel * handA =NULL;
GLMmodel * handB =NULL;
再做修改 void drawmodel() {...} 複製兩段程式碼 drawHandA drawHandB 裡面的 pmodel 也換成對應的 handA 和 handB 兩個指標
沒有留言:
張貼留言