8-M-ComputerGraphics 20171205155717.198 X
8-M-ComputerGraphics 20171205155717.198 X
Section A
(All questions are compulsory and each carry 5 marks)
Section B
(All questions are compulsory and carry 10 marks)
4. Three points on a shiny metallic surface is given A(2,0,4), B(15,0,6) and C(9,0,9). The light vector
is L=-i+2j-k and the viewing vector is given by V=i+1.5j+0.5k. Assume that there is only one object
and is illuminated by a single light source. Calculate resultant intensity. Take kd = 0.2, ka = 0.3 and
ks = 0.85. The value of ‘n’ for specular reflection is 5. Assume Ia = 1 and Ip = 10. (10)
6. Develop an algorithm for generating a quadtree representation for given visible surface (block) in
below image by applying the area sub-division tests to determine the values of the quadtree
elements. (10)
7. Obtain the mirror reflection of the triangle formed by the vertices A(0,3), B(2,0) and C(3,2) about
line passing through the points (1,3) and (-1,-1). (10)
OR
Consider following window coordinates A(100, 10), B(160, 10, C(160, 40), D(100, 40). Find
the visible portion of the line segments EF, GH and IJ using Cohen Sutherland algorithm. The
points are E(50,0), F(70,80), G(120, 20),H(140, 80),I(120, 5),J(180, 30).
Section C
(All questions are compulsory and each carry 20 marks)
8. Briefly explain B-Spline curve algorithm. Differentiate between Bezier and B-Spline curve.
Generate the values of knot vector and find the segments effected by different control points for a
B-Spline curve where n=5 and k=3. (7+3+10)
9. A) Consider a Bezier blending function with following control points (2, 2), (2, 5), (5, 5) and
(5, 2). Calculate the values for corresponding u={0, ¼, ½, 2/3, ¾,1}. Draw the curve for
respective output. (10)
B) Clip the following figure with Sutherland Hodgeman algorithm and discuss its disadvantage
with example. (10)
OR
A) Give a single 3x3 homogeneous coordinate transformation matrix, which will have the same
effect as each of the following transformation sequences. (2.5x4=10)
i) Scale the image to be twice as large and then translate it 1 unit to the left.
ii) Scale the x direction to be one-half as large and then rotate counterclockwise by 900
about the origin.
iii) Rotate counterclockwise about the origin by 900 and then scale the x direction to be
one-half as large.
iv) Translate down ½ unit, right ½ unit, and then rotate counterclockwise by 450.
B) Draw the line with the help of Bresenham’s algorithm for the following given points (10)
P1 (20,10) and P2 (28, 22).
Roll No: ---------------------------
Section A
(All questions are compulsory and each carry 5 marks)
Section B
(All questions are compulsory and carry 10 marks)
4. Construct a Beizer curve with following control points A (0,0) B(1,2) C(3,2) and D(2,0).
Generate five points of the curve. (10)
5. Draw the line with the help of Bresenham’s algorithm for the following given points
P1 (20,10) and P2 (28, 22). (10)
6. In the figure (rectangular pyramid) below find the back face using back face detection
algorithm, considering viewer is at (30, 40, 30) watching towards origin. (10)
7. Obtain the mirror reflection of the triangle formed by the vertices A(0,3), B(2,0) and C(3,2) about
line passing through the points (4,3) and (-1,-2). (10)
OR
Consider following window coordinates A(100, 10), B(160, 10, C(160, 40), D(100, 40). Find
the visible portion of the line segments EF, GH and IJ using Cohen Sutherland algorithm. The
points are E(50,0), F(70,80), G(120, 20),H(140, 80),I(120, 5),J(180, 30).
Section C
(All questions are compulsory and each carry 20 marks)
8. A) Derive all the blending function for a beizer curve with 6 control points, also derive
relationship between blending function, parameter and geometic vector for a cubic
beizer curve. (10)
B) Define Fractals, mention two important characteristics of Fractals. Generate Koch
Curve till 3rd Iteration for an equilateral triangle. (10)
9. For the pyramid shown below and defined by the vertices (20)
10 0 20 𝐴
20 0 25 𝐵
X=||32 0 20|| 𝐶
27 0 10 𝐷
20 30 20 𝐸
Reflect the pyramid about an axis passing through vertices E and center of quad ABCD.
OR
Give a single 3x3 homogeneous coordinate transformation matrix, which will have the same effect
as each of the following transformation sequences. (4x5=20)
a) Scale the image to be twice as large and then translate it 1 unit to the left.
b) Scale the x direction to be one-half as large and then rotate counterclockwise by 900 about
the origin.
c) Rotate counterclockwise about the origin by 900 and then scale the x direction to be one-half
as large.
d) Translate down ½ unit, right ½ unit, and then rotate counterclockwise by 450.