先解壓縮earth.zip

安裝openCV

最後解壓縮freeglut.zip

將free\bin\freeglut.dll檔複製

把freeglut.dll放置earth檔案裡面

再至網路上找earth.map的圖改成image.jpg放置earth資料夾裡

打開myEarth.exe檔案就可以執行了

2.實作:旋轉地球
打開專案myEarth

點右鍵開Build options...

點Search directiones設定目錄(Compiler)
(1)

(2)

點Search directiones設定目錄(Linker)
(1)

(2)

點Linker settings 設定Linker咒語

執行後找不到圖片需重新設定路徑

路徑:C:\Users\USER\Desktop\freeglut\bin

最後執行成功

3.自己實作











沒有留言:
張貼留言