|
Main /
W5Written Homework 5Due at 9:30am, November 14th Question 1: Bezier Curves / DeCasteljau Algorithm
Question 2: Bezier curves, continuity
Question 3: B-SplinesWe will use the notation as in the text (see 15.6) where blending function i is defined to have its non-zero "range" begin at i. Consider a uniform, quadratic B-Spline (k=3) like on page 337 of Shirley. We will start numbering the points from 0 to n-1, so that the knot values are [0,1,...n+2]. (note: this is different from the book since in the book most things begin at 1). We will make a curve with 7 control points. The points are at (0,0), (1,1), (2,3), (3,3), (4,2), (5,2), (6,0). Therefore, the curve is defined over the range t=2 to 6 (since we started at zero.
Question 4: Matrix Form of B-SplinesIf you were to encode the Quadratic (k=3) B-Spline as a matrix, what would the matrix be? Question 5: Local LightingIn the scene below, there is a single directional light shining downward (the negative Y direction). We are looking at a single point at the origin, and that point is on a polygon rotating around the z axis (which is pointing towards you in the picture). Notice that the angle is measured clockwise (so in the picture A is 45 degrees). ![]() Suppose that the light has intensity 1 for its diffuse and specular components, and .5 for its ambient component. The light is white. If the material of the polygon has diffuse color red (1,0,0), specular color green (0,1,0) and ambient color blue (0,0,1), what color would the object be when: You can use either the half-angle or the relfectance vector for the specular component. Be sure to state which one you do (since you get different answers)
|