3D Transformations PPT
3D Transformations PPT
Sonal Shroff
Computer Engg Dept
TSEC
Three dimensional graphics is useful in
the representation of realistic objects as
well as in animation.
3D display techniques
3D transformations
3D representations
3D viewing
3D clipping
x' 1 0 0 tx x
( x' , y ' , z ' ) y ' 0 1 0 t y y
( x, y, z ) .
z ' 0 0 1 tz z
z x
1 0 0 0 1 1
y y y
P2 P2
P1 P1 P1
P2 x x x
z z z
1 0 0 0
0 1 0 0
T
0 0 1 0
x1 y1 z1 1
1 0 0 0
0 c / d b/d 0
Rx (1 )
0 b / d c/d 0
0 0 0 1
d 0 a 0
0 1 0 0
R y (2 )
a 0 d 0
0 0 0 1
cos sin 0 0
sin cos 0 0
Rz ( )
0 0 1 0
0 0 0 1
z z
x x
x' S x 0 0 0 x
y ' 0 Sy 0 0 y
P' . S .P
z' 0 0 Sz 0 z
1 0 0 0 1 1
Prof. Sonal Shroff - TSEC 29
y y y
z (x f , y f , z f ) (x f , y f , z f ) (x f , y f , z f )
x z x z x
y
S x 0 0 (1 S x ) x f
0 Sy 0 (1 S y ) y f
T S T 1
(x f , y f , z f ) 0 0 Sz (1 S z ) z f
z
x 0 0 0 1
1 0 0 0
0 1 0 0
RFz
0 0 1 0
0 0 0 1
1 0 0 0
0 1 0 0
RFx
0 0 1 0
0 0 0 1
1 0 0 0
0 1 0 0
RFy
0 0 1 0
0 0 0 1
1 0 0 0
0 1 0 0
a b 1 0
0 0 0 1
1 a b 0
0 1 0 0
0 0 1 0
0 0 0 1
1 0 0 0
a 1 b 0
0 0 1 0
0 0 0 1