{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CG-lecture02-3

# CG-lecture02-3 - Computer Graphics Lecture 2-3 Geometric...

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

Computer Graphics Lecture 2-3 Geometric Transformation used in OpenGL

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

View Full Document
Remember? (1) We only consider one point in complex geometric graphics. And we refer it as observed vector . (2) The row or column vectors in a matrix are basis vectors .
How to describe graphics with vectors ? glBegin(GL_XXX); …… glEnd();

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

View Full Document
Transformation in 3D pipeline 1. Local-World system transformation 2. World-Viewing system transformation 3. Perspective Projection transformation
1. Local-World system transformation (1) Vector transformation (2) Coordinate System transformation

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

View Full Document
A 2D example Scale Rotate Translate Scale Translate X Y World Coordinates Local Coordinates Y W X W
(1) Vector transformation X Y Local Coordinates Initial location at (0, 0) with x- and y-axes aligned Y W X W Y X

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

View Full Document
(1) Vector transformation Scale 0.3, 0.3 Rotate -90 Translate 1, 9 Y X X Y Local Coordinates
(1) Vector transformation X Y Local Coordinates Y X Scale 0.3, 0.3 Rotate -90 Translate 1, 9

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

View Full Document
(1) Vector transformation X Y Local Coordinates Y X Scale 0.3, 0.3 Rotate -90 Translate 1, 9
= 1 1 0 0 0 1 0 0 0 1 1 Y X Y X V V V V (1) Vector transformation Identity Vector Transformation (Local system is equal to World system) Vector Transformation in the example Scaling Rotation Translation

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}