Lighting affects appearance. Light Source emits photons Photons travel in a straight line When they hit an object they: bounce off in a new direction.

Slides:



Advertisements
Similar presentations
OpenGL Course Notes Chapter 5: Lighting Jim Mims, Spring 2009.
Advertisements

Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
1 Graphics CSCI 343, Fall 2013 Lecture 18 Lighting and Shading.
Announcements Project 2 due today Project 3 out today –demo session at the end of class.
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Basic Principles of Surface Reflectance
Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Lighting and Illumination Lighting is the major problem in computer graphics, for either realism or real-time compositions- harder than modeling Consider.
Computer Vision - A Modern Approach Set: Radiometry Slides by D.A. Forsyth Radiometry Questions: –how “bright” will surfaces be? –what is “brightness”?
Light Issues in Computer Graphics Presented by Saleema Amershi.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2008 Tamara Munzner Lighting/Shading II Week.
Image Formation (approximately) Vision infers world properties form images. So we need to understand how images depend on these properties. Two key elements.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Stefano Soatto (c) UCLA Vision Lab 1 Homogeneous representation Points Vectors Transformation representation.
Image Formation (approximately) Vision infers world properties form images. So we need to understand how images depend on these properties. Two key elements.
Radiometry, lights and surfaces
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
7M836 Animation & Rendering
Basic Principles of Surface Reflectance
© 2004 by Davi GeigerComputer Vision February 2004 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Lighting and Shading Week.
Image formation 2. Blur circle A point at distance is imaged at point from the lens and so Points a t distance are brought into focus at distance Thus.
© 2003 by Davi GeigerComputer Vision September 2003 L1.1 Image Formation Light can change the image and appearances (images from D. Jacobs) What is the.
Basic Principles of Surface Reflectance Lecture #3 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Specular Reflections from Rough Surfaces Lecture #4 Thanks to Shree Nayar, Ravi Ramamoorthi, Pat Hanrahan.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
LIGHTING JEFF CHASTINE 1. WHAT IS LIGHT? A very complex process Find a dark area – how is it being lit? Light bounces (mirrors, shiny objects) Light refracts.
Illumination.
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
CS 445 / 645: Introductory Computer Graphics
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
Analysis of Lighting Effects Outline: The problem Lighting models Shape from shading Photometric stereo Harmonic analysis of lighting.
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
Capturing light Source: A. Efros.
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Taku KomuraComputer Graphics Local Illumination and Shading Computer Graphics – Lecture 10 Taku Komura Institute for Perception, Action.
Steve Sterley. Real World Lighting Physical objects tend to interact with light in three ways: Absorption (black body) Reflection (mirror) Transmission.
CSE 381 – Advanced Game Programming GLSL Lighting.
Properties of Reflective Waves Flat Mirrors. Light travels in a straight line Some light is absorbed Some light is redirected – “Reflected”
Illumination.
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Illumination and Shading
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
RENDERING Introduction to Shading models – Flat and Smooth shading – Adding texture to faces – Adding shadows of objects – Building a camera in a program.
Specular Reflection Lecture 27 Mon, Nov 10, 2003.
University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Shading.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Local Illumination and Shading
Cornell CS465 Spring 2004 Lecture 4© 2004 Steve Marschner 1 Shading CS 465 Lecture 4.
Where We Stand So far we know how to: –Transform between spaces –Rasterize –Decide what’s in front Next –Deciding its intensity and color.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
Computer Graphics Lecture 25 Fasih ur Rehman. Last Class Shading.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Understanding the effect of lighting in images Ronen Basri.
1 CSCE 441: Computer Graphics Lighting Jinxiang Chai.
Computer Graphics: Illumination
Shading CS 465 Lecture 4 © 2004 Steve Marschner • 1.
Radiometry (Chapter 4).
Previous lecture Reflectance I BRDF, BTDF, BSDF Ideal specular model
Isaac Gang University of Mary Hardin-Baylor
Announcements Project 3 out today demo session at the end of class.
Computer Graphics (Fall 2003)
Presentation transcript:

Lighting affects appearance

Light Source emits photons Photons travel in a straight line When they hit an object they: bounce off in a new direction or are absorbed (exceptions later). And then some reach the eye/camera.

Reflectance Model how objects reflect light. Model light sources Algorithms for computing Shading: computing intensities within polygons Determine what light strikes what surfaces.

Basic fact: Light is linear Double intensity of sources, double photons reaching eye. Turn on two lights, and photons reaching eye are same as sum of number when each light is on separately. This means we can render lights separately

Light Model: Point Source Light emanates from a point Equal intensity in all directions

Intensity drops off with distance. With square of distance: To simulate effects of non-point sources:

Light model: distant point source All light in scene comes from same direction. With same intensity

Surfaces reflect light: Lambertian Amount of light striking surface proportional to cos  Angle between light direction and surface. Equal brightness in all directions Albedo is fraction of light reflected. Diffuse objects (chalk, cloth, matte paint). Brightness doesn’t depend on viewpoint. Surface normal Light 

Lambertian + Point Source Surface normal Light 

Lambertian Examples Scene (Oren and Nayar) Lambertian sphere as the light moves. (Steve Seitz)

Ambient Assume Lambertian surface normal receives equal light from all directions. Diffuse lighting, no cast shadows. Ambient (and point) light can be colored

Ambient + Point Source Needed to avoid artifacts Make sure shadows aren’t black. Reasonable approximation to general Sun + sky. Lamp + light reflected by walls In fact, it’s a 1 st order approximation. But doesn’t handle many effects Sources of other shapes. Shadows of ambient light in concave objects.

Shadow example

Specular surfaces Another important class of surfaces is specular, or mirror-like. –radiation arriving along a direction leaves along the specular direction –reflect about normal –some fraction is absorbed, some reflected ( csNotes/Shading/Shading.html)

Specular Direction

Specular surfaces ( csNotes/Shading/Shading.html) Brightness depends on viewing direction. Specularity is spread out. Mirror, smooth light all bounces same way. Slightly rougher, direction of bounce varies. Diffuse, many bounces

Phong’s model Empirical model (eg., hack) Phong’s model –reflected energy falls off as: n very big, this is like mirror. As n gets smaller, specularity more spread out. Good model for plastic Specularity color of source. (Forsyth & Ponce)

Lambertian + specular Two parameters: how shiny, what kind of shiny. Many objects combine shiny and diffuse material Wood with veneer; glossy paint, plastic, greasy skin.

Lambertian+Specular+Ambient (

More complex reflectances Physically realistic models Torrance Sparrow models roughness of surfaces and shadowing of microfacets. Models built from observation. Measurement for every lighting direction and viewing direction.

BRDF Not Always Appropriate (Jensen, Marschner, Levoy, Hanrahan) BRDFBSSRDF

Luminescence Surface shifts color of light. Can reflect more light of a color than is present in source. This is why objects can glow in “black” light.