5.1 3D Coordinates System Right-Handed Coordinates System
5.1 3D Coordinates System Right-Handed Coordinates System
5.1 3D Coordinates System Right-Handed Coordinates System
1 3D Coordinates System
Y X
X Y
(0,2,0)
(0,0,0)
X
(3,0,0)
(0,0,1)
Z
0 0 0
[ ] 3
0
0
0
2
0
0
0
1
represents a tetrahedron
Y
X
Z
Eye
[ ]
cos sin 0
-sin cos 0
[y' z' 1] = [y z 1] * 0 0 1
cos sin 0 0
[x' z' 1] = [x z 1] *[ ]
cos -sin 0
sincos 0
0 0 1
cos 0 -sin 0
Y
X
Z
[ ]
cos sin 0
-sin cos 0
[y' z' 1] = [y z 1] * 0 0 1
1 0 0 0
Y Rotate Y
about
(0,3,0) X
(1,0,0) X
X
(0,0,2)
Rotate Z
Z about
Y
Y Rotate Y
about
Z
X X
Z Z
Perspective projections:
The center of projection is located at a finite
distance from the projection plane.
[x,y,0]
Perspective:
[] [] []
0 1 1
1 0 1
Up1 = 0 Up2 = 0 Up3 = 0
Ye
[x y z]
[xp yp 0]
Xe
Ze [0 0 d] = Eye Position
Projection plane: XY-plane (Z=0)
Eye position: [0 0 d]
Projector: the line from [x y z] to a
given eye position.
The problem for finding projection point b
ecomes:
Find the intersection point for
projcetion plane and projector.
x
Ye
(x,y,z)
[x y z]
-z xp
[xp yp 0]
Xe Xe
Ze [0 0 d] = Eye Position
d
Ze
xp : x = d : d-z
xp= (d/(d-z)) * x
[ ]
d/(d-z) 0 0 0
0 d/(d-z) 0 0
[xp yp 0 1]=[x y z 1] 0
0
0
0
0 0
0 1
=[x y z 1][ 0
0
0
1
0
0
0 0
]
0 -1/d
0 1
Y picture
[x y z ]
t t plane ?
t
[x't y't 0]
[xf yf zf]
[x'f y'f 0]
X
Z
(b) What happens when Z
(c) What about d
..
X
.
(0,0,5)
Z
(0,0,15)
..
X X
.
(0,0,5)
Z
(0,0,15)
X
Z
Y Y
X X
Z Z
view
(Xt ,Yt ,Zt ) vector
Xw
world
data
representing
object
ZwNotice that the world data and view v
ector now are given in world coordi
nates, not eye coordinates.
Yw Ye
Xe
Ze
Xw
world
data
We make the arbitrary Ye (Up
Zw direction) which perpedicular to Ze
Yw
Ye
Xe
Ze
Xw
Zw
T1 =
= [ ]
eye'' eye'
Xw
Zw
Yw
Ye
Xe
Xw
Ze
Zw
Ye = (1,0,0)
Xw
(1,0,0)w
(0,0,1)w
Zw
Ze
Ye
Xe
Yw
(0,1,0)w
(0,0,1)e
(0,0,0)w
(0,0,0)e
Xw
(1,0,0)w
(-1,0,0) e
(0,0,1)w
(0,1,0)e
Zw
Ye
Back
Clipping
Plane
Xe
ZThis
e
creates a viewing volume, which is aPlane
Projection pyra
mid, and is now aFront
6-sided frustum.
Clipping Plane
(2) two-point
(3) three-point