Lighting affects appearance

Similar documents
Lighting affects appearance

Announcement. Lighting and Photometric Stereo. Computer Vision I. Surface Reflectance Models. Lambertian (Diffuse) Surface.

Shading. Brian Curless CSE 557 Autumn 2017

Shading I Computer Graphics I, Fall 2008

Shading. Reading. Pinhole camera. Basic 3D graphics. Brian Curless CSE 557 Fall Required: Shirley, Chapter 10

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Lights, Surfaces, and Cameras. Light sources emit photons Surfaces reflect & absorb photons Cameras measure photons

Ligh%ng and Reflectance

And if that 120MP Camera was cool

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

w Foley, Section16.1 Reading

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Image Formation: Light and Shading. Introduction to Computer Vision CSE 152 Lecture 3

Radiometry. Reflectance & Lighting. Solid Angle. Radiance. Radiance Power is energy per unit time

Introduction. Lighting model Light reflection model Local illumination model Reflectance model BRDF

Shading. Brian Curless CSE 457 Spring 2017

Radiometry Measuring Light

CPSC 314 LIGHTING AND SHADING

CS6670: Computer Vision

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Announcements. Image Formation: Light and Shading. Photometric image formation. Geometric image formation

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Shading / Light. Thanks to Srinivas Narasimhan, Langer-Zucker, Henrik Wann Jensen, Ravi Ramamoorthi, Hanrahan, Preetham

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

Radiometry. Radiometry. Measuring Angle. Solid Angle. Radiance

Illumination & Shading

CS5620 Intro to Computer Graphics

Reading. Shading. An abundance of photons. Introduction. Required: Angel , 6.5, Optional: Angel 6.4 OpenGL red book, chapter 5.

Capturing light. Source: A. Efros

1.6 Rough Surface Scattering Applications Computer Graphic Shading and Rendering

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Illumination. Michael Kazhdan ( /657) HB Ch. 14.1, 14.2 FvDFH 16.1, 16.2

Comp 410/510 Computer Graphics. Spring Shading

Assignment #2. (Due date: 11/6/2012)

Sung-Eui Yoon ( 윤성의 )

Lecture 15: Shading-I. CITS3003 Graphics & Animation

Module 5: Video Modeling Lecture 28: Illumination model. The Lecture Contains: Diffuse and Specular Reflection. Objectives_template

WHY WE NEED SHADING. Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something like.

Paths, diffuse interreflections, caching and radiometry. D.A. Forsyth

Illumination and Shading

Raytracing. COSC 4328/5327 Scott A. King

Illumination Models & Shading

CS230 : Computer Graphics Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Lecture 22: Basic Image Formation CAP 5415

Light Reflection Models

Illumination & Shading: Part 1

CS6670: Computer Vision

Computer Graphics. Illumination and Shading

CS 5625 Lec 2: Shading Models

Lighting. Figure 10.1

Sources, shadows and shading

Shading. Brian Curless CSE 457 Spring 2015

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Understanding Variability

CS580: Ray Tracing. Sung-Eui Yoon ( 윤성의 ) Course URL:

Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

Rendering Light Reflection Models

Timothy Walsh. Reflection Models

Reading. Shading. Introduction. An abundance of photons. Required: Angel , Optional: OpenGL red book, chapter 5.

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Computer Graphics (CS 543) Lecture 8 (Part 1): Physically-Based Lighting Models

CS4670/5760: Computer Vision Kavita Bala Scott Wehrwein. Lecture 23: Photometric Stereo

Shading. Why we need shading. Scattering. Shading. Objectives

Color and Light. CSCI 4229/5229 Computer Graphics Summer 2008

Lecture 4: Reflection Models

Local Reflection Models

Virtual Reality for Human Computer Interaction

Topic 9: Lighting & Reflection models. Lighting & reflection The Phong reflection model diffuse component ambient component specular component

Illumination. Illumination CMSC 435/634

Color and Light CSCI 4229/5229 Computer Graphics Fall 2016

A question from Piazza

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

OpenGl Pipeline. triangles, lines, points, images. Per-vertex ops. Primitive assembly. Texturing. Rasterization. Per-fragment ops.

Ray Tracing: shading

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

Announcements. Radiometry and Sources, Shadows, and Shading

Lighting and Shading

Other approaches to obtaining 3D structure

CSE 681 Illumination and Phong Shading

Illumination in Computer Graphics

Simple Lighting/Illumination Models

Rendering Light Reflection Models

surface: reflectance transparency, opacity, translucency orientation illumination: location intensity wavelength point-source, diffuse source

Shading. CSE 457 Winter 2015

Announcements. Light. Properties of light. Light. Project status reports on Wednesday. Readings. Today. Readings Szeliski, 2.2, 2.3.

Illumination. The slides combine material from Andy van Dam, Spike Hughes, Travis Webb and Lyn Fong

Topic 9: Lighting & Reflection models 9/10/2016. Spot the differences. Terminology. Two Components of Illumination. Ambient Light Source

CS5670: Computer Vision

Raytracing CS148 AS3. Due :59pm PDT

Surface Reflection Models

Local vs. Global Illumination & Radiosity

CS452/552; EE465/505. Intro to Lighting

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

02 Shading and Frames. Steve Marschner CS5625 Spring 2016

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

Interactive Real-Time Raycasting

CS4670/5760: Computer Vision

Global Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Transcription:

Lighting affects appearance 1

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

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 3

Light Model: Point Source Light emanates from a point Equal intensity in all directions Intensity drops off with distance. 1 With square of distance: 2 d 1 To simulate effects of non-point sources: 2 a a d a d 0 1 2 4

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 5

nˆ Lambertian + Point Source ˆ ˆ l is direction of light l l l l is intensity of light i max(0, ( l nˆ) i is radiance is albedo is surface normal Surface normal lˆ Light Lambertian Examples Scene (Oren and Nayar) Lambertian sphere as the light moves. (Steve Seitz) 6

Ambient Assume Lambertian surface normal receives equal light from all directions. i a 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. 7

Shadow example Environment Map Sky Environment map: l( - Light from all directions - Diffuse or point sources - Still distant - Still no cast shadows. - Example: outdoors (sky and sun) 8

` Another important class of surfaces is specular, or mirror-like. Specular surfaces radiation arriving along a direction leaves along the specular direction reflect about normal some fraction is absorbed, some reflected color depends on color of incoming light, not of surface. (http://graphics.cs.ucdavis.edu/graphi csnotes/shading/shading.html) 9

Specular Direction r n l r r l 2( l 2( l n) n n) n l Specular surfaces 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 2 (l n ) n (http://graphics.cs.ucdavis.edu/graphi csnotes/shading/shading.html) 10

Empirical model (eg., hack) Phong s model reflected energy falls off as: cos n Phong s model 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. 11

Lambertian+Specular+Ambient (http://graphics.cs.ucdavis.edu/graphicsnotes/shading/shading.html) 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. 12

BRDF Not Always Appropriate BRDF BSSRDF http://graphics.stanford.edu/papers/bssrdf/ (Jensen, Marschner, Levoy, Hanrahan) 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. 13