2024年5月2日 星期四

05/02 T-R-T 與模型

 1.week11-0_sample

    安裝freeglut,新增GLUT專案

2.week11-1_TRT_again

    新增GLUT專案

    用上週week10-1的程式碼貼上

    要用剛剛教的小考T-R-T轉動


3.week11-2_glm_gundam_opencv_texture_lighting

    下載week09-1_glm_gundam_opencv_texture_lighting

    改檔名week11-2_glm_gundam_opencv_texture_lighting

    安裝OpenCV2.1,Add PATH,用預設位置

    重開CodeBlocks,Setting-Compiler三個設定

        --compiler的include要加入C:\OpenCV2.1\include

        --linker的lib要加入C:\OpenCV2.1\lib

        --linker設定,要加入cv210 cxcore210 highgui210

    兩種下載方法

        -Git Bash

            --cd desktop

            --git clone https://github.com/帳號/2024graphicsa

            --cd 2024graphicsa

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

    改title成week11-2_glm_gundam_opencv_texture_lighting

4.maya 切割、匯出OBJ
    要有Autodesk的帳號,註冊Maya教育版
        -handA.obj+handA.mtl
        -handB.obj+handB.mtl

5.繼續修改week11-2_glm_gundam_opencv_texture_lighting

    把剛剛的handA.obj handA.mtl handB.obj handB.mtl放到data目錄

    改程式GLMmodel*pmodel=NULL;

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

    把裡面的pmodel改成handA  handB



沒有留言:

張貼留言