+ All Categories
Home > Documents > Illumination Model

Illumination Model

Date post: 22-Feb-2016
Category:
Upload: lowell
View: 28 times
Download: 0 times
Share this document with a friend
Description:
Illumination Model. How to compute color to represent a scene As in taking a photo in real life: Camera Lighting Object Geometry Material Illumination model: Combine all to produce a color. Light source. Camera. material property. Object geometry (shape, size, location). - PowerPoint PPT Presentation
Popular Tags:
18
Illumination Model • How to compute color to represent a scene • As in taking a photo in real life: – Camera – Lighting – Object • Geometry • Material • Illumination model: – Combine all to produce a color Camera Light source Object geometry (shape, size, location) material property
Transcript
Page 1: Illumination Model

Illumination Model

• How to compute color to represent a scene• As in taking a

photo in real life:– Camera– Lighting– Object

• Geometry• Material

• Illumination model:– Combine all to produce a color

CameraLight source

Object geometry (shape, size, location)

material property

Page 2: Illumination Model

Ambient Light

• Simplest model: when all lights are off!• Still sees color! – Why?– How to model?• is the “ambient” light• is the object’s “ambient” material property!

• A “Vector” equation: RGB• Blend, flat, no 3D features

Page 3: Illumination Model

Diffuse Reflection

• Intensity of paper in relation with light sourceIn coming energy: is scattered uniformly in all directions according to the “facing” of the paper

Normal Vectorof the paper

Page 4: Illumination Model

Model Diffuse Reflection• Amount Scattered– Proportion to the angle (θ)

between and – Notice: points away from the surface– All vectors normalized

• Model Diffuse:– Proportional constant: (diffuse coefficient)– Introduce diffuse light source:

Normal: θ Incoming Direction:

Page 5: Illumination Model

Diffuse Lighting

– From object:• -- diffuse material property• -- object geometric property

– From scene:• and -- Light source intensity and direction

– -- is a float – , -- are RGB triples

Normal: θ Incoming Direction:

Page 6: Illumination Model

and Diffuse Lighting

𝐼=( �̂� ∙ �̂�)

𝐼𝑑=𝑘𝑑𝐿𝑑 (𝑁 ∙ �̂� )

Page 7: Illumination Model

Combine: Ambient and Diffuse

kd(1,1,1) kd(0.8) kd(0.6) kd(0.4) kd(0.2)

Page 8: Illumination Model

Look at my White Board Marker!

• Reflection of Light Sources!!

Image credit: Some random site selling random stuff

What are these? “shinning” white stuff?

In coming energy: is scattered mainly in the mirror reflection direction

Visible: scattered energy is a function of how far from mirror reflection direction

Page 9: Illumination Model

Model Specular Reflection

• Visible Amount Scattered– Proportion to the angle (α)

between and – Notice: points away from the surface– All vectors normalized

Reflection Direction of Light:

View Direction:

Normal: Incoming Direction:

θ

α

Page 10: Illumination Model

– Proportional constant: (specular coefficient)

– Specular light source:

• From object:– -- specular material property– -- object geometric property

• From scene:– and -- Light source intensity

and direction– -- is defined by camera– -- is a float – , -- are RGB triples

�̂�

𝑽 �̂� �̂�θ

α

Specular Reflection

But, where does come from??

Page 11: Illumination Model

• Introduce: n – shinningness

Inadequacy of

�̂�

𝑽 �̂� �̂�θα

Need to control drop off rate

α

𝑉 ∙ �̂�

90

Drops off too slowly

Page 12: Illumination Model

and Specular Lighting

𝐼=(𝑉 ∙ �̂� )𝑛

• Three light sources• N different on each object

𝐼 𝑠=𝑘𝑠𝐿𝑠 (𝑉 ∙ �̂� )𝑛

𝑛=1

𝑛=100

0

Page 13: Illumination Model

Combine all:

Scene Composition

n=2 n=10

n=50n=20

Page 14: Illumination Model

– Must computefor each pixel

– Very expensive!!

• Introduce halfway vector ()

�̂�

𝑽 �̂� �̂�θ

α

The Reflection Halfway Vector

𝑽

�̂� �̂�𝑯

Page 15: Illumination Model

The Phong Illumination Model

• All graphics hardware implements (maybe small variation of this mode)– E.g., the H vector �̂�

�̂� �̂�

Page 16: Illumination Model

Evaluating the Phong Model

• Question:– How to improve the model?

• Non-physically based– Based on “observation”– E.g., specularity: as n increase the area under the

curve decreases• Large n => less energy in the scene!

– E.g., “Ambient” term• Color bleeding

Page 17: Illumination Model

Recently : describe/simulate physics• Radiance: Light energy in a direction

– Think river: flow of energy over cross section area• Irradiance: Radiance received from fixed incoming area• BRDF: (material properties)

– Bi-directional Reflectance Distribution Function– How energy reflect across surfaces– Angular and Spectrum dependencies

• Challenges:– Difficult to model correctly– Computationally costly– What is the ultimate goal?

• looks good vs. looks real

Page 18: Illumination Model

Recently: physics only if ..

• As long as it looks good, who cares?– Games, Movies, etc.

• Physics: Looks real– But: does it look “good”?


Recommended