![]() |
![]() |
![]() |
Exam 2 Review Problems--SolutionsHere are partial solutions for the review problems. You can check your answers with them.
Problem 1:
P0 = (0,0,1), P1 = (0,0,3), P2 = (4, 0, 1), P3 = (0,3,1) The four faces are defined by the triangles formed by all possible groups of the three of these vertices. Part a. Find the surface normal for each of the four faces of the object. Normalize the length of the normals to length 1.0.
Normal for surface defined by P0, P1, P2 = (0, -1, 0)
Part b. Suppose you want to shade this object using Gouraud shading. Calculate the normals that would be associated with each vertex for this type of shading. The normal for the vertex is calcuated as the sum of the normals for each face meeting at the edge, divided by the length of that sum. For the point P0, this gives: (-1/sqrt(3), -1/sqrt(3), -1/sqrt(3)) For the point P1, this gives: (-0.62/1.1, -0.49/1.1, .77/1.1) = (-.56, -.44, 0.698)
Problem 2:
The base is defined by: (0,0,200), (0,0,100), (100,0,100), (100,0,200)
Part a: What set of 3D transformations would move the pyramid to a position defined by the following coordinates: The base is defined by: (100,0,0), (200, 0,0), (200, -100, 0), (100, -100, 0)
(Not necessarily in the same order as the above specification).
The following transformations will work:
Part b:Draw the final position of the pyramid that results from applying the following sequence of transformations: T(-50, 0, -150) S(2.0, 2.0, 2.0) Ry(45.0) (Note this was intended so that the Translation was actually done first, so M = RyST) The base is defined by: (0,0, 100*sqrt(2)), (100*sqrt(2), 0, 0), (0,0,-100*sqrt(2)), (-100*sqrt(2), 0, 0)
Problem 3:
The Base is defined by: (100, 200, 200), (100, 100, 200), (200, 100, 200), (200, 200, 200)
Part a: Suppose the pyramid is projected onto a 2-D projection plane that coincides with the XY plane. Assuming orthographic projection is used, defive the (x,y) coordinates of each of the five vertices onto this projection plane. In the order specified above: P0 = (100, 200)
Part b: Now assume that perspective projection is used and that the center of projection is at the origin of the coordinate system and the projection plane is a distance of 10 from the origin along the Z axis (and parallel to the XY plane). Derive the (x,y) coordinates of the projections of each of the five vertices onto the projection plane. xprime = x/(z/d); yprime = y/(z/d) In the order specified above: P0 = (5,10)
Problem 4:
ka = 0.5 Ld = 1000 La = 100 Ls = ks = 0 d (distance to light source) = 10 Attenuation coeeficients: a = 0, b = 0.1, c = 0.09 Calculate the intensity of the light reflected from the surface according to the Phong reflection model. How would this intensity change if the angle between N and L were decreased? How would it change if kd were increased? I = (1/(a + bd + cd*d))(kdLd(l . n)) + kaLa = (1/(1 + 9))(500(1/sqrt(2))) + 50 = 50(1 + 1/sqrt(2)) The light intensity increases as the angle between N and L decreases. The light intensity increases as kd increases. Home | | Syllabus | | Assignments | | Documentation
Constance Royden--croyden@mathcs.holycross.edu
|