1.codeblocks(OpenGL)
(1) file-new-project
(2)OpenGL-next-finsh
*檔名為ex:week01,存在桌面
(3)Build & run
(4)登登登!跑出了一個會動的三角形
2.一顆球在水池裡動與靜
網址:http://madebyevan.com/webgl-water/
功能:
- Draw on the water to make ripples
- Drag the background to rotate the camera
- Press SPACEBAR to pause and unpause
- Drag the sphere to move it around
- Press the L key to set the light direction
- Press the G key to toggle gravity
滑鼠點擊球拖曳,能製造水波
滑鼠拖曳泳池,能改變泳池的視角
空白鍵控制暫停撥放
3.codeblocks(freeGLUT)
(1)上Moodle 下載軟體
(2)開啟資料夾-解壓縮檔案-存在桌面
(3)打開資料夾(freegult裡的lib)-找到 lib\libfreeglut.a 檔案
(4)複製貼上-更改檔名為:libglut32.a
(5)開啟codeblocks-file-new-project
(6)檔名:week01glut-存在桌面-next
(7)是-Close
(8)選取桌面glut資料夾-next
(9)Build & Run
(10)登!登!登!跑出了三個會動的圖案!
















沒有留言:
張貼留言