Ics2311:Computer Graphics Question Paper
Ics2311:Computer Graphics
Course:Bachelor Of Computer Science
Institution: Meru University Of Science And Technology question papers
Exam Year:2013
QUESTION ONE (20 MARKS)
a) Define computer graphics. (2 Marks) b) Discuss how raster scan systems works. (10 Marks) c) Outline the steps in the Bresenham’s line drawing algorithm and write C++ implementation. (10 Marks) d) What is OpenGL? (2 Marks) e) Outline the texture mapping process. (6 Marks)
QUESTION TWO (20 MARKS)
a) Outline the output primitive attributes. (12 Marks) b) Discuss how cathode ray tube works. (8 Marks)
QUESTION THREE (20 MARKS)
a) Discuss the different types of light reflection. (5 Marks) b) Demonstrate the midpoint circle algorithm by determining positions along the circle octant in the first quadrant from x = 0 to x = y and radius is 10. (15 Marks)
2
QUESTION FOUR (20 MARKS)
a) Discuss how incremental line drawing algorithms work. (10 Marks) b) The following is an OpenGl code, can you draw the output that will be displayed on the computer screen. (10 Marks)
Main(){ InitialilzeAWindowPlease(); glClearColor (0.0,0.0,0.0,0.0); glClear (GL_COLOR_BUFFER_BIT); glColor3f(1.0,1.0,1.0); glOrtho(0.0,1.0,0.0,1.0,-1.0,1.0); glBegin(GL_POLYGON); glVertex3f(0.25,0.25,0.0); glVertex3f(0.75,0.25,0.0); glVertex3f(0.75,0.75,0.0); glVertex3f(0.25,0.75,0.0); glEnd(); glFlush();
Update TheWindowAndCheckForEvents(); }
QUESTION FIVE (20 MARKS)
a) Discuss the advantages and disadvantages of liquid crystal display. (8 Marks) b) Differentiate between the following three classes of transformations. (12 Marks) i. Rigid body ii. Conformal iii. Affine
More Question Papers