程序代写代做代考 Java COMP3421
COMP3421
COMP3421
Hidden surface removal
Local Illumination Solutions
Solution 1
Ambient Coefficients: (1,0,0,1) * (0,0,0,1)
= (0,0,0,1) No ambient reflections (black)
Diffuse Coefficients: (1,0,0,1) * (1,1,1,1)
= (1,0,0,1) Red diffuse reflections possible
depending on angle of light source
Specular Coefficients: (1,1,1,1) * (1,1,1,1)
= (1,1,1,1) White specular reflections
possible depending on angle of light source
and camera
Solution 2
Ambient Coefficients: (1,0,0,1) * (0,0,0,1)
= (0,0,0,1) No ambient reflections (black)
Diffuse Coefficients: (1,0,0,1) * (0,0,1,1)
= (0,0,0,1) No diffuse reflections possible
Specular Coefficients: (1,1,1,1) * (0,0,1,1)
= (0,0,1,1) Blue specular reflections
possible depending on angle of light source
and camera
Solution
See SphereInABoxMyLightingExercise.java
For colour/material mixing ideas see:
http://devernay.free.fr/cours/opengl/material
s.html
Also a table in your textbook.
http://devernay.free.fr/cours/opengl/materials.html