-- Final Practice Solutions
8. Blinn-Phong shading can be used to handle reflections of a shiny surface as well (specular lighting). Its equation is:
L=(R,G,B)=dImax(0,n⋅β)+sImax(0,n⋅b)^x
Here s represents shininess coefficients, b is the angle bisector between β and v, and x is a material property also controlling the global shininess of the material usually its value ranges from 100 (mildly shiny) to 10000 (act like a mirror).
An example similar to our in-class exercise (just take out Lambient):
A pixel's color value comes from a triangle which acts as red diffusely and green specularly. Suppose we have a light source with intensities (.7,.5,.3), and that n⋅β=.6 and n⋅b=.9. Let x=5000. What would be the final color of the pixel?
d = (1,0,0)
s = (0,1,0)
I = (.7,.5,.3)
n.l = .6
n.b = .9
x = 5000
L = (R,G,B)= (1,0,0)(.7,.5,.3)(0,.6) + (0,1,0)(.7,.5,.3)(0,.9)^5000= (.42,0,0)+(0,.5,0)(.9)^5000 = (.42,0,0)
(
Edited: 2019-05-19)
8. Blinn-Phong shading can be used to handle reflections of a shiny surface as well (specular lighting). Its equation is:
L=(R,G,B)=dImax(0,n⋅β)+sImax(0,n⋅b)^x
Here s represents shininess coefficients, b is the angle bisector between β and v, and x is a material property also controlling the global shininess of the material usually its value ranges from 100 (mildly shiny) to 10000 (act like a mirror).
An example similar to our in-class exercise (just take out Lambient):
A pixel's color value comes from a triangle which acts as red diffusely and green specularly. Suppose we have a light source with intensities (.7,.5,.3), and that n⋅β=.6 and n⋅b=.9. Let x=5000. What would be the final color of the pixel?
d = (1,0,0)
s = (0,1,0)
I = (.7,.5,.3)
n.l = .6
n.b = .9
x = 5000
L = (R,G,B)= (1,0,0)(.7,.5,.3)(0,.6) + (0,1,0)(.7,.5,.3)(0,.9)^5000= (.42,0,0)+(0,.5,0)(.9)^5000 = (.42,0,0)