Professional Documents
Culture Documents
BCSE3011 Computer Graphics: 3D Transformations
BCSE3011 Computer Graphics: 3D Transformations
BCSE3011 Computer Graphics: 3D Transformations
COMPUTER GRAPHICS
3D Transformations
3D Transformations.
Note:
Convenient to think of display as
Being left-handed !!
x
( z into the screen )
z (out of page)
Simple extension to the 3D case:
Scale in 3D.
s x 0 0 0
0 sy 0 0
S (s x , s y , s z )
0 0 sz 0
0 0 0 1
Rotation in 3D
• Need to specify which axis the rotation is about.
• z-axis rotation is the same as the 2D case.
cos sin 0 0
sin cos 0 0
R z ( )
0 0 1 0
0 0 0 1
Rotation around an axis parallel to x-axis
H&B p271
Rows of upper-left 3x3 submatrix, when rotated by R lie on the x,y
and z axes