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

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

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

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

Global Illumination. COMP 575/770 Spring 2013

The Rendering Equation and Path Tracing

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

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

Illumination Algorithms

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

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

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

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

The Rendering Equation & Monte Carlo Ray Tracing

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

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

CS 428: Fall Introduction to. Radiosity. Andrew Nealen, Rutgers, /7/2009 1

Local vs. Global Illumination & Radiosity

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

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

COMP371 COMPUTER GRAPHICS

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

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

The Rendering Equation. Computer Graphics CMU /15-662

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

Global Illumination The Game of Light Transport. Jian Huang

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

GLOBAL ILLUMINATION. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION

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

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

CS770/870 Spring 2017 Radiosity

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

CS770/870 Spring 2017 Radiosity

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

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

Recent Advances in Monte Carlo Offline Rendering

11/2/2010. In the last lecture. Monte-Carlo Ray Tracing : Path Tracing. Today. Shadow ray towards the light at each vertex. Path Tracing : algorithm

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

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

Lecture 7 - Path Tracing

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

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

Virtual Spherical Lights for Many-Light Rendering of Glossy Scenes

Image Synthesis. Global Illumination. Why Global Illumination? Achieve more photorealistic images

To Do. Real-Time High Quality Rendering. Motivation for Lecture. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing

Discussion. Smoothness of Indirect Lighting. History and Outline. Irradiance Calculation. Irradiance Caching. Advanced Computer Graphics (Spring 2013)

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

Monte Carlo Ray-tracing and Rendering

Choosing the Right Algorithm & Guiding

Part I The Basic Algorithm. Principles of Photon Mapping. A two-pass global illumination method Pass I Computing the photon map

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

Global Illumination and Monte Carlo

Lecture 12: Photon Mapping. Biased Methods

Advanced Graphics. Global Illumination. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

Stochastic Path Tracing and Image-based lighting

Global Illumination and the Rendering Equation

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

rendering equation computer graphics rendering equation 2009 fabio pellacini 1

Photo Studio Optimizer

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

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

An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Photon Mapping. Michael Doggett Department of Computer Science Lund university

Indirect Illumination

Rendering Algorithms: Real-time indirect illumination. Spring 2010 Matthias Zwicker

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

Anti-aliasing. Images and Aliasing

COMPUTER GRAPHICS COURSE. LuxRender. Light Transport Foundations

SOME THEORY BEHIND REAL-TIME RENDERING

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

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

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

Shading. Brian Curless CSE 557 Autumn 2017

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

Shading and Illumination

Philipp Slusallek Karol Myszkowski. Realistic Image Synthesis SS18 Instant Global Illumination

Global Illumination and Radiosity

Motivation: Monte Carlo Rendering. Sampling and Reconstruction of Visual Appearance. Caustics. Illumination Models. Overview of lecture.

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

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

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

Biased Monte Carlo Ray Tracing

Photon Mapping. Kadi Bouatouch IRISA

Indirect Illumination

A Survey of Radiosity and Ray-tracing. Methods in Global Illumination

Ray Tracing. Local Illumination. Object Space: Global Illumination. Image Space: Backward Ray Tracing. First idea: Forward Ray Tracing

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

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

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

Computer Graphics. - Ray Tracing I - Marcus Magnor Philipp Slusallek. Computer Graphics WS05/06 Ray Tracing I

Lecture 18: Primer on Ray Tracing Techniques

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

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

Realistic Image Synthesis

Rendering. Mike Bailey. Rendering.pptx. The Rendering Equation

Sung-Eui Yoon ( 윤성의 )

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

Radiometry and reflectance

Lighting affects appearance

Capturing light. Source: A. Efros

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

Transcription:

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

What is Global illumination? Global illumination is a general name for realistic rendering algorithms Global illumination methods handle indirect illumination In particular diffuse inter-reflections This produces realistic (global) effects Reflections, refractions, and shadows 2

Realistic Lighting Physical correct model Photons are emitted from light sources. Photons hitting surfaces are scattered or absorbed. What we see is actually photons hitting the eye! Far to expensive to simulate A light source may emit e.g. 10 20 photons/second A tiny fraction of these emitted photons hit the eye Need to solve simultaneously for incoming and outgoing light at all surface points This is a massive integral equation Radiosity deals with the easy case of purely diffuse scenes Alternatively, try to sample a huge number of complete paths from light source to camera. 3

