Final Exam for Computer Graphics | ECS 175, Exams of Computer Graphics

Material Type: Exam; Class: Computer Graphics; Subject: Engineering Computer Science; University: University of California - Davis; Term: Fall 1999;

Typology: Exams

Pre 2010

Uploaded on 07/31/2009

koofers-user-1b0-3
koofers-user-1b0-3 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECS 175 OPEN BOOK (and open notes) Final Exam. Sat. December 18, 1999
1. Ray Tracing a sphere (9 points)
A sphere Sof radius 1.0 with center at (0., 0., -2.) is viewed in perspective from the viewpoint
(0., 0., 0.), with the view plane at z= -1., and the viewing direction along the negative zaxis. The
512 by 512 pixel window is mapped to the range -1. x1., −1. ≤ y 1. on the view plane.
a) Given integers i and jrepresenting respectively the column and row of a pixel in the raster
image, show how to find the corresponding point (x,y, -1.) on the view plane. (Complete formula
required for full credit.)
b) Show how to determine whether the ray from the viewpoint through the point (x0,y0, -1.) inter-
sects the sphere S, and, if it does, the location of the first intersection point. (Complete formulas
required for full credit.)
c) Show how to shade (in black and white) a pixel (i,j) whose ray does intersect S, including the
contributions of ambient illumination, and of diffuse reflection of directional illumination from a
point light source “at infinity” in the direction (0., 1., 0.). (You may set any illumination and
reflectivity information not specified, or leave it as unspecified constants. Complete formula
required for full credit.)
2. Distributed Ray Tracing (4 points)
In distributed ray tracing, multiple ray trees are traced per pixel, and the resulting colors are
averaged. Describe how to vary the traced rays to produce the following effects:
a) anti-aliasing
b) motion blur
c) partial shadows from area light sources (penumbras).
d) “glossy” reflections from smooth, but not perfectly smooth, surfaces.
(See reverse side for questions 3 and 4.)
pf2

Partial preview of the text

Download Final Exam for Computer Graphics | ECS 175 and more Exams Computer Graphics in PDF only on Docsity!

ECS 175 OPEN BOOK (and open notes) Final Exam. Sat. December 18, 1999

  1. Ray Tracing a sphere (9 points)

A sphere S of radius 1.0 with center at (0., 0., -2.) is viewed in perspective from the viewpoint (0., 0., 0.), with the view plane at z = -1., and the viewing direction along the negative z axis. The 512 by 512 pixel window is mapped to the range -1. ≤ x ≤ 1 ., − 1. ≤ y ≤ 1. on the view plane.

a ) Given integers i and j representing respectively the column and row of a pixel in the raster image, show how to find the corresponding point ( x , y , -1.) on the view plane. (Complete formula required for full credit.)

b ) Show how to determine whether the ray from the viewpoint through the point ( x 0 , y 0 , -1.) inter-

sects the sphere S , and, if it does, the location of the first intersection point. (Complete formulas required for full credit.)

c ) Show how to shade (in black and white) a pixel ( i , j ) whose ray does intersect S , including the contributions of ambient illumination, and of diffuse reflection of directional illumination from a point light source “at infinity” in the direction (0., 1., 0.). (You may set any illumination and reflectivity information not specified, or leave it as unspecified constants. Complete formula required for full credit.)

  1. Distributed Ray Tracing (4 points)

In distributed ray tracing, multiple ray trees are traced per pixel, and the resulting colors are averaged. Describe how to vary the traced rays to produce the following effects:

a ) anti-aliasing b ) motion blur c ) partial shadows from area light sources (penumbras). d ) “glossy” reflections from smooth, but not perfectly smooth, surfaces.

(See reverse side for questions 3 and 4.)

  1. Piecewise Cubic Curves (6 points)

Given the points A = (0., 0.), B = (1., 1.) and C = (2., 0.),

find the equation for a C^1 piecewise cubic 2D curve f ( t ), defined for 0 ≤ t ≤ 2, so that f (0) = A , f (1) = B , and f (2) = C , and also with the derivative conditions f ′(0) = (1., 0.), f ′(1) = (1., 0.), and f ′(2) = (1., -2.). Give a complete formula for f ( t ).

  1. Clipping and Projection (4 points)

Suppose the view point is at (0., 0., 0.), the view plane is at z = -1., the viewing direction is along the negative z axis (so that the view plane normal is (0., 0., 1.) ), the near clipping plane is at z = -1., the far clipping plane is at z = -10., and the viewing window is for the range -1. ≤ x ≤ 1 ., − 1. ≤ y ≤ 1. on the view plane. The line segment PQ is from P = (4., -2., -8.) to Q = (10., -2., -8.).

a ) What is the clipped part of the line PQ that lies within the perspective view volume. b ) What is the projection on the view plane of the clipped part of the line PQ.

A

B

C