Lecture13-IlluminationShading

Lecture13-IlluminationShading - CS 455 Computer Graphics...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 455 – Computer Graphics Illumination & Shading
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What is a Shading Model? A way to paint the object with light We will discuss the common, heuristic shading models: Diffuse Gouraud Phong Not physically based: hacks that work well in practice and are common on most graphics boards
Background image of page 2
Diffuse Objects For “matte” objects with no shininess Diffuse/matte objects are called Lambertian In general, shading does not vary with viewpoint Example: a piece of paper, chalk board Reflected light is scattered equally in all directions
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Lambertian Surface Obeys Lambert’s Law (from physics) : The color, c , of a surface is proportional to the cosine of the angle between the surface normal and the direction of the light source θ cos rs, unit vecto are and if , cos || |||| || that recall , cos = = l n l n l n l n c θ θ θ n n n l l l
Background image of page 4
Lambertian Surface Lambert’s Law: As the angle ( θ29 between the surface normal ( n ) and the light direction ( l ) increases, the same amount of light ( A ) falls on a larger surface area ( x ) surface is dimmer Diffuse color is independent of the eye position: As you move from the light location, you see more area, but the amount of light reflected at that angle per visible unit area of surface is proportionally less
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Diffuse Lighting Model ) , 0 max( l n = l r c c color Diffuse reflectance color: fraction of light reflected from the surface (RGB) Light color [0,1] (RGB) Ensures positive light, even when θ > 90 What happens if light source is at infinity? Angle between light and the normal Let’s define a lighting model that captures this n l
Background image of page 6
Ambient Term Lambertian model produces black for any surface facing away from the light In reality, light bounces off walls, is scattered in the atmosphere, etc., so surfaces facing away from the light
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/02/2012 for the course C S 455 taught by Professor Jones,m during the Winter '08 term at BYU.

Page1 / 29

Lecture13-IlluminationShading - CS 455 Computer Graphics...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online