2018年5月28日 星期一

Week14 立欣的筆記

TODO:  jsyeh.org/3dcg10 下載
windows.zip   -> 下載 \ windows \ Projection.exe
data.zip ->下載 \ windows \ data \ 一堆模型
glut32.dll -> 下載 \ windows \ glut32.dll


打開Projection
TODO: glOrtho()
             gluPerspective()

gluPerspective(foxy, aspect, zNear, zFar)
foxy: 張開的角度 Field of View, in Y direction
aspect: 寬長的比例 ,設對你的畫面裡的東西才會正確
zNear: 近的裁一刀
zFar: 遠的裁一刀





TODO: File-New-Project , GLUT
看 glutReshapeFunc(resize);



看不到的原因:camera投影中心在0,0,0 與圖案重疊所以看不到任何東西

加gluLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ);

















沒有留言:

張貼留言