2024年6月6日 星期四

week16_11160933

0.opencv glut 

 1.https://jsyeh.org/3dcg10/ 

win32 data

open projection

2.week16-1_sample_gluLookAt

add gluLookAt

3.註解掉上行

加key來切換視角

4.new file week16-2_gluReshapeFunc_gluPerspective_gluLookAt

先看exe的範例

gluPerspective 透視投影 視角 長寬 z近遠

glOrtho 垂直投影

glFrustum 左右上下近遠 6組參數

fovy field of view in y

aspect ratio

11+8行

shape perspective


5.window size

6.new file week16-3_myTexture_id1_id2_glBindTexture

背景和給模型的兩種貼圖

copy week5 earth

記得處裡圖檔C

7.加入id1,2

8.設定成背景




















沒有留言:

張貼留言