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

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

DirectX Programming #2 Kang, Seongtae Computer Graphics, 2009 Spring

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

View Full Document
Contents The D3D coordinate system Transformation and matrix manipulation Material and Lighting
The D3D Coordinate System Left-handed Right-handed coordinate is also available Take care of backface-culling order

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

View Full Document
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
Matrix Representation D3DXMATRIX Structure 4x4 homogeneous matrix Row-major order Column-major order matrices must be transposed Can be accessed as float[16] array

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

View Full Document
Basic Matrix Operations Identity matrix Transpose Inverse
Basic Matrix Operations Multiplication

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

View Full Document
Matrix Multiplication Order Row-major matrix Row vector Post-multiplication
Setting Transform Matrices World transformation Model space World space Viewing transformation World space Viewing space Projection transformation Viewing space Projection space

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

View Full Document
Scaling, rotation and translation Many predefined functions are defined in DX library D3DXMatrixRotationAxis D3DXMatrixRotationQuaternion D3DXMatrixRotationX D3DXMatrixScaling D3DXMatrixTranslation
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
Ask a homework question - tutors are online