CS635 Spring Department of Computer Science Purdue University

Similar documents
Light Transport CS434. Daniel G. Aliaga Department of Computer Science Purdue University

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

CS635 Spring Department of Computer Science Purdue University

Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

Inverse Light Transport (and next Separation of Global and Direct Illumination)

Shading I Computer Graphics I, Fall 2008

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

Global Illumination. COMP 575/770 Spring 2013

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

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

Rendering Synthetic Objects into Real Scenes. based on [Debevec98]

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

CS770/870 Spring 2017 Radiosity

Local Reflection Models

Image-based Lighting

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

Comp 410/510 Computer Graphics. Spring Shading

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Global Illumination and Radiosity

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

GLOBAL ILLUMINATION. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION

Local vs. Global Illumination & Radiosity

CS5620 Intro to Computer Graphics

Lecture 15: Shading-I. CITS3003 Graphics & Animation

A Brief Overview of. Global Illumination. Thomas Larsson, Afshin Ameri Mälardalen University

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

Traditional Image Generation. Reflectance Fields. The Light Field. The Light Field. The Light Field. The Light Field

Turn on the Lights: Reflectance

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

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

CS770/870 Spring 2017 Radiosity

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

Raytracing CS148 AS3. Due :59pm PDT

Ray-Tracing. Misha Kazhdan

To Do. Advanced Computer Graphics. Course Outline. Course Outline. Illumination Models. Diffuse Interreflection

The Rendering Equation and Path Tracing

Illumination & Shading

COMP371 COMPUTER GRAPHICS

rendering equation computer graphics rendering equation 2009 fabio pellacini 1

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

Computer Graphics. Lecture 10. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura 12/03/15

Photorealism: Ray Tracing

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

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

Today. Participating media. Participating media. Rendering Algorithms: Participating Media and. Subsurface scattering

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ]

Capturing light. Source: A. Efros

Lighting. Figure 10.1

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

CS 428: Fall Introduction to. Raytracing. Andrew Nealen, Rutgers, /18/2009 1

Illumination & Shading: Part 1

Simple Lighting/Illumination Models

CSE 681 Illumination and Phong Shading

Overview. Radiometry and Photometry. Foundations of Computer Graphics (Spring 2012)

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

03 RENDERING PART TWO

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

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

Ray Tracing. Kjetil Babington

Computer Graphics. Illumination and Shading

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

Photometric Stereo.

Announcements. Written Assignment 2 out (due March 8) Computer Graphics

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

Computer Vision. The image formation process

Supplement to Lecture 16

CS 325 Computer Graphics

782 Schedule & Notes

CPSC 314 LIGHTING AND SHADING

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

CEng 477 Introduction to Computer Graphics Fall

Reflection and Shading

Illumination Algorithms

Lighting affects appearance

Interactive Real-Time Raycasting

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

Lighting & 3D Graphics. Images from 3D Creative Magazine

Computer Graphics. Illumination Models and Surface-Rendering Methods. Somsak Walairacht, Computer Engineering, KMITL

Stochastic Path Tracing and Image-based lighting

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

History of computer graphics

Shading. Brian Curless CSE 557 Autumn 2017

CS6670: Computer Vision

Lecture 7 - Path Tracing

Introduction to Computer Graphics 7. Shading

Reflection models and radiometry Advanced Graphics

Texture. Detail Representation

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

Introduction to Radiosity

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

Illumination and Shading

1.6 Rough Surface Scattering Applications Computer Graphic Shading and Rendering

CS 5625 Lec 2: Shading Models

Raytracing & Epsilon. Today. Last Time? Forward Ray Tracing. Does Ray Tracing Simulate Physics? Local Illumination

Transcription:

Light Transport CS635 Spring 2010 Daniel G Aliaga Daniel G. Aliaga Department of Computer Science Purdue University

Topics Local and GlobalIllumination Models Helmholtz Reciprocity Dual Photography/Light Transport in Real World

Diffuse Lighting Aka A.k.a. Lambertian illumination A fraction of light is radiated in every direction Intensity varies with ihcosine of the angle with ih normal 3

Diffuse Lighting I diff = I ρ Light diff ( N L) L N θ 4

Specular Lighting Shiny surfaces reflect predominantly in a particular direction, creating highlights Where the highlights appear depends on the viewer s position 5

Specular Lighting The most common lighting model was suggested by Phong I spec = ρ spec I Light ( ) n cosφ shiny The n shiny term is an empirical constant to model the rate of falloff The model has no physical basis, but it sort of works 6

Example

Inter reflections reflections

Scattering

Scattering Without (subsurface) scattering With (subsurface) scattering

Scattering Without (subsurface) scattering With (subsurface) scattering

