Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.

Slides:



Advertisements
Similar presentations
Computer graphics & visualization Global Illumination Effects.
Advertisements

Advanced Computer Graphics
Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
Illumination Models Radiosity Chapter 14 Section 14.7 Some of the material in these slides may have been adapted from University of Virginia, MIT, Colby.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
David Luebke1/19/99 CS 551/651: Advanced Computer Graphics David Luebke
Christian Lauterbach COMP 770, 2/11/2009
Advanced Computer Graphics (Spring 2005) COMS 4162, Lectures 18, 19: Monte Carlo Integration Ravi Ramamoorthi Acknowledgements.
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Photon Tracing with Arbitrary Materials Patrick Yau.
Advanced Computer Graphics (Fall 2009) CS 294, Rendering Lecture 5: Monte Carlo Path Tracing Ravi Ramamoorthi
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
Everything on Global Illumination Xavier Granier - IMAGER/UBC.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 20: Monte Carlo Path Tracing Ravi Ramamoorthi Acknowledgements.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
Paper by Alexander Keller
CIS 681 Distributed Ray Tracing. CIS 681 Anti-Aliasing Graphics as signal processing –Scene description: continuous signal –Sample –digital representation.
1 Dr. Scott Schaefer Radiosity. 2/38 Radiosity 3/38 Radiosity Physically based model for light interaction View independent lighting Accounts for indirect.
Computer Graphics (Spring 2008) COMS 4160, Lecture 22: Global Illumination
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
Direct Illumination with Lazy Visibility Evaluation David Hart Philip Dutré Donald P. Greenberg Cornell University SIGGRAPH 99.
Global Illumination Jian Huang, CS 594, Fall 2002 This set of slides reference text book and the course note of Dutre et. al on SIGGRAPH 2001.
Global Illumination. Direct Illumination vs. Global Illumination reflected, scattered and focused light (not discreet). physical-based light transport.
Today More raytracing stuff –Soft shadows and anti-aliasing More rendering methods –The text book is good on this –I’ll be using images from the CDROM.
12/05/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling Very brief intro to global illumination.
-Global Illumination Techniques
Ray Tracing Sang Il Park SEjong University With lots of slides stolen from Jehee Lee, Doug James, Steve Seitz, Shree Nayar, Alexei Efros, Fredo Durand.
David Luebke 1 10/12/2015 CS 551/651: Advanced Computer Graphics Advanced Ray Tracing Radiosity.
02/16/05© 2005 University of Wisconsin Last Time Re-using paths –Irradiance Caching –Photon Mapping.
Ray Tracing Chapter CAP4730: Computational Structures in Computer Graphics.
02/10/03© 2003 University of Wisconsin Last Time Participating Media Assignment 2 –A solution program now exists, so you can preview what your solution.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.

04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Monte-Carlo Ray Tracing and
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Pure Path Tracing: the Good and the Bad Path tracing concentrates on important paths only –Those that hit the eye –Those from bright emitters/reflectors.
Ray Tracing Fall, Introduction Simple idea  Forward Mapping  Natural phenomenon infinite number of rays from light source to object to viewer.
02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
Slide 1Lastra, 2/14/2016 Monte-Carlo Methods. Slide 2Lastra, 2/14/2016 Topics Kajiya’s paper –Showed that existing rendering methods are approximations.
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
Global Illumination (3) Photon Mapping (1). Overview Light Transport Notation Path Tracing Photon Mapping –Photon Tracing –The Photon Map.
David Luebke3/12/2016 Advanced Computer Graphics Lecture 3: More Ray Tracing David Luebke
Distributed Ray Tracing. Can you get this with ray tracing?
Distributed Ray Tracing. Can you get this with ray tracing?
11/29/01CS 559, Fall 2001 Today Photorealistic rendering Algorithms for producing high-quality images Ways of deciding which algorithm for use.
Computer graphics III – Rendering equation and its solution
Advanced Computer Graphics
Advanced Computer Graphics

Shading Revisited Some applications are intended to produce pictures that look photorealistic, or close to it The image should look like a photograph A.
Sampling and Reconstruction of Visual Appearance
© University of Wisconsin, CS559 Fall 2004
The Rendering Equation
(c) 2002 University of Wisconsin
Path Tracing (some material from University of Wisconsin)
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Radiosity Dr. Scott Schaefer.
(c) 2002 University of Wisconsin
Monte Carlo Rendering Central theme is sampling:
Foundations of Computer Graphics (Spring 2012)
CSC418 Computer Graphics Raytracing Shadows Global Illumination.
Distributed Ray Tracing
Monte Carlo Path Tracing and Caching Illumination
Monte Carlo Integration
Presentation transcript:

Global Illumination (3) Path Tracing

Overview Light Transport Notation Path Tracing Photon Mapping

