Docsity

Final Exam with Solution for Computer Graphics | CSE 167, Exams of Computer Graphics

Toggle sidebar
bg1
NAME: page 1 of 11
-e)
Final
Winter, 2006
1. Write the result of the following cross product:
0
1
0
!
"
#
#
#
$
%
&
&
&
!!'!!
0
0
(1
!
"
#
#
#
$
%
&
&
&
!!=!!
y!'!(!
z!=!
-x
For each of the following, circle True or False:
2. The dot product of two perpendicular vectors is always zero. True False
3. The cross product of two unit-length vectors always has unit length. True False
4. The dot product of a vector with itself is always 1. True False
5. The cross product of a vector with itself is always 0. True False
6. An eye is at point e, looking flat-on at
a disk. The disk’s center is at point d,
and p is a point on the edge of the
disk. Write an expression that is true
if a point x is obscured by the disk.
(Hint: use dot products to determine
cosines of view angles.)
7. Given a 3D triangle with counterclockwise
vertices a, b, and c, write expressions for
the normal
!
n
and offset d of the triangle’s
plane from the coordinate origin.
!
n=
d=
cos-1( ((x-e)/|x-e|) . ((d-e)/|d-e|) ) < cos-1( ((p-e)/|p-e|) . ((d-e)/|d-e|) ) or equivalent
Bonus given for also checking distance: (x-e).(d-e)/|d-e| > |d-e|
(b-a)X(c-a)/|(b-a)X(c-a)| or equivalent
n.a or n.(a-o) or equivalent
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Final Exam with Solution for Computer Graphics | CSE 167 and more Exams Computer Graphics in PDF only on Docsity!

  • e)

Final

Winter, 2006

  1. Write the result of the following cross product:

0 1 0

!!=! y !!'!(! z !=! - x

For each of the following, circle True or False:

  1. The dot product of two perpendicular vectors is always zero. True False
    1. The cross productThe dot product of a vector with itself is always 1. of two unit-length vectors always has unit length. TrueTrue FalseFalse
  2. The cross product of a vector with itself is always 0. True False
  3. An eye is at point a disk. The disk’s center is at point e , looking flat-on at d , and p is a point on the edge of the disk. Write an expression that is true if a point x is obscured by the disk. (Hint: use dot products to determine cosines of view angles.)
  4. Given a 3D triangle with counte vertices a , b , and c , write expressions forrclockwise the normal! n and offset d of the triangle’s plane from the coordinate origin. n! = d =

cos-^1 ( ((x-e)/|x-e|).^ ((d-e)/|d-e|) ) < cos-^1 ( ((p-e)/|p-e|).^ ((d-e)/|d-e|) ) or equivalent

Bonus given for also checking distance: (x-e).(d-e)/|d-e| > |d-e|

(b-a)X(c-a)/|(b-a)X(c-a)| or equivalent n.a or n.(a-o) or equivalent

  1. Given a plane specified by a normal n !and offset d , and given a sphere with origin p and radius r , write expressions that describe whether:
    • The sphere is completely above the plane
    • The sphere intersects the plane
    • The sphere is completely below the plane
  2. A hawk is flying with world matrix H. A rabbit is hiding under a bush. The rabbit has world matrix R , the bush has world matrix B. The rabbit’s nose is at point n in the rabbit’s coordinates. Write an expression for the position of the rabbit’s nose in the hawk’s coordinates.

H-^1 R n

  1. A windmill is modeled in its final position in world coordinates as shown. Write a transformation that could be applied to just the windmill vanes, that will rotate them clockwise 5º so that they pivot about their axle as shown. Express the transformation as a composition of 2D translation T ( x , y ) and rotation R ( angle ), giving numbers for the parameters of the transformations you use. T(4,5) R(-5) T(-4,-5)

n! n.p – d > r

  • r <= n.p – d <= r

n.p – d < - r

  1. For the traditional graphics pipeline: Select the correct spaces list them in the order that we expect each vertex to go through in the traditional transformation process: a. Camera Space b. Image Space c. Inner Space d. Normalized View Space e. f. Object SpaceOuter Space g. Projective Space h. World Space Fill in the letters here: 1. f 2. h 3. a 4. d 5. b
  2. Somebody gives you several matrices, identifying them as follows: J - Viewport Transform K - Camera Transform L - World Transform M - Projection Matrix Write the full transformation from object coordinates to pixels, expressed using these matrices. J M K-^1 L
  3. Fill in the drawings below to illustrate using the deCasteljau algorithm to evaluate the Bézier segment at t=0.75 : Bez (.75, p 0 , p 1 , p 2 , p 3 ) Step 1 Step 2 Step 3

A Catmull-Rom spline segment can be expressed in matrix form as:

x ( t ) = (^) [ p 0 p 1 p 2 p 3 ]

t^3 t^2 t 1

  1. Express the Catmull-Rom segment as a weighted average of the control points:

x ( t ) = ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) p 0 + !!!!!!!!!! (^) ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) p 1 + !!!!!!!!!! (^) ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) p 2 + !!!!!!!!!! ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) p 3

  1. Express the Catmull-Rom segment as a polynomial in t. :

