2017年10月14日 星期六

俊隆ㄉ計算機圖學筆記 - Week 5 Viewing

- Matrix math concepts

  • Translation



  • Rotation




- gluLookAt(), glFrustum(), glOrtho(), glPerspective() 

角錐投影,四個參數: 
fovy: field of view angle 角度
aspect: 長寬比
zNear: Camera 最近距離
zFar: Camera 最遠距離
  • gluLookAt()
三個參數:
eye: Camera 位置的x, y, z
center: Camera 觀看角度
top: Camera's up vector (平面的旋轉) 
  • glOrtho()
平行投影
六個參數:
left, right, bottom, top: 投影界線
near: Camera 最近距離
far: Camera 最遠距離
  • glFrustum()
六個參數:
left, right, bottom, top:   投影上下左右邊界
near: Camera 最近距離
far: Camera 最遠距離

- Read files from project folder, instead of freeglut lib
Modify the .cbp codeblocks project file with editor, and change working_dir content to "."

沒有留言:

張貼留言