2017年10月12日 星期四

蔡陳杰的計算機圖學筆記 week 5

1.複習上禮拜的內容
jsyeh.org/3dcg10 下載 win32 data glut32.dll
把win32解壓縮 把data解壓縮到win32還有把glut32.dll丟進去
並執行Transformation.exe 複習上周所學的 translatef rotatef scalef


2.學習投影
開啟Projection.exe
(1)gluPerspective(foxy,    aspect,    zNear,   zFar)
                        視野,y/x比例





















(2) glOrth( 左, 右, 下, 上, 近, 遠)
      glFrustum(SAME AS ABOVE)

(3)gluLookAt(eyeX ,eyeY,eyeZ -->眼睛的位置
                        centerX, centerY,centerZ --->物體的位置
                       upX , upY, upZ --->相機的角度(使用向量))
3 strdup !!! naming C/C++版本問題
使用這個解決



沒有留言:

張貼留言