Week 5 - Friday.  What did we talk about last time?  Quaternions  Vertex blending  Morphing  Projections.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
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.
Week 9 - Monday.  What did we talk about last time?  BRDFs  Texture mapping and bump mapping in shaders.
Capturing light Source: A. Efros. Image formation How bright is the image of a scene point?
Foundations of Physics
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
1 Computer Graphics Chapter 9 Rendering. [9]-2RM Rendering Three dimensional object rendering is the set of collective processes which make the object.
1 Computer Graphics By : Mohammed abu Lamdy ITGD3107 University of Palestine Supervision: Assistant Professor Dr. Sana’a Wafa Al-Sayegh.
Lighting and Illumination Lighting is the major problem in computer graphics, for either realism or real-time compositions- harder than modeling Consider.
776 Computer Vision Jan-Michael Frahm, Enrique Dunn Fall 2014.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
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.
Computer Graphics - Class 10
Lecture 30: Light, color, and reflectance CS4670: Computer Vision Noah Snavely.
Lighting and Shading Wen-Chieh (Steve) Lin
3/23/2005 © Dr. Zachary Wartell 1 Illumination Models and Surface- Rendering Methods.
Introduction to Computer Vision CS / ECE 181B Tues, May 18, 2004 Ack: Matthew Turk (slides)
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Course Website: Computer Graphics 16: Illumination.
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.
Lighting & Shading.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
Chapter 17 Optics 17.1 Reflection and Refraction
SET09115 Intro Graphics Programming
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.:
Polygon Shading. Assigning color to a shape to make graphical scenes look realistic, or artistic, or whatever effect we’re attempting to achieve But first.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Chapter 18: Ray Optics Lisa & Becky. Ray Model of Light  Light rays travel in straight lines  Light rays cross but do not interact  Light rays travel.
-Global Illumination Techniques
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
Capturing light Source: A. Efros.
Week 6 - Wednesday.  What did we talk about last time?  Light  Material  Sensors.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster graphics.
Week 10 - Wednesday.  What did we talk about last time?  Shadow volumes and shadow mapping  Ambient occlusion.
CSE 381 – Advanced Game Programming GLSL Lighting.
Chapter 12: Sound and Light.  After completing the lesson, students will be able to...  Describe how light reflects off smooth and rough surfaces 
Announcements Office hours today 2:30-3:30 Graded midterms will be returned at the end of the class.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Illumination and Shading
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Physics 213 General Physics Lecture Last Meeting: Electromagnetic Waves, Maxwell Equations Today: Reflection and Refraction of Light.
Lecture Fall 2001 Illumination and Shading in OpenGL Light Sources Empirical Illumination Shading Transforming Normals Tong-Yee Lee.
Local Illumination and Shading
Where We Stand So far we know how to: –Transform between spaces –Rasterize –Decide what’s in front Next –Deciding its intensity and color.
UNIT 1: WAVES Lesson 2 Introduction: Light. Remember… Light waves do not need a medium to travel through. What are the type of waves called that do not.
Lighting and Reflection Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
Distributed Ray Tracing. Can you get this with ray tracing?
Distributed Ray Tracing. Can you get this with ray tracing?
Illumination Models. Introduction 1 Illumination model: Given a point on a surface, what is the perceived color and intensity? Known as Lighting Model,
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Radiometry of Image Formation Jitendra Malik. What is in an image? The image is an array of brightness values (three arrays for RGB images)
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Computer Graphics: Illumination
Computer Graphics Lecture 26 Mathematics of Lighting and Shading Part II Taqdees A. Siddiqi
CS580: Radiometry Sung-Eui Yoon ( 윤성의 ) Course URL:
Week 5 - Friday CS361.
Unit-7 Lighting and Shading
© 2002 University of Wisconsin
Optics Optics is the study of how light behaves.
Fundamentals of Computer Graphics Part 6 Shading
Chapter IX Lighting.
Computer Graphics Material Colours and Lighting
Computer Graphics (Fall 2003)
Chapter 5: Optical Systems
Presentation transcript:

