100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS3712 Exam pack 2024(Computer Graphics) $2.50   Add to cart

Exam (elaborations)

COS3712 Exam pack 2024(Computer Graphics)

 6 views  0 purchase
  • Course
  • Institution

COS3712 Exam pack 2024(Computer Graphics) With accurate answers and assurance that they are in the exam

Preview 4 out of 111  pages

  • October 4, 2024
  • 111
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
COS3712 EXAM PACK
2024

QUESTIONS AND
ANSWERS
FOR ASSISTANCE CONTACT
EMAIL:gabrielmusyoka940@gmail.com

, lOMoARcPSD|31863004




2 COS340-A
October/November 2009

QUESTION 1 [10]
a) OpenGL uses z-buffering for hidden surface removal. Explain how the z-buffer algorithm
and give one advantage of using this method. (5)

Answer:

OpenGL uses a hidden-surface method called z-buffering
that saves depth information into an extra
buffer which is used as objects are rendered so that parts of objects that are behind other ob
appear in the image. The z-buffer records the depth or the distance from the Thus,
COPas of a pixel.
polygons are scan-converted in random order, the algorithm checks the z-value of the pixel
coordinates (in the frame buffer) that it is trying to draw to. If the existing pixel at these coo
(i.e. if there already was a pixel) has a z-value further from the viewer than the pixel we are
draw, then the colour and depth of the existing pixel are updated, otherwise it continues wit
to the colour buffer or the depth buffer.

Advantages:(1 mark for either answer)
easy to implement in either software or hardware
it is compatible with pipeline architectures - can execute at the same speed at which vertice




b) Orthogonal, oblique and axonometric view scenes are all parallel view scenes. Define th
parallel view and explain the differences between orthogonal, axonometric, and oblique
scenes. (5)


Answer:

Parallel views - views with the COP at infinity.

Orthogonal views - projectors are perpendicular to the projection plane and projection plane
to one of the principal faces of an object. A single orthogonal view is restricted to one princi
of an object.

Axonometric view - projectors are perpendicular to the projection plane but projection plane
any orientation with respect to object.

Oblique projection - projectors are parallel but can make an arbitrary angle to the projection
and projection plane can have any orientation with respect to object.




[TURN OVER]

, lOMoARcPSD|31863004




3 COS340-A
October/November 2009

QUESTION 2 [8]
a) Define the term homogeneous coordinates and explain why they are used in computer

Answer:

Homogeneous coordinates are four dimensional column matrices used to represent both po
vectors in three dimensions.
When points and vectors are represented using 3-dimensional colum
matrices one cannot distinguish between a point and a vector, with homogeneous coordinat
can make this distinction.

marks can be awarded for any of the points mentioned below:
A matrix multiplication in 3-dimensions cannot represent a change in frames, while this can
using homogeneous coordinates.
All affine transformations can be represented as matrix multiplications in homogeneous coo
Less arithmetic work is involved when using homogeneous coordinates.
The uniform representation of all affine transformations makes carrying out successive tran
far easier than in 3 dimensional space.
Modern hardware implements homogeneous coordinates operations directly, using paralleli
achieve high speed calculations.

b) Consider the line segment with endpoints a and b at (1, 2, 3) and (2, 1, 0) respectively.
the coordinates of vertices a and b that result after an anticlockwise rotation by 15 abo
axis.(Show your workings) (4)

Hint: The transformation matrix for rotation around the z-axis is

(where θ is the angle of anticlockwise rotation).




[TURN OVER]




Downloaded by Gabriel Musyoka (gabrielmusyoka940@gmail.com)

, lOMoARcPSD|31863004




4 COS340-A
October/November 2009

Then, to rotate a' and b' by 15 about the z-axis, we use the rotation matrix




Similarly




So a'' = (0.448, 2.191, 3)
and b'' = (1.673, 1.484, 0) (4)


QUESTION 3 [8]

OpenGL is a pipeline model. In a typical OpenGL application, a vertex will go through a seque
transformations or change of frames. In each frame the vertex has different coordinates.

a) Name these coordinates in the order that they occur in the OpenGL vertex transformation
[5]




[TURN OVER]




Downloaded by Gabriel Musyoka (gabrielmusyoka940@gmail.com)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller gabrielmusyoka940. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $2.50. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77254 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$2.50
  • (0)
  Add to cart