TRANSFORMATIONS AND PROJECTIONS 51OP* = OE + EP* = x*i + y*j + z*k= –w + * = – + ( – *) + ( – *) + ( – *)w
z
ww
z
xxw
z
yyw
z
kPPk⎛ i jzz
⎝⎞
⎠⎛
⎝⎞
⎠⎛
⎝⎞
⎠⎛
⎝⎞
⎠
kThus,x = OP · i =
w
z (x – x*),y* = OP* · j =w
z (y – y*) and OP* · k =w
z
( – *)zz yieldingx
wx
zw
y
wy
zw
* = z
+
, * =
+
, and * = 0This suggests that the image of P as seen from E on the plane of projection (z = 0) is given byP* =
wx
zwwy
+ zw
,
+⎡ , 0, 1
⎣⎢⎤
⎦⎥which can be expressed using the 4 × 4 matrix asPPP* =*
*
0
1=++
0
10
+ 1= =10 0 0
01 0 0
00 0 0
001 1ersx
ywx
zw
wy
zwx
yz
w w⎡⎣⎢
⎢
⎢
⎢
⎢⎤⎦⎥
⎥
⎥
⎥
⎥⎡⎣⎢ ⎢ ⎢ ⎢ ⎢ ⎢⎤⎦⎥ ⎥ ⎥ ⎥ ⎥ ⎥≡⎡⎣⎢
⎢
⎢
⎢
⎢⎤⎦⎥
⎥
⎥
⎥
⎥⎡⎣⎢
⎢
⎢
⎢
⎢⎢⎤⎦⎥
⎥
⎥
⎥
⎥⎡⎣⎢
⎢
⎢
⎢
⎢⎤⎦⎥
⎥
⎥
⎥
⎥x
y
z
1(2.34)We can develop similar perspective projection matrices for the human eye to be on the x- and y-
axis, respectively, using cyclic symmetry. For the view point Ex at x = – w on the x-axis, a line joining
Ex and P will intersect the y-z image plane at P
wy
xwwz
yz xw
* 0
+ +⎡ 1
⎣⎢⎤
⎦⎥. Similarly, if the view point
is shifted to Ey at y = –w on y-axis, the line joining Ey and P will intersect z-x image plane at
P wx
ywwz
zx yw
*
+
0
+⎡ 1
⎣⎢⎤
⎦⎥.Example 2.9. A line P 1 P 2 has coordinates P 1 (4, 4, 10) and P 2 (8, 2, 4) and the observer’s eye Ez is
located at (0, 0, – 4). Find the perspective projection of the line on the x-y plane.
Any point P on a given line can be written in the parametric form P = (1 – u)P 1 + uP 2 , where
u∈ [0 1]. When u = 0, P = P 1 and when u = 1, P = P 2. The perspective image of P on the x-y image
plane as seen from Ez can be obtained as follows:
P = (1 – u)[4 4 10] + u[8 2 4] = [4(1 + u) 2(2 – u) 2(5 – 3u)]Using the transformation in Eq. (2.34), the perspective image of P on x-y plane is
P* =10 0 0
01 0 0
00 0 04(1 + )
2(2 – )
2(5 – 3 )
1=4(1 + )
2(2 – )
0
7 – 3
28(1 + )
(7 – 3001
4
1⎡⎣⎢
⎢
⎢
⎢
⎢⎤⎦⎥
⎥
⎥
⎥
⎥⎡⎣⎢
⎢
⎢
⎢
⎢⎤⎦⎥
⎥
⎥
⎥
⎥⎡⎣⎢
⎢
⎢
⎢
⎢⎤⎦⎥
⎥
⎥
⎥
⎥≡u
u
uu
uuu
u))
4(2 – )
(7 – 3 )
0
1u
u⎡⎣⎢ ⎢ ⎢ ⎢ ⎢ ⎢⎤⎦⎥ ⎥ ⎥ ⎥ ⎥ ⎥