2017-Dec CSD-213 231
2017-Dec CSD-213 231
,c‘
a) Consider a line from (5, 5) to (13, 9). Use Bresenham's algorithm to rasterize the line.
b) Consider a circle centered at (50, 50) having radius 10. Use mid- point algorithm to rasterize
• the circle.
a) Find the reflection of the point (4, 3) with respect to line 4x+2y-3=0?
b) Given the average time to execute any instruction in display program is 10 micro sec and
refresh rate is 30 fps, calculate the maximum number of instructions in the display program?
c) Given a raster system with resolution of 800 X 400 and refresh rate of 10 fps, calculate the
total no of horizontal retrace in one sec?
d) Consider the rectangle ABCD with co-ordinates A(1,1) B (4,1) C(4,4) D(1,4).We rotate the
rectangle counterclockwise direction by 45° fixing point B. Find the new coordinates of
resultant rectangle?
10,10
4,4
Real World
2Q20
15,15
ViewPort
Q3. (4 x 3 marks = 12 marks)
a) Consider a window (xmin, ymin) = (5, 5) and (xmax, ymax) = (10, 10) with line drawn from
(4, 15) to (8, 8). Apply Liang—Barsky algorithm to clip the given line against the given
window.
b) For the polygon given below apply both Sutherland Hodgeman, Weiler-Atherton Polygon
Clipping algorithms and compare the results obtained after clipping.
c) Explain area subdivision algorithms for hidden surface removal and apply the same on the
figure given below.
d) Explain z-buffer algorithm, stating its drawback? Describe in brief how A-buffer algorithm
overcomes this drawback?
e) Elaborate the intensity illumination model and explain how they are used in polygon
rendering?