x ( t ) = (^) ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) t^3 + !!!!!!!!!! (^) ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) t^2 + !!!!!!!!!! (^) ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!) t + !!!!!!!!!! ( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!)

  1. Given the above multi-segment Bézier curve, that ranges from x ( 0 ) = p 0 to x ( 1 ) = p 12 fill in the following expression for a point at x (3/8): x^! "# 83 $ %& = Bez (!!!!!!!!!,!! p !!!!!! ,!! p !!!!!! ,!! p !!!!!! ,!! p !!!!!! ) - .5t^3 + t^2 - .5t 1.5t^3 - 2.5t^2 + 1
  • 1.5t^3 + 2t^2 + .5t .5t^3 – .5t^2
  • .5p 0 + 1.5p 1 – 1.5p 2 + .5p 3 p 0 - 2.5p 1 + 2p 2 - .5p 3
  • .5p 0 +.5p 2 p 1

We’re modeling a slice of pizza. This diagram shows the tessellation topology. In the code below, fill in the loop bounds and triangle point indexes to properly construct the indexed triangle set.

  1. // each row of triangles, not counting the top fan for (i = 0; i < 3 ; i++) { // the triangles in each row for (j = 0; j < 5 ; j++) {
  2. // lower triangle addTriangle( 6i + j , 6i + j + 1 , 6i + j + 7 ); // upper triangle addTriangle( 6i + j , 6i + j + 7 , 6i + j + 6 ); } }
  3. // the triangles in the top fan for (j = 0; j < 5 ; j++) { addTriangle( 18 + j , 19 + j , 24 ); }
  4. When constructing an indexed triangle set model to approximate a smooth surface , which of these techniques help minimize polygonal artifacts? Circle all that apply. a. Adaptive tessellation b. Backface culling c. Facet normals d. e. Uniform tessellationVertex normals
  1. Given the 2D triangle with per-vertex colors as shown, compute the RGB color at point p. Write the actual numbers, not a symbolic expression. (Use linear interpolation rather than perspective-correct interpolation) (2/3, 2/3, 2/3)
  2. The diagram shows a collection of 2D triangles that we’ve requested to draw, which don’t all lie onscreen. After culling and clipping the triangles to the screen region, how many triangles will be actually be scan converted?

12

  1. Which of the following techniques will reduce Mach banding? Circle all that apply a. Arc length parameterization b. Phong shading c. Jittered sampling d. Mipmapping
  2. This diagram illustrates a geometric construction of the reflection direction of a light ray, according to the law of reflection ! i =! r. Express R !in terms of the unit- length light direction L !and unit-length surface normal n !. (Hint: The height of the construction is twice the height of the projection of L !or R !onto n !)

! r

! i L!! R

n!

L!

2(L.n)n - L

  1. Fill in the following squares to illustrate 16X supersampling patterns.
  2. Which of the following effects can be achieved with classic ray tracing (but not with classic pipeline rendering)? Circle all that apply a. Soft Shadows b. Reflection c. Fog d. Cartoon shading e. f. Depth of FieldTexture mapping g. Refraction h. Environment mapping
  3. Which of the following effects that can be achieved with stochastic ray tracing (but not with classic ray tracing)? Circle all that apply a. Soft Shadows b. c. ReflectionFog d. Cartoon shading e. Displacement Mapping f. Caustics g. Depth of Field
  4. Which of the following techniques will be the most effective in speeding up ray tracing a scene with 1,000,000 triangles? Choose the best answer a. Fresnel equations b. Barycentric coordinates c. Hierarchical grids d. Pixel supersampling e. Multum in parvo

Uniform Random Jittered

  1. Which of the following are aliasing problems? Circle all that apply a. b. Anisotropic reflectionBlinn illumination c. Crawlies d. Jaggies e. Mach bands f. Moiré patterns g. Roundoff error also OK h. Strobing i. Z fighting also OK
  2. Match the appropriate scene management technique to the definition/result a. Level of detail b. Portals c. Bounding volume culling d. Instancing __d__Multiple copies of an object or sub-tree _a Objects rendered with fewer triangles when farther away __b_Removal of invisible geometry for building interiors __c_Removal of geometry outside of the viewable space of the camera Match the descriptions to the appropriate concept. a. Replaces aliases with noise b. Relates incoming light to outgoing light at a surface c. d. Primitive for splattingMinimum sampling frequency to avoid aliasing e. Component of procedural texture effects like wood or marble f. Avoids point-sampling artifacts by using pre-filtered map data g. h. Requires preliminary rendering pass to generate map dataAliasing due to temporal point sampling
  3. c Surfels
  4. f Mipmapping
  5. d Nyquist limit
  6. g Shadow Mapping
  7. e Perlin Noise
  8. h Strobing
  9. b BRDF
  10. a Jittered sampling BONUS QUESTION: Who invented the Z-Buffer, and what does he do now? Ed Catmull, founder/CEO of Pixar