Scattering Scattering through participating media with volume caustics Hu et al. 2010

Rendering Equation (l (also known as the light transport transport equation) Illumination can be generalized to I( x, x') = g( x, x') ε ( x, x') + ρ( x, x', x'') I( x', x'') dx'' s I: illumination at first point from second g: geometry term for visibility ε: emitted light from second point to first ρ: reflectivity of light from x to x via x (note: equation is recursive) but it does not model all illumination effects

Global Illumination Ray tracing Rays bounce off potentially all objects Good for specular scenes

Global Illumination Ray tracing Rays bounce off potentially all objects Good for specular scenes

Global Illumination Ray tracing

Global Illumination Radiosity All diffuse surfaces are influenced by potentially allother diffuse surfaces Good for diffuse scenes

Global Illumination Radiosity

Global Illumination Radiosity

Global Illumination Radiosity

Radiosity All energy emitted or reflected by every surface is accounted for by its reflection or absorption by othersurfaces B i = E i + ρ emitted reflected i i j n B j F j i A A j i using A F = i j i = A j F i j Radiosity equation: B i ρ i 1 j n B j F i j = E i

Radiosity Radiosity Radiosity Radiosity All energy emitted or reflected by every All energy emitted or reflected by every surface is accounted for by its reflection or absorption by othersurfaces absorption by other surfaces = n j i j i j i i E F B B 1 ρ n j 1 n E E B B F F F F F F 1... 1 2 1 2 1 2 2 2 2 2 1 2 2 1 1 2 1 1 1 1 1 ρ ρ ρ ρ ρ ρ = n n n n n n n n n n E E B B F F F F F F........................ 1 2 2 2 1 2 2 2 2 2 1 2 2 ρ ρ ρ ρ ρ ρ Solve for B, etc

Conclusion Modeling illumination is hard Undoing physically observed illumination in order to discover the underlying geometry is even harder Insight: let s sample it and re apply it!

Dual Photography Sen et al., SIGGRAPH 2005 (slides courtesy of M. Levoy)

Helmholtz Reciprocity camera light scene

light Helmholtz Reciprocity camera scene

Measuring transport along a set of paths projector photocell scene

camera Reversing the paths point light scene

Forming a dual photograph dual camera projector dual photocell light scene

Forming a dual photograph dual camera dual light image of scene scene

Physical demonstration light replaced with projector camera replaced with photocell projector scanned across the scene conventional photograph, dual photograph, with light coming from right as seen from projector s position and as illuminated from photocell s position

Related imaging methods time of flight scanner if they return reflectance as well as range but their light source and sensor are typically coaxial il scanning electron microscope Velcro at 35x magnification, Museum of Science, Boston

The 4D transport matrix projector photocell camera scene

The 4D transport matrix projector camera P C pq x 1 mn x 1 mn x pq T scene

The 4D transport matrix mn x pq C = T P mn x 1 pq x 1

The 4D transport matrix mn x pq 1 0 C = T 0 0 0 mn x 1 pq x 1

The 4D transport matrix mn x pq 0 1 C = T 0 0 0 mn x 1 pq x 1

The 4D transport matrix mn x pq 0 0 C = T 1 0 0 mn x 1 pq x 1

The 4D transport matrix mn x pq C = T P mn x 1 pq x 1

The 4D transport matrix mn x pq C = T P mn x 1 pq x 1 applying Helmholtz lt reciprocity... it pq x mn C = T T P pq x 1 mn x 1

Example conventional photograph with light coming from right dual photograph as seen from projector s position

Properties of the transport matrix little inter reflection sparse matrix many inter reflectionsreflections dense matrix convex object diagonal matrix concave object full matrix Can we create a dual photograph entirely from diffuse reflections?

Dual photography from dff diffuse reflections the camera s view

Relighting Paul Debevec s Light Stage 3 subject captured under multiple lights one light at a time, so subject must hold still point lights are used, so can t relight with cast shadows

Relighting With Dual Photography

Relighting With Dual With Dual Photography

Relighting With Dual With Dual Photography

The 6D transport matrix

The 6D transport matrix

The advantage of dual photography capture of a scene as illuminated by different lights cannot be parallelized capture of a scene as viewed by different cameras can be parallelized

Measuring the 6D transport matrix projector mirror camerarray scene

Relighting with complex illumination projector camera array pq x mn x uv C = T T P scene pq x 1 mn x uv x 1 step 1: measure 6D transport matrix T step 2: capture a 4D light field step 3: relight scene using captured light field

Running time the different rays within a projector can in fact be parallelized to some extent this parallelism can be discovered using a coarse to fine adaptive scan can measure a 6D transport matrix in 5 minutes

Can we measure an 8D transport projector array matrix? camera array scene