lecture 10: sphere illumination examplescs410/yr2019fa/more...ex15 same as example 14 but with red,...
TRANSCRIPT
Lecture 10:Sphere Illumination Examples
October 3, 2019
Overview• This was not a PowerPoint based lecture
• Instead, examples using SageMath notebook cs410lec08n01.
• However, images from the preparation for thelecture were captured in advance and arepresented here as a partial record.
• Keep in mind the images from lecture are gone, so what is here is close but not a full match.
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 2
Summary of Examples
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 3
Example DescriptionEx00 The defaults with two lights sources and a grey sphere in the center of the field of viewEx01 Single white light source at the eye position. No ambient lightEx02 Single white light source at the eye position, turn up the emission on the light to 2.0Ex03 Same as example 01 but with white ambient light added and 0.7 ka valuesEx04 Same as example 01 but with light moved to the left of the sphere but light at 1.5Ex05 Same as example 02 but with light moved to upper left and behind and ambient at 0.5Ex06 Same as example 05 but with sunliight yellow at (2.0, 2.0, 1.0)Ex07 Same as example 06 but with light directly behind the sphere and ambient at 1.0Ex08 Same as example 07 but with light at (25, 400, -1200)Ex09 Single yellow light source at the eye position illuminating a grey sphere, no ambientEx10 Single white light source at the eye position illuminating a yellow sphere, no ambientEx11 Same as ex10 but adding a blue reflectance only for a strong added ambient componentEx12 At red, green and blue light source all at the eye position, no ambient lightEx13 Now spread light along the horizontal axes, red -40 and blue +40Ex14 Same as example 13 but add in white ambient light of 1.0 with ka of 0.35Ex15 Same as example 14 but with red, green and blue lights turned up to 10.0Ex16 Same as example 15 buth with kr constants reduced by a factor of ten to 0.07Ex17 Same as example 13 but with the green light source inside the sphereEx18 Same as example 17 both with white light sources and ambient dialed back to 0.1Ex19 Same as example 18 but remove test on light source surface normal dot product signEx20 Off axis wide angle with eye 5 units from radius 4 sphere center. Bounds plus minus 4 with near only -2
Base Case: Example 00
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 4
The defaults with two lights sources and a grey sphere in the center of the field of view
Base Case: Example 01
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 5
Single white light source at the eye position. No ambient light
Base Case: Example 02
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 6
Single white light source at the eye position, turn up the emission on the light to 2.0
Base Case: Example 03
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 7
Same as example 01 but with white ambient light added and 0.7 ka values
Base Case: Example 04
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 8
Same as example 01 but with light moved to the left of the sphere but light at 1.5
Base Case: Example 05
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 9
Same as example 02 but with light moved to upper left and behind and ambient at 0.5
Base Case: Example 06
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 10
Same as example 05 but with sunlight yellow at (2.0, 2.0, 1.0)
Base Case: Example 07
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 11
Same as example 06 but with light directly behind the sphere and ambient at 1.0
Base Case: Example 08
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 12
Same as example 07 but with light at (25, 400, -1200)
Base Case: Example 09
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 13
Single yellow light source at the eye position illuminating a grey sphere, no ambient
Base Case: Example 10
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 14
Single white light source at the eye position illuminating a yellow sphere, no ambient
Base Case: Example 11
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 15
Same as ex10 but adding a blue reflectance only for a strong added ambient component
Base Case: Example 12
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 16
A red, green and blue light source all at the eye position, no ambient light
Base Case: Example 13
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 17
Example 12 but spreading light sources along the horizontal axes, red -40 and blue +40
Base Case: Example 14
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 18
Same as example 13 but add in white ambient light of 1.0 with ka of 0.35
Base Case: Example 15
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 19
Same as example 14 but with red, green and blue lights turned up to 10.0
Base Case: Example 16
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 20
Same as example 15 buth with krconstants reduced by a factor of ten to 0.07
Base Case: Example 17
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 21
Same as example 13 but with the green light source inside the sphere
Base Case: Example 18
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 22
Same as example 17 but with white light sources and ambient dialed back to 0.1
Base Case: Example 19
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 23
Same as example 18 but remove test on light source surface normal dot product sign.
Note the rendering is NOT correct.
Base Case: Example 20
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 24
Off axis wide angle with eye 5 units from radius 4 sphere center. Bounds plus minus 4 with near only -2Note the sphere no longer appears round.
One More Thing
10/4/19 CSU CS410 Fall 2019, © Ross Beveridge 25
I forgot to mention in lecture, or demonstrate, that if you set the width and height to 8 orless the SageMath notebookcreates a 3D illustration of thescene. This includes the image plane (blue), eye location (red), the rays leaving the image plane, and the sphere. Also, the light sources are shown as spheres rendered in the color of the light source.