Tutorial 1
Tutorial 1
Answer:
(A)
(i) Non-interlaced:
(ii) Interlaced:
Time per fields = 100 ms
No. of vertical retrace per second for interlaced case = 50*2 = 100
Total vertical retrace time per second for non-interlaced case = 50*20 micro-secs ≈ 1 milli-sec
Total vertical retrace time per second for interlaced case = 100*20 micro-secs ≈ 2 milli-secs.
(i) Non-interlaced total retrace time in a second for non-interlaced case is 97 milli-secs.
So, time available for all pixel displays during a particular scan is: (1000-97)milli-secs =
903 milli-secs.
Therefore, time available to display a single pixel for non-interlaced case is :
903/(640*480*50) milli-sec = 58.8 nano-secs.
(ii) Interlaced total retrace time in a second for interlaced case is 98 milli-secs.
So, time available for pixel display during a particular scan is: (1000-98) = 902 milli-secs.
Question 2:
Write the pixels to be considered to draw a line between (10,15) and (17,20) using mid-point line
drawing algorithm. Mention the initial values of the required parameters as well as the change in values
of the necessary parameters.
Answer:
0 d=3 10 15 -
1 d = 3+(-4) = -1 11 16 NE
2 d = -1+10 = 9 12 16 E
3 d = 9-4 = 5 13 17 NE
4 d = 5-4 = 1 14 18 NE
5 d = 1-4 = -3 15 19 NE
6 d = -3+10 = 7 16 19 E
7 d = 7-4 = 3 17 20 NE
Question 3:
A plane determined by the points and and a line passing through the points and intersect
the plane at a point, Q. Find the coordinates of Q.
Answer:
The point Q satisfies eqn of both line and plane,
Parametric eqn of plane,
⃗ ⃗⃗⃗⃗⃗ (⃗⃗⃗⃗⃗ ⃗⃗⃗⃗⃗) (⃗⃗⃗⃗⃗ ⃗⃗⃗⃗⃗)
[ ]
[ ]
This value can then be plugged back in parametric eqn of line to give the point of intersection.
Question 4:
Consider the line L and the triangle ABC as shown in the figure given below. The equation of the line L is
y=x+2. The coordinates of the points A, B and C are (2,5,1), (2,8,1) and (4,8,1) respectively. A*B*C*
represents the reflection of the original triangle ABC through the line L. Find the co-ordinates of A*, B*
and C*.
Answer:
√ √ √ √
[ ] [ ] [ ]
√ √ √ √
[ ] [ ]
√ √ √ √
[ ] [ ]
√ √ √ √
[ √ √ ]
√ √ √ √
[ ]
√ √ √ √
[ √ √ ]
=[ ]
Hence, the transformed position vectors for the triangle A*B*C* are:
[ ] [ ] [ ]
Question 5:
Let a point P moves with at an uniform velocity v on a linear path in 3D. Find the velocity of point Q,
which is the perspective projection of P on a 2D plane. Consider the focal length of the camera be f.
Answer:
Let the velocity of P along x, y and z coordinates be v1, v2 and v3 respectively ( ⃗⃗ = [v1 v2 v3]). Let after one
unit time, the point P moves to the location P’. Hence, in the projection plane, the point Q moves to the
new location Q’. If the projection matrix is given by the matrix T, where:
[ ]
⁄