

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Computer Graphics; Subject: Engineering Computer Science; University: University of California - Davis; Term: Fall 1999;
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


ECS 175 OPEN BOOK (and open notes) Final Exam. Sat. December 18, 1999
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.)
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.)
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 ).
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.