Docsity

Homework 3 Sample Questions - Open Source Software - Fall 2004 | CSCI 4967, Assignments of Computer Science

Toggle sidebar
bg1
Homework 3
CSCI-4967: Three-Dimensional Computer Graphics
Fall 2004
Due: Monday, October 18, 2004
Homeworks are due at the beginning of lecture on Monday, October 18. Late homeworks
will receive no credit. Homeworks are to be done individually and will be graded on the basis of
correctness, clarity, and legibility. Show the steps in your work where appropriate. Each question
is worth 10 points, for a total of 50 points.
Be sure to write your name,section number, and RPI email address on your homework
submission.
1. (a) The combined illumination model can be described by the following equation:
I=ke+kaIa+Pi1
(a0+a1di+a2d2
i)[Ili[kd(N.Li) + ks(V.Ri)ns]].
The variables used are: I , a0, a1, a2, di, ke, ka, kd, ks, ns, Ia, Ili, Li, Ri, N, V .
Which of the quantities above are affected if :
•the viewer position changes?
•the object material changes?
(b) Under what circumstances can Land Vbe assumed constant? How does the illumination
model using the halfway vector Hsimplify the shading equations?
(c) Describe a scene where the difference between Gouraud and Phong shading would be
noticeable.
2. Suppose that a viewer is at coordinates (0, 0, 1) (at the tip of the Zunit vector) in 3-space,
and is looking at the infinite XY coordinate plane, which is being illuminated by a single light
source lying somewhere above this plane. Assume that we are using the Phong illumination
model, there is no emission from the plane and there is no ambient reflection. We assume
that the diffuse and specular coefficients of the plane are both nonzero.
(a) Suppose that the light source lies at the point (3, 0, 4). What are the coordinates of the
point on the XY plane with the brightest diffuse reflection?
(b) What are the coordinates of the point on the XY plane with the brightest specular
reflection?
3. Consider computing the normal vectors to a surface, as required for lighting calculations.
(a) The surface of an ellipsoid centered at the origin is described by the equation
f(x, y, z) = (x/rx)2+ (y/ry)2+ (z/rz)2−1 = 0.
Compute and express the outward normal to this ellipsoid in terms of x, y, z.
pf2

Partial preview of the text

Download Homework 3 Sample Questions - Open Source Software - Fall 2004 | CSCI 4967 and more Assignments Computer Science in PDF only on Docsity!

Homework 3

CSCI-4967: Three-Dimensional Computer Graphics

Fall 2004

Due: Monday, October 18, 2004

Homeworks are due at the beginning of lecture on Monday, October 18. Late homeworks will receive no credit. Homeworks are to be done individually and will be graded on the basis of correctness, clarity, and legibility. Show the steps in your work where appropriate. Each question is worth 10 points, for a total of 50 points.

Be sure to write your name, section number, and RPI email address on your homework submission.

  1. (a) The combined illumination model can be described by the following equation: I = ke + kaIa + ∑ i 1 (a 0 +a 1 di+a 2 d^2 i ) [Ili^ [kd(N.Li) +^ ks(V.Ri)

ns (^) ]].

The variables used are: I, a 0 , a 1 , a 2 , di, ke, ka, kd, ks, ns, Ia, Ili , Li, Ri, N, V. Which of the quantities above are affected if :

  • the viewer position changes?
  • the object material changes? (b) Under what circumstances can L and V be assumed constant? How does the illumination model using the halfway vector H simplify the shading equations? (c) Describe a scene where the difference between Gouraud and Phong shading would be noticeable.
  1. Suppose that a viewer is at coordinates (0, 0, 1) (at the tip of the Z unit vector) in 3-space, and is looking at the infinite XY coordinate plane, which is being illuminated by a single light source lying somewhere above this plane. Assume that we are using the Phong illumination model, there is no emission from the plane and there is no ambient reflection. We assume that the diffuse and specular coefficients of the plane are both nonzero.

(a) Suppose that the light source lies at the point (3, 0, 4). What are the coordinates of the point on the XY plane with the brightest diffuse reflection? (b) What are the coordinates of the point on the XY plane with the brightest specular reflection?

  1. Consider computing the normal vectors to a surface, as required for lighting calculations.

(a) The surface of an ellipsoid centered at the origin is described by the equation f (x, y, z) = (x/rx)^2 + (y/ry)^2 + (z/rz )^2 − 1 = 0. Compute and express the outward normal to this ellipsoid in terms of x, y, z.

(b) In parametric form, the ellipsoidal surface can be written: x = rx cos φ cos θ, −π/ 2 ≤ φ ≤ π/2, −π ≤ θ ≤ π y = ry cos φ sin θ, −π/ 2 ≤ φ ≤ π/2, −π ≤ θ ≤ π z = rz sin φ, −π/ 2 ≤ φ ≤ π/ 2 Compute the outward normal to this surface.

  1. (a) Prove that for the Bezier curve with n + 1 control points p 0 , p 1 ,... , pn, the derivative at the first control point is n(p 1 − p 0 ). (b) Suppose that we join two Bezier curves of degree 2, using the control point sequences p 0 , p 1 , p 2 and p 2 , p 3 , p 4 respectively. What conditions must be satisfied by these five points for the combined curve to have C^1 parametric continuity at the point at which they are joined? (c) Determine the Bezier blending functions for a Bezier curve with five control points.
  2. (a) Let the number of control points for a B-spline curve be 10, and the number of knot points be 15. What is the order of the resulting B-spline curve? What is its degree? How many control points determine the shape of the curve at any point along it? (b) B-splines possess a property called local support. What is local support, and why is this property desirable? (c) What is a rational parameterization? Give an example of a shape that has a rational parameterization, but no polynomial parameterization.