2023年3月29日 星期三

Fish的電腦圖學課 Week07-Texture貼圖

 Week07-1 開啟text.exe

    step1. https://jsyeh.org/3dcg10/下載windows、data兩個壓縮檔




    

    step2. 將windows檔案解壓縮,再將data壓縮檔中的data檔案加入以壓縮windows檔案中

        

     step3. 打開Texture.exe


     step4. 調整glColor4(R,G,B,透明度)的數值,觀察其變化

            
     step5. 調整glTexCoord2f(x,y)的數值,觀察其變化(由左下方逆時鐘旋轉更改頂點位置)

     step6. 到https://jsyeh.org/gl/opengl_10_func.html練習期中考試內容


 Week07-2 OpenCV

     step1. 下載open cv

        
     step2. 要將Add OpenCv to the PATH for all users

     step3. 開啟CodeBlocks,setting→compiler
     step4. 加入設定
     step5. 開啟一個新檔案
     step6. 下載一張圖片並存於week07資料夾,並執行以下程式碼
     step7. 執行結果

     step8. 開啟一個新專案
     step9. 下載一個世界地圖並加入freeglut/bin資料夾,檔名為earth.jpg
     step10. 執行

     step11. 更改程式碼
     step12. 執行



     step13. 開啟新專案
     step14. 到https://gist.github.com/jsyeh/7405ec46dbd99cc4db1e8f242537fac1下載程式碼&圖片,並將圖片加入bin資料夾
     step13. 執行-會旋轉的地球

沒有留言:

張貼留言