任務說明
- 修改 cube.c 範例程式,透過 GLM 函式庫,讀取 OBJ 3D 模型文件。
- 將讀取的 3D 模型渲染在螢幕上。
程式碼
執行結果
繪製 unit_cube.obj:
繪製 cube.obj:
繪製 teapot.obj:
參考資料
- Computer Graphics 2013
http://140.122.185.90/CG/2013/
- 3D中的OBJ檔案格式詳解
繪製 unit_cube.obj:
繪製 cube.obj:
繪製 teapot.obj:
http://140.122.185.90/CG/2013/
沒有留言:
發佈留言