Professional Documents
Culture Documents
Questions On Assignment 1?: Announcements
Questions On Assignment 1?: Announcements
• Questions on Assignment 1?
Angel, Chapter 4
WORLD
Computer Graphics 15-462 3
General Transformations
A
V = v1 A + v2 B, (v1 ,v2 ) ∈ ℜ B
{ } { }{ }
v1
v2
v3
=
f11 f12 f13
f21 f22 f23
f31 f32 f33
v1
v2
v3
vi = Σj fij vj
0 1 2 3
x' 1 0 tx x
y' = 0 1 t y y
1 0 0 1 1
MATRICES
M
many points
• Calculation time for the
matrices and combination is
M negligible compared to that of
transforming the points
• Reduce the sequence to a
x x x x x x x x x x
single matrix, then transform
UNTRANSFORMED
POINTS
X 2Y3 − X 3Y2
Z = X × Y = X 3Y1 − X 1Y3
X 1Y2 − X 2Y1
• Cross product follows right-hand rule in a right-handed coordinate
system, and left-hand rule in left-handed system.
cosθθ –sinθ
θ 0 0
sinθθ cosθθ 0 0
Rz =
0 0 1 0
0 0 0 1
Order of definition of
vertices in OpenGL
Note: GL conventions…
glFrontFace(GL_CCW)
glFrontFace(GL_CW)
• Linear transformations
–take any point (x,y,z) to a new point (x’,y’,z’)
–Non-rigid transformations such as shear are
“deformations”
• Problem:
–a sequence of non-linear transformations can not be
collapsed to a single function
–every point must be transformed by every
transformation
• Questions on assignment 1?