Docsity

Ray-Tracing Program - Computer Graphics - Old Exam Paper, Exams of Computer Graphics

Toggle sidebar
bg1
Cork Institute of Technology
Bachelor of Science (Honours) in Computer Applications – Award
(Bachelor of Science in Computer Applications – Award)
(NFQ – Level 8)
Autumn 2005
COMPUTER GRAPHICS
(Time: 3 Hours)
Instructions
Answer FIVE questions.
All questions carry equal marks.
Examiners: Ms. Helen Fagan
Dr. D. Chambers
Mr. E. A. Parslow
Mr. P. O’Connor
Question 1
(a) Draw a diagram of the pinhole camera showing the centre of projection, the projection
plane and the angle of view. (6 marks)
(b) What is the mathematical relationship between the height of the film plane, the distance
from the pinhole to the plane and the angle of view? (4 marks)
(c) Describe the pipeline architecture used in a computer graphics processor and describe the
purpose of each element. (10 marks)
Question 2
(a) Write the display method for an OpenGL program. The method should draw a unit square
in 2D centred at the origin. You should use the method glOrtho2d to create a viewing
window of dimensions 4 units by 4 units also centred on the origin. (10 marks)
(b) Describe the effect of the following function call in an openGL program:
glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA) (6 marks)
(c) Describe a simple procedure used to draw translucent objects in a 3D world using openGL.
What is the disadvantage of this method? (4 marks)
pf3

Partial preview of the text

Download Ray-Tracing Program - Computer Graphics - Old Exam Paper and more Exams Computer Graphics in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Science (Honours) in Computer Applications – Award

(Bachelor of Science in Computer Applications – Award)

(NFQ – Level 8)

Autumn 2005

COMPUTER GRAPHICS

(Time: 3 Hours)

Instructions Answer FIVE questions. All questions carry equal marks.

Examiners: Ms. Helen Fagan Dr. D. Chambers Mr. E. A. Parslow Mr. P. O’Connor

Question 1 (a) Draw a diagram of the pinhole camera showing the centre of projection, the projection plane and the angle of view. (6 marks)

(b) What is the mathematical relationship between the height of the film plane, the distance from the pinhole to the plane and the angle of view? (4 marks)

(c) Describe the pipeline architecture used in a computer graphics processor and describe the purpose of each element. (10 marks)

Question 2

(a) Write the display method for an OpenGL program. The method should draw a unit square in 2D centred at the origin. You should use the method glOrtho2d to create a viewing window of dimensions 4 units by 4 units also centred on the origin. (10 marks) (b) Describe the effect of the following function call in an openGL program: glBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA) (6 marks)

(c) Describe a simple procedure used to draw translucent objects in a 3D world using openGL. What is the disadvantage of this method? (4 marks)

Question 3

(a) The camera frame is defined by 3 perpendicular unit vectors u, v, and n. The camera is described by specifying a position, a look vector and an up vector. Describe how the vectors u, v and n are calculated from this information. (8 marks)

(b) Explain with the aid of an example how you use gluLookAt to position the camera in an openGL program. (4 marks)

(c) Describe with the aid of a diagram the perspective viewing volume. Describe how you can specify a perspective viewing volume in openGL. (8 marks)

Question 4

(a) Describe the basic algorithm that you would use for a ray-tracing program. (10 marks)

(b) Describe each of the effects that can be achieved using the accumulation buffer. (6 marks)

(c) Explain how the function glAccum is used. (4 marks)

Question 5