0% found this document useful (0 votes)
4 views2 pages

Sit 324 Computer Graphics and Virtual Reality April 2024

The document outlines the examination details for the SIT 324 course on Computer Graphics and Virtual Reality for the academic year 2023/2024. It includes instructions for answering questions, covering topics such as raster graphics, virtual reality, OpenGL programming, and line drawing algorithms. The exam consists of five questions, with various sub-questions focusing on theoretical and practical aspects of computer graphics.

Uploaded by

Ann Wangari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Sit 324 Computer Graphics and Virtual Reality April 2024

The document outlines the examination details for the SIT 324 course on Computer Graphics and Virtual Reality for the academic year 2023/2024. It includes instructions for answering questions, covering topics such as raster graphics, virtual reality, OpenGL programming, and line drawing algorithms. The exam consists of five questions, with various sub-questions focusing on theoretical and practical aspects of computer graphics.

Uploaded by

Ann Wangari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

2023/2024 ACADEMIC YEAR

SECOND SEMESTER EXAMINATION


THIRD YEAR EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE
(INFORMATION TECHNOLOGY)
SIT 324: COMPUTER GRAPHICS AND VIRTUAL REALITY
DATE: 25/03/2024 TIME: 2:00 PM – 4:00 PM
INSTRUCTIONS:
Answer Question ONE and ANY other two Questions

QUESTION ONE (30 MARKS)


a) Describe the main characteristics of raster graphics systems. (6 Marks)
b) Assume that you are using colour monitor where the wires have been swapped so that the red,
green, and blue outputs from the computer have been respectively attached to the green, blue, and
red inputs on the monitor. Using a table format, Explain, what will happen when you try to print
the 8-RGB colour models on the screen. (6 Marks)
c) Describe ANY THREE video display devices. (6 Marks)
d) Explain the concept of window to view port transformation with the help of suitable diagram.
(6 Marks)
e) Describe virtual reality and explain the key components required for creating a virtual
environment. (6 Marks)

QUESTION TWO (20 MARKS)


a) Develop a pseudo-code algorithm for implementing the Bresenham's line algorithm for drawing
line, given the following end points A(2,3) and B(11, 9) on a raster display. (12 Marks)
b) Evaluate the ethical considerations related to virtual reality technologies, considering issues such
as data privacy and, or psychological effects. (8 Marks)

QUESTION THREE (20 MARKS)


a) OpenGL is a light weight programming language.
i) Describe the general structure of an OpenGL program. (4 Marks)
ii) Explain ANY FOUR OpenGL libraries. (4 Marks)

Knowledge Transforms
b) A polygon has four vertices (pixel points) located at A(20,10), B(60,10), C(60,30) and D(20,30).
Calculate the vertices after applying the transformation matrix to double the size of the polygon,
with reference to a fixed point R(0, -10). (12 Marks)

QUESTION FOUR (20 MARKS)


a) You are working on the shader for computer rendering of a glass of milk that is supposed to
look as realistic as possible. Unfortunately, the results look more like a glass of white paint
than like a glass of milk. What is likely the problem with your milk shader? (10 Marks)
b) Explain in details what are the main criteria you should consider when designing a line drawing
algorithm for a raster graphics display? (10 Marks)

QUESTION FIVE (20 MARKS)


a) Assume a client has tasked you to write code for a new graphics card, that is a software
programmable, rather than having the algorithms embedded in hardware.

Required
i) Provide an OpenGL pseudocode that draws a triangle with a constant colour.
Assume that the inputs are the colour of the triangle and three two-dimensional
points, representing the three vertices of the triangle. (Note, assume that
all three vertices lie on the visible screen and that no anti-aliasing is required.) (8 Marks)
ii) You want to write a fast triangle-drawing program to test the card. (4 Marks)
b) Explain how to calculate the address of pixel (x,y) stored in frame buffer. (8 Marks)

--END--

Knowledge Transforms

You might also like