Presentation is loading. Please wait.

Presentation is loading. Please wait.

Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.

Similar presentations


Presentation on theme: "Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space."— Presentation transcript:

1 Honours Graphics 2008 Session 2

2 Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space

3 Vector and matrix 3D representation typically requires at least a 3- component representation for vertices and matrices:

4 Homogenous vectors and matrices …but in practise the use of 4 component homogenous vectors and matrices is common Allows affine transformations using only matrix multiplication (translation, scaling, rotation, etc)

5 Vector math Treated as 3-component vectors (ignore last component)

6 Vector math, dot product Definition Property

7 Vector math, cross product Definition Property

8 Transformations Rotations

9 Transformations Translation Scaling

10 Concatenation Transformations can be concatenated Apply from right to left Not commutative!

11 Coordinate spaces Typically all objects are defined in their own object coordinate space World coordinate space relates the various objects with each other by transforming each object as appropriate:

12 Coordinate spaces, cont. Camera space is similar to world space, but relative to the camera – defines what can be seen through the camera’s field of view Screen space (or homogenous coordinate representation of the screen) describes what is seen through projection of the camera space onto the visible plane

13 Homework Create “Hello World”-equivalents for 3D graphics, one program each for: drawing individual pixels, rendering a triangle, rendering a rotating cube For tomorrow


Download ppt "Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space."

Similar presentations


Ads by Google