• No results found

Graphics 2007/2008 Second Exam

N/A
N/A
Protected

Academic year: 2021

Share "Graphics 2007/2008 Second Exam"

Copied!
6
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Graphics 2007/2008

Second Exam

Thu, Jan 31, 2008, 16:30–18:30

• Do not open this exam until instructed to do so. Read the instructions on this page first.

• You may write your answers in English, Dutch, or German.

• You may not use books, notes, or any electronic equipment (including your cellphone, even if you just want to use it as a clock).

• Please put your student ID on the table so we can walk around and check it during the exam.

• Write down your name and student number on every paper you want to turn in. Additional paper is provided by us. You are not allowed to use your own paper.

• When you hand in your work, have your student ID ready to be checked by the instructor.

• You have 2 hours for this exam. If you finish early, you may hand in your work and leave, except for the first half hour of the exam.

• The test consists of seven problems. The maximum number of points you can score is 20. You need 18 points to get the best possible grade.

1

Dit tentamen is in elektronische vorm beschikbaar gemaakt door de TBC van A–Eskwadraat.

A–Eskwadraat kan niet aansprakelijk worden gesteld voor de gevolgen van eventuele fouten in dit tentamen.

1

(2)

Problem 1: Perspective projection

[1 pt] Subproblem 1.1 (Camera transformation)

Given a camera position and a scene containing an object: What does the gaze vector specify in this context? Assume the center of the object is located at point (1,2,3) and we have the camera placed at position (3,2,1). Calculate the gaze vector for the given situation if we want the object to be placed directly in the center of the image.

[1 pt] Subproblem 1.2 (Perspective transformation)

After multiplication with the perspective transformation matrix Mpand the following homogenization,

the point

 x y z 1

contains the values

 nx/z ny/z n+ f −f nz

1

 .

Show that all points on the near clipping plane n have been projected onto themselves by these operations.

[2 pt] Subproblem 1.3 (Windowing transformation)

In the lecture, the orthographic projection matrix Mo was introduced as the matrix resulting from the multiplication of the following three matrices:

Mo=

m

2 0 0 m212 0 n2 0 n212 0 0 1 0 0 0 0 1

2

r−l 0 0 0

0 t−b2 0 0 0 0 n− f2 0

0 0 0 1

1 0 0 −l+r2 0 1 0 −b+t2 0 0 1 −n+ f2 0 0 0 1

Describe what each of these matrices does. (Note: l, r,t, b, n, f specify the left, right, top, bottom, near, and far plane of the orthographic view volume, respectively, and mxn is the size of the projected image.)

(3)

Problem 2: Hidden surface elimination

[1 pt] Subproblem 2.1

The scene below consists of 4 line segments and a camera view point (i.e. the center of projection COP).

The normal vectors of the segments point to the visible side. The dashed lines are not part of the input, but indicate where the supporting lines of the segments intersect the other segments.

Illustrate the construction of a BSP tree for the situation shown in the image. Important: Illustrate how you build this tree by drawing a new tree for each new node that is added. Use the notation given in the image, i.e. specify the segments using the letters A, B, C, and D. If you have to split up a segment, use the notation A1, A2, C1, and C2, respectively, as indicated in the image.

COP

D

B A

C

A2

A1

C1

C2

[2 pt] Subproblem 2.2

Give a short explanation about how to get the projection order for a given BSP tree and camera view point COPusing the situation in the image and the tree you constructed in the previous subproblem. Give the order in which the segments are drawn based on your tree.

[1 pt] Subproblem 2.3

How do your results from subproblem 2.1 and 2.2 change if the COP is in the center of the far left side of the image?

3

2

(4)

Problem 3: Triangle rasterization

[1 pt] Subproblem 3.1

In the lecture, we used two data structures in the algorithm for triangle rasterization via scan-line conver- sion: The edge table and the active edge table. What does each of these tables contain?

[1 pt] Subproblem 3.2

Look at the image below (note: assume that the scan-line is horizontal and moves vertically from the bottom of the image to the top as illustrated by the black line and the associated arrow). Give the values for the edge table that are stored for scan-line number 2. Give the values for the active edge table that are stored for scan-line number 3.

0 1 2 3 4 5 6 7

0 1 2 3 4 5 6 7 8 9

[1 pt] Subproblem 3.3

Explain how Gouraud shading can be incorporated in the scan-line conversion algorithm.

(5)

Problem 4: Clipping

[1 pt] Subproblem 4.1

Explain how the graph used in the Weiler-Atherton algorithm is constructed.

[1 pt] Subproblem 4.2

Construct this graph for the example given below.

c0

c3 c2

c1

p0

p1 p2

p3 p4

p5

i0 i1

i2

i3

[1 pt] Subproblem 4.3

Explain how the graph is used to determine the resulting polygons.

5

2

(6)

Problem 5: Texture mapping

[2 pt] Give a short description of the following techniques:

• Bump mapping

• Environment mapping

Problem 6: Radiosity

[2 pt] Explain the meaning of the following formula, which is used to calculate the radiosity Biof a patch Ai:

Bi= Ei+ ρi

j

BjFi j

Problem 7: Shadows

[2 pt] What is a stencil buffer and what kind of operations does it support?

Referenties

GERELATEERDE DOCUMENTEN

In the results relating to this research question, we will be looking for different F2 vowel values for trap and dress and/or variability in isolation that does not occur (yet)

Output power (MW) Unit & fuel type Total cost Machinery Train cost HV cost (if applicable) Design Cost Main Works cost Internal / Management costs Extraordinary Expenditure.

• De wavelet coëfficiënten zijn zeer gevoelig voor translaties van het signaal: een kleine verplaatsing kan toch een volledig verschillend patroon bij de wavelet

A–Eskwadraat kan niet aansprakelijk worden gesteld voor de gevolgen van eventuele fouten in dit

However, because agarwood is known across the world by many differ- ent names (such as eaglewood, aloeswood, jinko, gaharu, and oudh), and because it is used or even disguised in

In this chapter a preview is given about the research conducted on the perceived psycho- educational needs of children orphaned by AIDS* who are being cared for

It is consistently seen that reductionist worldviews, political interests and insufficiency of the institutional framework are common threads in the way interactions

Instead of using the attributes of the Max-Tree to determine the color, the Max-Tree node attributes can be analyzed to try to find important changes in the attribute values,