(1)主題 : 移動
1.先到http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/中,接著下載[data],[win32],[glut32.dll],解壓縮之後放到同一個資料夾中。

2.打開 Transformation.exe

3.利用滑鼠按著往上.下拖移來改變物品,由上到下分別可以調整 : 位置 , 角度 , 大小 。

4.在畫面上按右鍵可以更改物品,例如 : Rose。


2.打開 Transformation.exe

3.利用滑鼠按著往上.下拖移來改變物品,由上到下分別可以調整 : 位置 , 角度 , 大小 。

4.在畫面上按右鍵可以更改物品,例如 : Rose。

(2)示範 : glTranslatef(x,y,z)
1.先到https://www.transmissionzero.co.uk/software/freeglut-devel/裡面,下載Download freeglut 3.0.0 for MinGW 。
2.解壓縮之後,打開 freeglut 資料夾裡的 lib 資料夾,將裡面的 libfreeglut.a 複製,直接貼上,重新命名為 : libglut32.a ,結果如下圖。
3.打開 CodeBlocks → File → New → Project...→ 選擇 GlutProject → 打檔名.設定路徑。
4. 按 Build and Run 出現這個畫面代表可以執行。
沒有留言:
張貼留言