(2)主題:攝影機,投影矩陣
(3)實作:GlutLookAt(), glutReshapeFunc()
(4)期末作品
TODO:jsyeh.org/3dcg10
下載 windows.zip
data.zip
glut32.dll
1.開啟模型Project
glLookAt(eye X , eye Y, eye Z,
center X , center Y , center Z,
up X, up Y , up Z )
2. 最上排的四個參數
zNear , zFar 近跟遠的布幕
拉大視窗後腳色會變形>>> aspect 拉回正常大小
fovy 視野大小 >> full of view Y軸
zFar 拉近
LookAt
TODO:glutReshapeFunc(resize);
void resize(int w, int h)
{
.
.
glutLookAt(.... , ... , ...);
}
沒有留言:
張貼留言