主題: 旋轉、移動、縮放、Push Matrix、Pop Matrix
作業1:開啟 Transfomation
將windows.zip解壓縮到桌面 →data.zip解壓縮到windows.zip資料夾
→glut32.dll複製到windows.zip資料夾 →將Transformation點兩下
→利用Rotate更改angle,X,Y,Z質的改變 →觀察車子的轉動方向
///glRotatef(angle,x,y,z);
glRotatef(a,x,y,z);
第一個值是轉的角度
x是X軸角度,
第一個值是轉的角度
x是X軸角度,
y是Y軸角度,
z是Z軸角度
旋轉方式:安培右手
主要在於motion函式內還要額外調整位移方向,這是小葉老師上課畫的座標軸

改變位置
glTranslatef(0.5,0,0);




沒有留言:
張貼留言