

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


(NFQ Level 8)
Instructions Answer THREE questions. All questions carry equal marks.
Examiners: Ms. H. Fagan Dr. J. Buckley Mr. A. Kinsella
Question 1
i) Describe the characteristics of parallel and perspective projection. (4 marks)
ii) What are the reasons for specifying a near and far clipping plane when specifying a viewing volume? (4 marks)
iii) What information is specified for a camera when drawing a 3D scene using perspective projection? How would you specify a camera in an openGL program? (4 marks)
iv) The camera frame is made up of three vectors named u, v, and n. Show how these vectors are derived from the information specified for a camera? ( marks)
Question 2 i) Describe when and why you would make each of the following calls in an openGL program a) glMatrixMode(GL_PROJECTION) b) glMatrixMode(GL_MODELVIEW) c) glPushMatrix() (6 marks)
ii) What homogenous matrix represents each of the following operations in 2D a) Scaling by a factor of a ½ b) Rotation by 90 degrees c) Translation of (1,-1) (6 marks)
iii) The following display method draws a square of unit width centred at the origin in a 2D openGL program. How would you change this so that the display method draws four squares each rotated 90 degrees and centred at (1,1), (-1,1), (1,-1), and (-1,-1) respectively. The squares should each have a width of .5.
display() { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); drawUnitSquare(); glFlush(); } (8 marks)
Question 3
i) What are the main differences between a global illumination scheme and a local illumination scheme? (4 marks)
ii) What is meant by a) a diffuse surface b) the attenuation of light (4 marks)
iii) Describe with the aid of a diagram the equation used to calculate specular light intensity using the phong illumination model. (6 marks)
iv) What are the main coding steps required to add light from a point source to a scene in an openGL program (6 marks)
Question 4
i) Describe an algorithm used for hidden surface removal. What programming steps must be taken to in openGL to ensure this is implemented? (8 marks)
ii) Describe with the aid of a diagram the basic operation of a Cathode Ray Tube or a flat screen. (6 marks)
iii) Outline the key functionality you would expect in either a graphics engine such as Ogre or a games engine. (6 marks)