2024年3月11日 星期一

week04

week04-2024/03/11



1.下載課本範例 https://jsyeh.org/3dcg10/
2.下載Example的data win32,解壓縮window32再將data的內容物下貼製windows32的
    資料夾中。

1.下載Freeglut-MinGW-3.0.0.1(到Moodle2024電腦圖學找尋載點)
2.freeglut>lib找到libfreeglut.a改成libglut32.a
1.至CodeBlocks打開一個GLUT project,路徑設在桌面(方便找)
檔名:week04_mouse_glScalef`,GLUT路徑為桌面freeglut
2.至github找尋前幾週的lines10程式做本週課程的基礎

1.重點glutMotionFunc//glPushMatrix()//glClear()
1.使用課本範例 Transformation
2.先把 translate 移到右方, 再rotate
3.在下方黑框,按右鍵可看到swap translate/rotate做交換
4.再rotate可以發先,轉軸有所不同,公轉與自轉
1.重點glTranslatef()//glRotatef()//glScalef()
1.重點glTranslatef()//glRotatef()//glScalef()//glutMouseFunc()//glutKeyboardFunc

沒有留言:

張貼留言