Reflectance Reflectance is all about the way light interacts with surfaces A field of study on its own Reflectance modeling Essential for deciding what surfaces look like Also related to the light transport problem The most important quantity is the BRDF BRDF really just means the way light bounces off of something. 4

BRDF BRDF = Bidirectional Reflectance Distribution Function A function of a point on the surface, an incoming light direction, and an outgoing light direction Tells you how much of the light that comes in from one direction goes out in another direction General BRDFs are difficult to work with, so simplifications are made 5

Example Materials BRDF database Each reflectance function is stored as a densely measured Bidirectional Reflectance Distribution Function (BRDF). See http://www.merl.com/brdf/ 6

The rendering equation Introduced into computer graphics by Kajiya 1986 Based on the law of conservation of energy in physics Realistic rendering is about solving (approximately) the rendering equation (or parts of it) 7

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da ω' x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da L(x',ω') is the radiance from a point on a surface in a given direction ω' ω' x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da E(x',ω') is the emitted radiance from a point: E is non-zero only if x' is emissive x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da Sum the contribution from all of the other surfaces in the scene ω' x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da For each x, compute L(x, ω), the radiance at point x in the direction ω (from x to x') ω' x ω x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da scale the contribution by ρx'(ω,ω'), the reflectivity (BRDF) of the surface at x' ω' x ω x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da For each x, compute V(x,x'), the visibility between x and x': 1 when the surfaces are unobstructed along the direction ω, 0 otherwise x ω ω' x'

The Rendering Equation, AGAIN! L(x',ω') = E(x',ω') + ρ x' (ω,ω')l(x,ω)g(x,x')v(x,x') da For each x, compute G(x, x'), which describes the on the geometric relationship between the two surfaces at x and x ω' x ω x'

Classifying Rendering Methods Consider the type of light interactions they capture Classifying the interactions: light paths Where from, where to What they do along the way 16

Light paths Assume only two types of surface interactions Pure diffuse, D Pure specular, S Assume all paths of interest Start at a light source, L End at the eye, E Describe paths using regular expressions Valid paths are L(D S)*E Light, followed by either diffuse or specular, zero or more times, ending at the eye 17

Supported light paths examples What light paths are supported in the traditional OpenGL pipeline Simple ray tracing 18

LSDE LSE LDE LDDE

Path Types Ray Casting: LDE Ray Tracing: LDS*E Radiosity: LD*E LSDE LSE LDE LDDE

Progressive Radiosity An object space algorithm View independent Can be pre-computed and used later Surfaces are assumed to be perfectly Lambertian The scene is divided into smaller areas called patches The radiosity, B i, of patch i is the total rate of energy leaving a surface. The radiosity over a patch is constant.

Progressive Radiosity Simulates diffuse interreflections Radiosity of each surface depends on radiosity of all other surfaces Gives effects such as color bleeding Divide scene into patches Find formfactors (visibility factors for each pair) Solve system iteratively in terms of bounce levels Results are viewpoint independent 22

Distributed Ray Tracing Suggeste by Cook et al., 1984. Distribute rays throughout a pixel to get spatial antialiasing Distribute rays in time to get temporal antialiasing (Motion blur) Distribute rays in reflected ray direction to simulate glossy reflections Distribute rays across area light source to simulate soft shadows Distribute rays throughout lens area to simulate depth of field Distribute rays across hemisphere to simulate diffuse interreflection (Radiosity) 23

Path tracing Introduced by Kajiya in 1986 Shoot recursive rays randomly Diffuse reflection spawns infinite rays Pick one ray at random Simulates many advanced effects quite naturally soft shadows, depth of field, motion blur, caustics, ambient occlusion, and indirect lighting Photo-realistic results Path tracing can be used as reference for other rendering methods But only if many paths per pixel are traced 24

Bi-directional path tracing Introduced by Lafortune 1993 Faster convergence (compared to path tracing) Traces rays both from the eye and the light source Improved method: Metropolis light transport Main idea: when a path has been found from light to eye, then try to explore nearby paths See youtube Two Minute Papers - Metropolis Light Transport 25

Photon mapping Introduced by Henrik Wann Jensen Bi-directional path tracing with a cache Simulates transport of individual photons Photons emitted from source Photons deposited on surfaces Photons reflected between surfaces Photons collected by rendering Two pass algorithm Pass one: photon tracing Build the photon map data structure Pass two: rendering Similar to ray tracing: Query both object and nearby photons to determine color 26

Caustics (Images by Henrik Wann Jensen) 27