Ray Tracing L(D)?S*E Rays cast from eye into scene –Why? –Because most rays cast from light wouldn’t reach eye objectslights

Ray Tracing L(D)?S*E Shadow rays cast at each intersection –Why? –Because most rays wouldn’t reach the light source objectslights

Ray Tracing L(D)?S*E Workload badly distributed –Why? –Because # of rays grows exponentially, and their result becomes less influential objectslights

Tough Cases Caustics –Light focuses through a specular surface onto a diffuse surface –LSDE –Which direction should secondary rays be cast to detect caustic?

Tough Cases Bleeding –Color of diffuse surface reflected in another diffuse surface –LDDE –Which direction should secondary rays be cast to detect bleeding?

Path Tracing Kajiya, SIGGRAPH 86 Diffuse reflection spawns infinite rays Pick one ray at random Cuts a path through the dense ray tree Still cast an extra shadow ray toward light source at each step in path Trace 40 paths per pixel objectslights

Path Tracing pure Monte Carlo reverse ray-tracing –rays are randomly diffused multiple samples taken at each pixel (distributed ray-tracing) can produce all global illumination effects, but is slower than Photon Mapping –more noise at same number of iterations

Monte Carlo (MC) Methods Stochastic techniques –meaning they are based on the use of random numbers and probability statistics to investigate problems. Used in everything from economics to nuclear physics to regulating the flow of traffic. To call something a "Monte Carlo" experiment, all you need to do is use random numbers to examine some problem.

Monte Carlo (MC) Methods MC methods to model physical problems allows us to examine more complex systems than we otherwise can. Solving equations which describe the interactions between two atoms is fairly simple; solving the same equations for hundreds or thousands of atoms is impossible. With MC methods, a large system can be sampled in a number of random configurations, and that data can be used to describe the system as a whole. "Hit and miss" integration is the simplest type of MC method to understand

Advantages of MC Integration Few restrictions on the integrand – Doesn’t need to be continuous, smooth,... – Only need to be able to evaluate at a point Extends to high-dimensional problems –Same convergence Conceptually straightforward Efficient for solving at just a few points

Disadvantages of MC Integration Noisy Slow convergence Good implementation is hard – Debugging code – Debugging maths – Choosing appropriate techniques

MC in Graphics: what can we integrate? Pixel: antialiasing Light sources: soft shadows Lens: depth of field Time: motion blur BRDF: glossy reflection Hemisphere: indirect lighting

Path Tracing An extension to ray tracing Simulates global illumination –Can handle all possible light bounces L(S|D)*E Stochastically samples all light paths Handles area light sources, diffuse reflections Approximates the integral of illumination

Send a ray through a pixel Trace the ray to its first intersected object From the intersected object, send out –One ray to each light source –One additional ray a diffusely reflected ray, a specularly reflected ray, or a transmissive ray Trace the ray and recursively follow it, as above Produces a ray “path” – not a ray tree Path Tracing

Trace only one secondary ray per recursion But send many primary rays per pixel (performs anti-aliasing as well) Monte Carlo Path Tracing

Light ray Eye Image plane Light

Illuminance ray Eye Image plane Light Specular? Diffuse? Transmission?

Path Tracing This provides a Monte Carlo approach to global illumination Stochastic samples are taken that should represent the actual surface properties

Path Tracing The lighting distribution is sampled by tracing rays stochastically along all possible light paths Averaging a large number of sample rays gives an estimate of the integral of all light paths through the pixel

Selecting the ray to trace How do we select which ray to trace? Each material has a k d, k s, and k t –Let k tot = k d + k s + k t –Select a random number R in the range (0, k tot ) –if (R < k d ) then send diffuse ray –else if (R < k d + k s ) then send specular ray –else send transmission ray

Computing the Diffuse reflection We can compute a random direction as follows: –Given two random numbers  1 in [0,1] and  2 in [0,1], the randomly reflected direction  d is given by  d = (  ) = (cos -1 (sqrt(  1 )), 2  2 )

Problems Need to trace a lot of rays to get an accurate image Typically trace 100 – 1000 rays per pixel

Problems Need to trace a lot of rays to get an accurate image Typically trace 100 – 1000 rays per pixel

Radiosity Diffuse surfaces Subdivide scene Radiosity assumed constant over a patch Form-factor between patches Geometry and visibility Big Matrix system

Radiosity vs. Monte Carlo We have an integral equation on an infinite space Finite elements (Radiosity) –Project onto finite basis of functions –Linear system Monte Carlo –Probabilistic sampling

Radiosity vs. Monte Carlo We have an integral equation on an infinite space Finite elements (Radiosity) –Project onto finite basis of functions –Linear system –View-independent (no angular information) Monte Carlo –Probabilistic sampling –View-dependent (but angular information)