Presentation is loading. Please wait.

Presentation is loading. Please wait.

GRAFIKA KOMPUTER ~ M. Ali Fauzi. Drawing 3 D Graphics.

Similar presentations


Presentation on theme: "GRAFIKA KOMPUTER ~ M. Ali Fauzi. Drawing 3 D Graphics."— Presentation transcript:

1 GRAFIKA KOMPUTER ~ M. Ali Fauzi

2 Drawing 3 D Graphics

3 3 D TRANSFORMATION

4 Transformation Pipeline Vertex Modelview Matrix Modelview Matrix Projection Matrix Projection Matrix Perspective Division Perspective Division Viewport Transformation Viewport Transformation Object Coordinates Object Coordinates Eye Coordinates Eye Coordinates Clip Coordinates Clip Coordinates Normalized device Coordinates Normalized device Coordinates Window Coordinates Window Coordinates GL_MODELVIEW mode glTranslate() glRotate() glScale() glLoadMatrix() glMultMatrix() gluLookAt() GL_PROJECTION mode glOrtho() gluOrtho2D() glFrustum() gluPerspective() glViewport()

5 Matrix Modes ~ ModelView Matrix (GL_MODELVIEW) These concern model-related operations such as translation, rotation, and scaling, as well as viewing transformations.

6 THE TRANSFORMATION

7 Translation The path is represented by a vector, called the translation or shift vector. x’ y’ z’ xyzxyz txtytztxtytz = + New Position Current Position Translation Vector P' = P + T

8 Translation Translasi 2D -> 3D Translasi 3D -> 4D Koordinat Asal Koordinat Homogen

9 Scaling The transformation using Scale Matrix New Position Scale Matrix Current Position P' = S P

10 Scaling In Homogeneous Coordinate : New Position Scale Matrix Current Position P' = S P

11 Rotation For 2D : New Position Rotation Matrix Current Position P' = R. P

12 Rotation For 2D :

13 Rotation 2D Rotation about an arbitrary axis (Rotasi pada sembarang sumbu (Xr,Yr) dengan sudut Ө) :

14 Rotation 3D Rotation, Roll y x z

15 Rotation 3D Rotation, Yaw y x z

16 Rotation 3D Rotation, Pitch y x z

17 Rotation 3D Rotation about an arbitrary axis ( Rotasi pada sembarang sumbu (Ax,Ay,Az) dengan sudut Ө ) y x z sumbu putar sembarang titik (Ax,Ay,Az)

18 Shearing-x Shearing-y Shearing 3D

19 Shearing-z Shearing 3D


Download ppt "GRAFIKA KOMPUTER ~ M. Ali Fauzi. Drawing 3 D Graphics."

Similar presentations


Ads by Google