- Translation

- Rotation

- gluLookAt(), glFrustum(), glOrtho(), glPerspective()
- gl開頭: 原生 OpenGL 底層函式,而 glu 之開頭函式則是較抽象化。
- 下載程式幫助理解(data, win32, glut32.dll) http://www.cmlab.csie.ntu.edu.tw/~jsyeh/3dcg10/
- 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 "."
沒有留言:
張貼留言