Global Illumination The Game of Light Transport. Jian Huang

Similar documents
The Rendering Equation and Path Tracing

The Rendering Equation. Computer Graphics CMU /15-662

Lecture 7 - Path Tracing

2/1/10. Outline. The Radiance Equation. Light: Flux Equilibrium. Light: Radiant Power. Light: Equation. Radiance. Jan Kautz

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 557 Autumn 2017

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016

Anti-aliasing and Monte Carlo Path Tracing

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Ground Truth. Welcome!

Anti-aliasing and Monte Carlo Path Tracing. Brian Curless CSE 457 Autumn 2017

Reading. Distribution Ray Tracing. BRDF, revisited. Pixel anti-aliasing. ω in. Required: Shirley, section Further reading:

Radiometry & BRDFs CS295, Spring 2017 Shuang Zhao

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

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

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

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

Illumination Algorithms

Physically Realistic Ray Tracing

Distribution Ray Tracing. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

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

Local vs. Global Illumination & Radiosity

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

INFOGR Computer Graphics. J. Bikker - April-July Lecture 10: Shading Models. Welcome!

Motivation. Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi

COMP371 COMPUTER GRAPHICS

Reading. 8. Distribution Ray Tracing. Required: Watt, sections 10.6,14.8. Further reading:

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

Specular reflection. Lighting II. Snell s Law. Refraction at boundary of media

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

Monte Carlo Ray Tracing. Computer Graphics CMU /15-662

EECS 487: Interactive Computer Graphics

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

CENG 477 Introduction to Computer Graphics. Ray Tracing: Shading

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

Radiometry and reflectance

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

Distributed Ray Tracing

THE goal of rendering algorithms is to synthesize images of virtual scenes. Global illumination

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

Distribution Ray-Tracing. Programação 3D Simulação e Jogos

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

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

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

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

Distribution Ray Tracing

13 Distribution Ray Tracing

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

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

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

Chapter 11 Global Illumination. Part 1 Ray Tracing. Reading: Angel s Interactive Computer Graphics (6 th ed.) Sections 11.1, 11.2, 11.

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1

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

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

The Rendering Equation & Monte Carlo Ray Tracing

Final Project: Real-Time Global Illumination with Radiance Regression Functions

CS-184: Computer Graphics. Today. Lecture 22: Radiometry! James O Brien University of California, Berkeley! V2014-S

Photon Mapping. Due: 3/24/05, 11:59 PM

Lecture 22: Basic Image Formation CAP 5415

Interactive Methods in Scientific Visualization

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

Radiance. Radiance properties. Radiance properties. Computer Graphics (Fall 2008)

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate?

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

Understanding Variability

782 Schedule & Notes

Ray Tracing III. Wen-Chieh (Steve) Lin National Chiao-Tung University

CS 5625 Lec 2: Shading Models

COMPUTER GRAPHICS COURSE. LuxRender. Light Transport Foundations

Ray Tracing: Special Topics CSCI 4239/5239 Advanced Computer Graphics Spring 2018

Motivation: Monte Carlo Path Tracing. Sampling and Reconstruction of Visual Appearance. Monte Carlo Path Tracing. Monte Carlo Path Tracing

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

Announcements. Radiometry and Sources, Shadows, and Shading

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

Today. Anti-aliasing Surface Parametrization Soft Shadows Global Illumination. Exercise 2. Path Tracing Radiosity

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

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

