DX2 - DirectX Programming #2 Kang, Seongtae Computer...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
DirectX Programming #2 Kang, Seongtae Computer Graphics, 2009 Spring
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Contents The D3D coordinate system Transformation and matrix manipulation Material and Lighting
Background image of page 2
The D3D Coordinate System Left-handed Right-handed coordinate is also available Take care of backface-culling order
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Vector Representation D3DXVECTOR n class Float elements x, y for D3DXVECTOR2 x, y, z for D3DXVECTOR3 Basic operators Scalar multiplication/division Vector addition/subtraction and equality comparison
Background image of page 4
Matrix Representation D3DXMATRIX Structure 4x4 homogeneous matrix Row-major order Column-major order matrices must be transposed Can be accessed as float[16] array
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Basic Matrix Operations Identity matrix Transpose Inverse
Background image of page 6
Basic Matrix Operations Multiplication
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Matrix Multiplication Order Row-major matrix Row vector Post-multiplication
Background image of page 8
Setting Transform Matrices World transformation Model space World space Viewing transformation World space Viewing space Projection transformation Viewing space Projection space
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Scaling, rotation and translation Many predefined functions are defined in DX library D3DXMatrixRotationAxis D3DXMatrixRotationQuaternion D3DXMatrixRotationX D3DXMatrixScaling D3DXMatrixTranslation
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2010 for the course CSE 4190.410 taught by Professor Shinyeonggil during the Spring '09 term at Seoul National.

Page1 / 34

DX2 - DirectX Programming #2 Kang, Seongtae Computer...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online