BIT 2304 COMPUTER GRAPHICS KCA Past Paper

UNIVERSITY EXAMINATIONS: 2011/2012
SECOND YEAR EXAMINATION FOR THE BACHELOR OF
SCIENCE IN INFORMATION TECHNOLOGY
BIT 2304 COMPUTER GRAPHICS
DATE: AUGUST, 2012 TIME: 2 HOURS
INSTRUCTIONS: Answer Question ONE and any other TWO

QUESTION ONE
The Open Graphics Library (OpenGL) is a specification of an API for rendering graphics
a) Differentiate between the following; GLUT, GLU and GL. (5 Marks)
b) Using sketches, make representations for each of the following primitives.
i. Polyline
ii. Line Loop
iii. Triangle Strip
iv. Triangle Fan
v. Quad Strip
(10 Marks)
c) OpenGL has two types of things that it can render: geometric primitives and
image primitives. What is the difference between the two? (5 Marks)
d) Here is a simple construct of an OpenGL program.
void main( int argc, char** argv )
{
int mode = GLUT_RGB|GLUT_DOUBLE;
glutInitDisplayMode( mode );
glutCreateWindow( argv[0] );
init();
glutDisplayFunc( display );
glutReshapeFunc( resize );
glutKeyboardFunc( key );
glutIdleFunc( idle );
glutMainLoop();
}
Explain the glutInitDisplayMode() and glutCreateWindow() functions in the
program.
(10 Marks)
QUESTION TWO
In computer graphics, we form images which are generally two dimensional using a
process analogous to how images are formed by physical imaging systems (Cameras, ,
Microscopes, Telescopes and Human visual system). Describe the working of these
systems. (20 Marks)
QUESTION THREE
a) Define and Explain the role of each of the following in the generation of graphic
images using a computer.
i. Modeling
ii. Animation
iii. Texture Mapping
iv. Rendering
(10 Marks)
b) Describe the many ways that animation can be generated in computer graphics.
(5 Marks)
3
c) Explain the techniques that can be used to generate computer models. (5 Marks)
QUESTION FOUR
a) Describe and distinguish between the terms; Virtual Reality, Virtual World,
Virtual Environment, and Immersiveness. (8 Marks)
b) Most Art Modeling application as in 3D sculpting are incorporating components
that utilize force-feedback techniques. The pseudo code of his main algorithm is
following:
while(sculpting){
Do the “collusion detection” with current sculptor position
Calculate the “feedback force” and set it to force-feedback device
Modify the 3D scene
Render the 3D scene}
What are the parameters that the force feedback device needs to send them back
to the computer to simulate the force system?
(6 Marks)
c) Assuming an environment where sense of smell is incorporated in the virtual
world. What are the parameters that the virtual world uses to simulate this sense.
(6 Marks)
QUESTION FIVE
a) Using relevant tables and figures, explain any 2 (Two) types of Vector Data
structures.
(10 Marks)
b) Generate a Quadtree for the following 8×8, 3 value raster image.

(10 Marks)

(Visited 122 times, 1 visits today)
Share this:

Written by