Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computer Graphics Lecture 16 Fasih ur Rehman. Last Class Homogeneous transformations Types of Transformations – Linear Transformations – Affine Transformations.

Similar presentations


Presentation on theme: "Computer Graphics Lecture 16 Fasih ur Rehman. Last Class Homogeneous transformations Types of Transformations – Linear Transformations – Affine Transformations."— Presentation transcript:

1 Computer Graphics Lecture 16 Fasih ur Rehman

2 Last Class Homogeneous transformations Types of Transformations – Linear Transformations – Affine Transformations – Projective Transformations Combining Homogeneous transformations

3 Today’s Agenda 3D Transforms Inverse Rotation Clipping

4 3D Transforms The idea of 3D transforms is the same as that of 2D – A 3D point is represented by (x, y, z) – Homogeneous Coordinates are defined as A 4 th Coordinate is added to every 3D point (x, y, z, t) represents (x/t, y/t, z/t) (x, y, z, 0) represents infinity (0, 0, 0, 0) is not allowed

5 General 3D Homogeneous Transform

6 Scaling Scaling matrix

7 Translation Translation matrix

8 Reflection Reflection Matrix about yz – plane What are other reflection matrices

9 Other Reflection Matrices

10 Rotation Rotation about Z – axis

11 Rotation Rotation about Y – axis

12 Rotation Rotation about X – axis

13 Inverse Rotation

14 Summary 3D Transforms Inverse Rotation Clipping

15 References Fundamentals of Computer Graphics Third Edition by Peter Shirley and Steve Marschner Interactive Computer Graphics, A Top-down Approach with OpenGL (Sixth Edition) by Edward Angel.


Download ppt "Computer Graphics Lecture 16 Fasih ur Rehman. Last Class Homogeneous transformations Types of Transformations – Linear Transformations – Affine Transformations."

Similar presentations


Ads by Google