| week9-1 |
For this paper/pencil/calculator exercise, assume the
following:
- There is one positional light, with these properties:
- Diffuse Intensity (RGB) = (1.0, 0.8, 0.6) ;
Specular Intensity
(RGB) = (0.9, 0.85, 0.2);
Ambient Intensity (RGB) = (0.6, 0.4, 0.4)
- light position (x,y,z) = (4, 12, 2)
- eye position (x,y,z) = (-3, 2, 5)
- There is a global ambient light (RGB) = (0.2, 0.2, 0.2)
- There is a facet whose color (RGB) will be caculated using
the Phong Lighting Model and these facts:
- a vertex on the facet has coordinates = (0,0,0)
- the normal vector to the facet at this vertex = <-1, 1, 1>
- the material of the facet has these properties:
- material diffuse coefficient (RGB) = (0.8, 0.5, 0.3)
- material specular coefficient (RGB) = (0.8, 0.5, 0.3)
- material ambient coefficient (RGB) = (0.8, 0.5, 0.3)
- material Phong exponent = 57.0
- What is the vector
s from the vertex to the light source?
- What is the length of vector
s ?
- What is the normalized vector Us
?
- What is the vector
v from the vertex to the eye?
- What is the vector h
(the vector halfway between vector s
and vector v?
- What is the length of vector
h ?
- What is the normalized vector Uh?
- What is the vector m
(the vector normal to the face at the vertex)?
- What is the length of vector
m ?
- What is the normalized vector Um
?
- What is the value of Lambert?
- What is the value of Idiffuse (RGB) ?
- What is the value of Phong?
- What is the value of Phong f
- What is the value of Ispecular (RGB) ?
- What is the value of Iambient (RGB) ?
- Finally, what is the value of I (RGB) at
this vertex?
|