1 / 7

3D 散歩ゲーム

3D 散歩ゲーム. 08A2043 谷口盛 海 12/6. 座標系. 一般的な右手座標系とは違い DirectX では左手座標系を使用します。. 光の設定. ライト D3DXVECTOR3 direction(X, Y, Z); // 光の方向 meshLight ->Illume(direction); // 光をあてる. 左手座標. -1,-1,-1. カメラ. // カメラ D3DXVECTOR3 eyePoint = D3DXVECTOR3(X, Y, Z); // 視点

addison
Télécharger la présentation

3D 散歩ゲーム

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3D散歩ゲーム 08A2043 谷口盛海 12/6

  2. 座標系 • 一般的な右手座標系とは違いDirectXでは左手座標系を使用します。

  3. 光の設定 ライト D3DXVECTOR3 direction(X, Y, Z); // 光の方向 meshLight->Illume(direction); // 光をあてる 左手座標

  4. -1,-1,-1

  5. カメラ • // カメラ • D3DXVECTOR3 eyePoint = D3DXVECTOR3(X, Y, Z); // 視点 • D3DXVECTOR3 lookAtPoint = D3DXVECTOR3(X, Y, Z); // 注視点 • meshCamera->Look(eyePoint, lookAtPoint); // 見る • 視点はカメラの座標を示し注視点はカメラの向いている座標を示す

  6. 0.0f, 0.5f, -3.0f -3.0f, 0.5f, 0.0f 3.0f, 0.5f, 0.0f 0.0f, 0.5f, 3.0f

  7. モデルの回転 D3DXMatrixRotationX(&rotation, 0.01f*(++t)); D3DXMatrixRotationY(&rotation, 0.01f*(++t)); D3DXMatrixRotationZ(&rotation, 0.01f*(++t)); 上からX軸、Y軸、Z軸を軸として10秒間で1周する

More Related