2017年5月9日 星期二

Week12 陳冠宇

WEEK12
PLAY MUSIC


將CMP3_MCI.h 還有音樂檔案yukai.mp3放進目錄
才能incldue及load&play檔案

Michael Bay rotation camera

gluLookAt(eyeX,eyeY,eyeZ);


茶壺進化史

 加入攝影機gluLookat後

加入四行不知道是什麼東西的後
 glMatrixMode(GL_PROJECTION);
    glLoadIdentity();
    gluPerspective(60, 1, 0.001, 10000);
    glMatrixMode(GL_MODELVIEW);

(還有加入angle讓他轉動 並在main加入重寫display的glutIdleFunc(display);)


 glMatrixMode(GL_PROJECTION); ///透視投影法


    glLoadIdentity();
    gluPerspective(60, 1, 0.001, 10000);

///fov: field of view 視角方向 (y)
///aspect: 圖xy的比例
///zNear,zFar

    glMatrixMode(GL_MODELVIEW); ///切回正常投影


gluLookAt(eyeX,eyeY,eyeZ, ///攝影機位置
centerX,centerY,centerZ, ///center位置
upX,upY,upZ); ///相機角度



使用T-R-T與angle&dir角度用出骨架示範 茶壺棒棒

沒有留言:

張貼留言