Docsity

Presentation on Advanced Rendering Techniques - Slides | CS 431, Papers of Computer Science

Partial preview of the text

Download Presentation on Advanced Rendering Techniques - Slides | CS 431 and more Papers Computer Science in PDF only on Docsity!

CS 431/

Advanced Rendering Techniques

 Dr. David Breen

 University Crossings 149

 Tuesday 6PM → 8:50PM

 Presentation 6  5/15/

Questions from Last Time?

 Sampling Theory

 Fourier Analysis

 Anti-aliasing

 Supersampling Strategies

Illumination and Shading

 The Hall illumination model

 Hall, R. A. and Greenberg D.P., "A Testbed

for Realistic Image Synthesis", IEEE

Computer Graphics and Applications, 3(8),

pp. 10-20, Nov. 1983

 Original ray tracing paper

 Whitted, T., “An Improved Illumination Model

for Shaded Display”, Communications of the

ACM, 23(6), pp. 343-349 (1980)

Discrete Illumination Models

 What occurs when light strikes a surface is

quite complex.

 Continuous process  Light from infinite angle reflected in infinite directions

 We are determining intensity of a pixel with…

 Finite number of point lights  Finite reflections into space  Finite illumination directions

 Hence, we must have a discrete model for

lighting and illumination.

Elements of Lighting at a point

N – The surface normal L – Vector to the light V – Vector to the eye R – Reflection direction

Reflection

 What we need is the amount of light

reflected to the eye

This consists of several components…

Diffuse Reflection

Characteristics

 Since the intensity is the same in every

direction, the only other characteristic is

the angle between the light and the

surface normal. The smaller this angle,

the greater the diffuse reflection:

Lambert’s Law

w L N L N w w’ cos! = w / w ' w = w 'cos! Diffuse reflection decreases intensity by the cosine of the angle between the light and surface normal.

Diffuse and Specular colors

 Typically the colors reflected for diffuse

and specular reflection are different

 Diffuse – Generally the surface appearance

 Specular – The color of bright highlights,

often more white then the surface color

Where do these come from?

 Most surfaces tend to have:

 Deep color, the color of the paint, finish,

interior material, etc.

  • Diffuse Color

 Surface reflection characteristics, varnish,

polish, smoothness

  • Specular Color

Components of the Hall Model

I(!) = k sr

I

lj

(! )F

sr

r, j )(cos" r, j

n j

  • k st
I

lj

(!)F

st

t , j )(cos" t, j

n' j

  • k dr
I

lj

(!)F

dr

(!)(N $ L

j

j

  • k sr
I

sr

(! )F

sr

R

)T

r %sr

  • k st
I

st

(!)F

st

T

)T

t %st

  • k dr
I

a

(! )F

dr

Specular Reflection from Light Sources Specular Transmission from Light Sources Diffuse Reflection from Light Sources Specular Reflection from other surfaces Specular Transmission from other surfaces Ambient Light

Hall Model

Ambient Light

 Ambient light is light with no associated

direction. The term in the Hall shading

model for ambient light is:

 k

dr

is the coefficent of diffuse reflection.

 This term determines how much diffuse

reflection a surface has. It ranges from 0 to 1

(as do most of these coefficients).

k dr I a (! )F dr (!)

Ambient Light

 I

a

(λ) is the spectrum of the ambient light.

 It is a function of the light wavelength λ.

 In nature this is a continuous range. For us

it is the intensity of three values: Red, Blue,

and Green, since that is how we are

representing our spectrum.

 In other words, there are only 3 possible

values for λ. Simply perform this operation

for each color!

k dr I a (! )F dr (!)