Week 5 - Friday

 What did we talk about last time?  Quaternions  Vertex blending  Morphing  Projections

 [L]ight …travels so fast that it takes most races thousands of years to realise that it travels at all…. Douglas Adams  Light is one of the most complex phenomena in the universe  There are quantum effects, its dual wave/particle nature  We will constantly be approximating the effect of light, since figuring out its real effect is virtually impossible

 We will consider three processes in lighting a scene  Emitting light ▪ From the sun or light bulbs or whatever  Interaction of light ▪ Light is absorbed by and scatters off objects in a scene  Detection by a sensor ▪ A human eye (or a robot eye), camera, piece of film will sense the light  We have to give at least cursory attention to each process to get realistic rendering

 One of the easiest light sources to model are directional lights, such as the sun  With directional lights, all the light travels the same direction, which we can model with a light vector l  We assume that l is a unit vector  l is defined in the opposite direction the light is traveling

 Besides direction, we need to know the amount of light  Radiometry is the science of measuring light, and we'll talk more about it in two weeks  Irradiance is the light's power passing through a unit area surface perpendicular to l  Light can be colored by using RGB components

 Most light is not perpendicular to your surface  The surface irradiance is the perpendicular irradiance times cos θ, where θ is the angle between l and the surface normal n  This is why l is the opposite of the direction of light flowing (so that we don't have to negate it)  Also, we clamp the cos θ to [0,1] (no negative values)

 Real light is coming from many different directions  The final effects of irradiance is additive  Just sum up all the individual light effects  Although we use RGB for light, there is not necessarily a maximum value  Light is perceived logarithmically by humans  High dynamic range displays and floating point color models can allow a better expression of light energy

 Once we know how much and what direction of light we're dealing with, the material it hits impacts the final effect a great deal  These impacts are of two kinds:  Scattering  Absorption

 Scattering is caused by an optical discontinuity  Difference in structure  Change in density  Scattering does not change the amount of light, only its direction  There are two types of scattering  Refraction (or transmission)  Reflection

 With refraction (or transmission) in (partially) transparent objects, the light continues to go through the object and may light other objects  There are light bending effects  Plus the Z-buffer algorithm doesn't work anymore  We won't deal with that now

 Light that is reflected will have a different direction and color than light that was transmitted into the surface, partially absorbed, and scattered back out  We simplify by dividing into two terms  Specular term (the reflected light)  Diffuse term (the re-transmitted light)

 Illumination reaching a surface is irradiance  Illumination leaving a surface is exitance (M)  Although our perception of light is logarithmic, light-matter interaction is linear:  Double the irradiance and you'll double the exitance  The ratio between exitance and irradiance is essentially the surface color that you see back  Surface color c = specular color + diffuse color

 We will often assume that diffuse light has no directionality  Specular light, however, bounces off a surface and spreads out less if the surface is smoother  Color, texture, and the smoothness parameter are not absolute  We may change them depending on how far we are from the object

 We are going to describe mathematical models of sensors  But how did humans investigate the nature of sensors in the first place?  Can you trust your own sensors?  Consider the following slide

 That slide is an example of Mach banding  In Mach banding, a lighter color on the edge of a darker color will appear to grow lighter as you get close to the border between them  The darker color will do the reverse  It's part of our brain's edge detection algorithm

 In general, sensors are made up of many tiny sensors  Rods and cones in the eye  Photodiodes attached to a CCD in a digital camera  Dye particles in traditional film  Typically, an aperture restricts the directions from which the light can come  Then, a lens focuses the light onto the sensor elements

 Irradiance sensors can't produce an image because they average over all directions  Lens + aperture = directionally specific  Consequently, the sensors measure radiance (L), the density of light per flow area AND incoming direction

 In a rendering system, radiance is computed rather than measured  A radiance sample for each imaginary sensor element is made along a ray that goes through the point representing the sensor and point p, the center of projection for the perspective transform  The sample is computed by using a shading equation along the view ray v

 After all this hoopla is done, we need a mathematical equation to say what the color (radiance) at a particular pixel is  There are many equations to use and people still do research on how to make them better  Remember, these are all rule of thumb approximations and are only distantly related to physical law

 Diffuse exitance M diff = c diff  E L cos θ  Lambertian (diffuse) shading assumes that outgoing radiance is (linearly) proportional to irradiance  Because diffuse radiance is assumed to be the same in all directions, we divide by π (explained later)  Final Lambertian radiance L diff =

 Shading  Lambertian  Gouraud  Phong  Anti-aliasing

 Keep working on Project 2, due Friday, March 13  Keep reading Chapter 5  Exam 1 is next Friday in class  Start reviewing everything up to today