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(); }

 

 

 

 

For a custom-written paper on the above topic, place your order now!

What We Offer
• On-time delivery guarantee
• PhD-level professionals
• Automatic plagiarism check
• 100% money-back guarantee
• 100% Privacy and Confidentiality
• High Quality custom-written papers

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!