Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Final Examination for CS184: Foundations of Computer Graphics, Exams of Computer Graphics

The final examination for cs184: foundations of computer graphics, taught by professor david forsyth. The examination covers topics such as cameras and perspective, clipping, polygon scan conversion, visibility and z-buffers, and rotations. The questions require students to demonstrate their understanding of the concepts and their ability to apply them in various scenarios.

Typology: Exams

2012/2013

Uploaded on 04/02/2013

shamabhat_84
shamabhat_84 🇮🇳

80 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS184 : Foundations of Computer Graphics
Professor David Forsyth
Final Examination
(Total: 100 marks)
Figure 1: A perspective view of a polyhedron on an infinite plane.
Cameras and Perspective
Rendering in a perspective camera requires rotating and translating from world coordinates to camera
coordinates (sometimes called the viewing transformation) and then transforming the frustrum to a canonical
form (call this transformation the view mapping transformation).
1. Which camera parameters are required to determine the viewing transformation (3)?
2. Which camera parameters are required to determine the view mapping transformation (i.e. from camera
coordinates to the canonical frustrum) (3)?
3. Give one advantage and one disadvantage of clipping in homogenous coordinates (2).
4. Figure 1 shows a perspective view of a world containing a polyhedron on an infinite plane. The polyhedron
contains two lines that are visible, parallel and parallel to the plane. Mark them, explaining your reasons. (4)
CS184 : Final Examination
CS184 : Foundations of Computer Graphics 1
pf3
pf4
pf5

Partial preview of the text

Download Final Examination for CS184: Foundations of Computer Graphics and more Exams Computer Graphics in PDF only on Docsity!

CS184 : Foundations of Computer Graphics

Professor David Forsyth

Final Examination

(Total: 100 marks)

Figure 1: A perspective view of a polyhedron on an infinite plane.

Cameras and Perspective

Rendering in a perspective camera requires rotating and translating from world coordinates to camera coordinates (sometimes called the viewing transformation ) and then transforming the frustrum to a canonical form (call this transformation the view mapping transformation).

  1. Which camera parameters are required to determine the viewing transformation (3)?
  2. Which camera parameters are required to determine the view mapping transformation (i.e. from camera coordinates to the canonical frustrum) (3)?
  3. Give one advantage and one disadvantage of clipping in homogenous coordinates (2).
  4. Figure 1 shows a perspective view of a world containing a polyhedron on an infinite plane. The polyhedron contains two lines that are visible, parallel and parallel to the plane. Mark them, explaining your reasons. (4)

CS184 : Foundations of Computer Graphics 1

Figure 2: Polygon clipping question: the dashed rectangles are the clip regions, which are traversed in the order shown by numbers next to each edge. The polygons are traversed in the order given by the two marked vertices.

Clipping

Each of the polygons given in figure 2 is clipped using Sutherland-Hodgeman polygon clipping against the triangle shown: the vertices of the polygon are traversed in the order show, and the polygon is clipped against the edges of the square in the order show. Supply a drawing of the results - there is space in the figure -, with vertices marked to indicate the order in which they are produced (9).

Figure 3 shows a square clip boundary with a single vertex. Nicholls-Lee-Nicholls line clipping is efficient, because it does a case by case analysis of the edges against which a line must be clipped. Given that one vertex of the line is the one shown, draw on top of the figure the clipping cases that would occur for the other vertex (5).

  • Give:

the maximum number of vertices obtained by clipping an n-vertex convex polygon using

Sutherland-Hodgeman against an m-vertex convex polygon in the plane (3) :

one reason Sutherland-Hodgeman polygon clipping fails for clipping a general polygon against a

general polygon (1):

3.one reason parametric line clipping is more efficient than Cohen Sutherland line clipping (1):

4.one disadvantage of Nicholls-Lee-Nicholls line clipping (1):

Cameras and Perspective 2

Figure 5: Polygons for the visibility question

Visibility and Z-buffers

Figure 5 shows a 30 pixel frame buffer, which has a 2 bit z-buffer. The z-value used for a pixel is the z-value at the center point which is truncated to be either 0, 1, 2, or 3. (i.e. z73 becomes z = 3.) The center point is also used (as in class) to decide whether a pixel lies inside a polygon. All polygon vertices lie on the center of their pixels. The z-buffer algorithm here is eccentric: if a new pixel has the same z-value as an existing pixel, the two are averaged. In the figure polygon B is black, polygon W is white and polygon R is red. For each figure, mark the pixels that are pink (i.e. where W and R is averaged. (14)

Polygon scan conversion 4

the "Painters algorithm" sorts polygons by the depth of their center of gravity, and draws the furthest polygon first. Sketch one example where this algorithm fails.

Name one advantage and one disadvantage (other than difficulties with quantization!) of Z-buffers (2)

Figure 6: A model hierarchy; the top figure shows the definitions for a wheel and a body. On the right are renderings for u=0, v=0 and u=180, v=2. Draw the result of rendering for u=90, v=1 in the space provided: u is in degrees

Visibility and Z-buffers 5

Figure 8: The left hand figure shows a box; the numbers are the lengths of the side of the box. On the right hand are two sets of axes, for you to draw different rotations of the box. In this figure, R(x,180) means rotation about the x axis by 180 degrees. Fill in the two cases. You do not need to draw the box to scale, but you do need to fill in the lengths of the edges.

Figure 9: The left hand figure shows a box; the numbers are the lengths of the side of the box. On the right hand are two sets of axes, for you to draw different rotations of the box. In this figure, R(x,90) means rotation about the x axis by 90 degrees. Fill in the two cases. You do not need to draw the box to scale, but you do need to fill in the lengths of the edges.

Rotations 7