In the real world, light sources emit light particles, which travel in space, reflect at objects or scatter in volumetric media (potentially multiple

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

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

Rendering Equation & Monte Carlo Path Tracing I

Computer Graphics Project

Sung-Eui Yoon ( 윤성의 )

Other Rendering Techniques CSE 872 Fall Intro You have seen Scanline converter (+z-buffer) Painter s algorithm Radiosity CSE 872 Fall

Global Illumination and Monte Carlo

INFOMAGR Advanced Graphics. Jacco Bikker - February April Welcome!

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

Motivation. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing

CS 563 Advanced Topics in Computer Graphics Irradiance Caching and Particle Tracing. by Stephen Kazmierczak

Introduction to Computer Vision. Introduction CMPSCI 591A/691A CMPSCI 570/670. Image Formation

Measuring Light: Radiometry and Cameras

Ray Tracing. Johns Hopkins Department of Computer Science Course : Rendering Techniques, Professor: Jonathan Cohen

Stochastic Path Tracing and Image-based lighting

Recent Advances in Monte Carlo Offline Rendering

02 Shading and Frames. Steve Marschner CS5625 Spring 2016

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

Korrigeringar: An introduction to Global Illumination. Global Illumination. Examples of light transport notation light

Irradiance Gradients. Media & Occlusions

Lighting and Shading

The Rendering Equation Philip Dutré. Course 4. State of the Art in Monte Carlo Global Illumination Sunday, Full Day, 8:30 am - 5:30 pm

Photon Maps. The photon map stores the lighting information on points or photons in 3D space ( on /near 2D surfaces)

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

Transcription:

Global Illumination The Game of Light Transport Jian Huang

Looking Back Ray-tracing and radiosity both computes global illumination Is there a more general methodology? It s a game of light transport.

Radiance Radiance (L): for a point in 3D space, L is the light flux per unit projected area per unit solid angle, measured in W/(srm 2 ) sr steradian: unit of solid angle A cone that covers r 2 area on the radius-r hemisphere A total of 2 sr on a hemisphere. power density/solid angel The fundamental radiometric quantity

Irradiance and Radiosity Irradiance (E) Integration of incoming radiance over all directions, measured in W/m 2 Incident radiant power (Watt) on per unit projected surface area Radiance distribution is generally discontinuous, irradiance distribution is generally continuous, due to the integration shooting, distribute radiance from a surface gathering, integrating irradiance and accumulate light flux on surface Radiosity (B) is Exitant radiant power (Watt) on per unit projected surface area, measured in W/m 2 as well

Relationships among the Radiometric Units

Path Notation A non-mathematical way to categorize the behavior of global illumination algorithm Diffuse to diffuse transfer Specular to diffuse transfer Diffuse to specular transfer Specular to specular transfer Heckbert s string notation (1990): as light ray travels from source (L) to eye (E): LDDE, LDSE+LDDE, LSSE+LDSE, LSDE, LSSDE

BRDF Materials interact with light in different ways, and different materials have different appearances given the same lighting conditions. The reflectance properties of a surface are described by a reflectance function, which models the interaction of light reflecting at a surface. The bi-directional reflectance distribution function (BRDF) is the most general expression of reflectance of a material The BRDF is defined as the ratio between differential radiance reflected in an exitant direction, and incident irradiance through a differential solid angle

The geometry of BRDF BRDF

BRDF properties Positive, and variable in regard to wave-length Reciprocity: the value of the BRDF will remain unchanged if the incident and exitant directions are interchanged. Generally, the BRDF is anisotropic. BRDF behaves as a linear function with respect to all incident directions.

BRDF Examples Diffuse surface (Lambertian) Perfect specular surface BRDF is non-zero in only one exitant direction Glossy surfaces (non ideally specular) Difficult to model analytically Transparent surfaces Need to model the full sphere (hemi-sphere is not enough) BRDF is not usually enough, need BSSRDF (bi-directional subsurface scattering reflectance distribution function) The transparent side can be diffuse, specular or glossy

3 forms Reflectance

The Rendering Equation Proposed by Jim Kajiya in his SIGGRAPH 1986 paper Light transport equation in a general form Describes not only diffuse surfaces, but also ones with complex reflective properties Goal of computer graphics: solution of the rendering equation! Looks simple and natural, but really is too complex to be solved exactly; various techniques to nd approximate solutions are used

The Rendering Equation I(x,x ) = intensity passing from x to x g(x,x ) = geometry term (1, or 1/r 2, if x visible from x, 0 otherwise) (x,x ) = intensity emitted from x in the direction of x (x,x,x ) = scattering term for x (fraction of intensity arriving at x from the direction of x scattered in the direction of x) S = union of all surfaces

Linear Operator Define a linear operator, M. The rendering equation: How to solve it?

Neumann Series Solution Start with an initial guess I 0 Compute a better solution Computer an even better solution Then, In practice one needs to truncate it somewhere

Examples No shading/illumination, just draw surfaces as emitting themselves: Direct illumination, no shadows: Direct illumination with shadows:

Implications How successful is a global illumination algorithm? The first term is simple, just visibility How an algorithm handles the remaining terms and the recursion? How does it handle the combinations of diffuse and specular reflectivity The rendering equation is a view-independent statement of the problem How are the radiosity algorithm and the raytracing algorithm?

Monte Carlo Techniques in Global Illumination Monte Carlo is a general class of estimation method based on statistical sampling The most famous example: to estimate Monte Carlo techniques are commonly used to solve integrals with no analytical or numerical solution The rendering equation has one such integral

Basic Monte Carlo Integration Suppose we want to numerically integrate a function over an integration domain D (of dimension d), i.e., we want to compute the value of the integral I: Common deterministic approach: construct a number of sample points, and use the function values at those points to compute an estimate of I. Monte Carlo integration basically uses the same approach, but uses a stochastic process to generate the sample points. And would like to generate N sample points distributed uniformly over D.

Basic Monte Carlo Integration The mean of the evaluated function values at each randomly generated sample point multiplied by the area of the integration domain, provides an unbiased estimator for I: Monte Carlo methods provides an un-biased estimator The variance reduces as N increases Usually, given the same N, deterministic approach produces less error than Monte Carlo methods

When to Use Monte Carlo? High dimension integration the sample points needed in deterministic approach exponential increase Complex integrand: practically can t tell the error bound for deterministic approaches Monte Carlo is always un-biased, and for rendering purpose, it converts errors into noise!!

Two Types of Monte Carlo Monte Carlo integration methods can roughly be subdivided in two categories: those that have no information about the function to be integrated: blind Monte Carlo those that do have some kind of information available about the function: informed Monte Carlo Intuitively, one expects that informed Monte Carlo methods to produce more accurate results as opposed to blind Monte Carlo methods. The basic Monte Carlo integration is a blind Monte Carlo method

Importance Sampling An informed Monte Carlo Importance sampling uses a non-uniform probability function, pdf(x), for generating samples. By choosing the probability function pdf(x) wisely on the basis of some knowledge of the function to be integrated, we can often reduce the variance Can prove: if can get the pdf(x) to match the exact shape of the function to be integrated, f(x), the variance of the integration estimation is 0. Practically, can use a sample table to generate a good pdf. Intuitively, want to send more rays into the more detailed areas in space

Stratified Sampling Importance sampling (probability) using a limited number of samples, which is the case for graphics rendering, does not have a guarantee. Stratified sampling address this further: the basic idea of stratified sampling is to split up the integration domain in m disjunct subdomains (also called strata), and evaluate the integral in each of the subdomains separately with one or more samples. More precisely:

More On Ray-Tracing Already discussed recursive ray-tracing! Improvements to ray-tracing! Area sampling variations to address aliasing Cone tracing (only talk about this) Beam tracing Pencil tracing Distributed ray-tracing!

Cone Tracing (1984) Generalize linear rays into cones One cone is fired from eye into each pixel Have a wide angle to encompass the pixel The cone is intersected with objects in its path Reflection and refraction are modeled as spherical mirrors and lenses Use the curvature of the object intersecting that cone Broaden the reflected and refracted cones to simulate further scattering Shadow: proportion of the shadow cone that remains unblocked

Distributed Ray-Tracing Another way to address aliasing By Cook, Porter, and Carpenter in 1984. A stochastic approach to supersampling that trades objectionable aliasing artifacts for the less offensive artifacts of noise Distributed : rays are stochastically distributed to sample the quantities This method was covered during our recursive ray tracing lecture as extension to correct aliasing

Sampling Other Dimensions Other than stochastic spatial sampling for anti-aliasing, can sample in other dimensions Motion blur (distribute rays in time) Depth of field (distribute rays over the area of the camera lens) Rough surfaces: blurred specular reflections and translucent refraction (distribute rays according to specular reflection and transmission functions) Soft shadow: distribute shadow feeler rays over the solid angle span by the area light source In all cases, use stochastic sampling to perturb rays