2017年10月12日 星期四

ㄅㄏ的OpenGL_glut_Week_05

1.到http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/ 下載[data],[win32]和glut32.dll
   把data和win32解壓縮後和glut32.dll放在同一個資料夾中

2.執行Transformation.exe
   可以用滑鼠調整glTranslatef , glRotatef , glScalef

3.執行Projection.exe


透視投影法
gluPerspective(fovy, aspect, zNeer, zFar)
    視野, y/x比例
gluLookAt(eyeX, eyeY, eyeZ,
centerX, centerY, centerZ,
upX, upY, upZ)
*eye:改變視角
center:依中心點改變觀看角度
up:旋轉視角

垂直投影法
glOrtho(left, right, bootom, top, near, far)

透視視野
glFrushum(left, right, bottom, top, near, far)


沒有留言:

張貼留言