Path Space Regularization for Robust and Holistic Light Transport

Slides:



Advertisements
Similar presentations
Bidirectional Photon Mapping Jiří Vorba Charles University in Prague Faculty of Mathematics and Physics 1.
Advertisements

Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Advanced Computer Graphics
Anton S. Kaplanyan Karlsruhe Institute of Technology, Germany Path Space Regularization Framework.
Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
1. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
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.
Final Gathering on GPU Toshiya Hachisuka University of Tokyo Introduction Producing global illumination image without any noise.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
Computer Graphics (Spring 2008) COMS 4160, Lecture 22: Global Illumination
02/11/05© 2005 University of Wisconsin Last Time Direct Lighting Light Transport Equation (LTE) Intro.
-Global Illumination Techniques
The Natural-Constraint Representation of the Path Space for Efficient Light Transport Simulation Anton S. Kaplanyan 1,2 and Johannes Hanika 1 and Carsten.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
On robust Monte Carlo algorithms for multi-pass global illumination Frank Suykens – De Laet 17 September 2002.
Monte-Carlo Ray Tracing and
PATH INTEGRAL METHODS FOR LIGHT TRANSPORT SIMULATION THEORY & PRACTICE Jaroslav Křivánek Charles University Prague Juan Cañada Next Limit Technologies.
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.
02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.
Bidirectional Path Sampling Techniques
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.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
02/9/05© 2005 University of Wisconsin Last Time Lights Next assignment – Implement Kubelka-Munk as a BSDF.
PATH INTEGRAL FORMULATION OF LIGHT TRANSPORT Jaroslav Křivánek Charles University in Prague
Distributed Ray Tracing. Can you get this with ray tracing?
Distributed Ray Tracing. Can you get this with ray tracing?
Computer graphics III – Multiple Importance Sampling Jaroslav Křivánek, MFF UK
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
Sampling and Reconstruction of Visual Appearance
Recent Advances in Light Transport Simulation Theory & Practice
Ray Tracing via Markov Chain Monte-Carlo Method
Metropolis light transport
The Rendering Equation
Localizing the Delaunay Triangulation and its Parallel Implementation
© 2005 University of Wisconsin
(c) 2002 University of Wisconsin
Primary Sample Space Path Guiding
Path Tracing (some material from University of Wisconsin)
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Lighting.
Advanced Light Transport in the VFX/Archiviz industry
(c) 2002 University of Wisconsin
Efficient Importance Sampling Techniques for the Photon Map
Monte Carlo I Previous lecture Analytical illumination formula
Progressive Photon Mapping Toshiya Hachisuka Henrik Wann Jensen
Monte Carlo Path Tracing
Tips and Tricks for Gradient-domain Rendering Implementation
Bidirectional Path Sampling Techniques
CS5500 Computer Graphics May 29, 2006
Foundations of Computer Graphics (Spring 2012)
Metropolis Light Transit
CS 480/680 Computer Graphics Shading.
(Optimizing) Realistic Rendering with Many-Light Methods
Distributed Ray Tracing
Monte Carlo Path Tracing and Caching Illumination
open research problems
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

Path Space Regularization for Robust and Holistic Light Transport 19.09.2019 Path Space Regularization for Robust and Holistic Light Transport Anton S. Kaplanyan and Carsten Dachsbacher Karlsruhe Institute of Technology, Germany

Motivation Vertex Connection and Merging 19.09.2019 Even the most recent existing methods are either not good at or not capable of handling complex illumination, such as reflected caustics on the floor. In this work we will show how to combine the strengths of these methods together. The goal of our work is to compute the complete light transport solution, including different phenomena, such as reflected caustics.

Motivation Markov Chain Progressive Photon Mapping 19.09.2019 Even the most recent existing methods are either not good at or not capable of handling complex illumination, such as reflected caustics on the floor. In this work we will show how to combine the strengths of these methods together. The goal of our work is to compute the complete light transport solution, including different phenomena, such as reflected caustics.

Motivation MLT with Manifold Exploration 19.09.2019 Even the most recent existing methods are either not good at or not capable of handling complex illumination, such as reflected caustics on the floor. In this work we will show how to combine the strengths of these methods together. The goal of our work is to compute the complete light transport solution, including different phenomena, such as reflected caustics.

19.09.2019 Rendering Equation Equilibrium of Light Distribution 𝐿 𝑜 𝒙, 𝝎 𝒐 = 𝐿 𝑒 𝒙, 𝝎 𝒐 + 𝑆 2 𝐿 𝑖 𝒙, 𝝎 𝒊 𝑓 𝑟 𝒙, 𝝎 𝒊 , 𝝎 𝒐 𝑑 𝝈 ⊥ (𝝎 𝒊 ) How much light is reflected and emitted at 𝒙 into the direction 𝜔 to the observer? 𝒙  𝜔 𝑜 A short introduction to the source of the problem. The equilibrium of light propagation is described using a Fredholm integral equation of the second kind. This is a rendering equation and it describes the reflection distribution of light at the surface towards all directions. The integral is the convolution of the Bidirectional Reflectance Distribution Function (BRDF) with the distribution of the light incident to the surface. We are interested in the light coming towards the camera from all visible surfaces.

Path Tracing Multiple reflections are computed via recursion 19.09.2019 Path Tracing Multiple reflections are computed via recursion Full path constructed once hit the light source Monte Carlo samples are accumulated Recursive evaluation forms paths from the light source to the observer The first and the simplest method is called path tracing. The rays are shot from the camera and bounced until hit the light source. The complete paths are sampled stochastically and the rendering equation is solved using Monte Carlo integration. Area light source

Explicit Connection to Light 19.09.2019 Explicit Connection to Light Point light sources are impossible to hit Solution: Direct connection to the light source However it is impossible to directly hit a light source when rendering a scene in presence of point lights using path tracing. The point light model is a common mathematical model used in graphics for many real-world emitters with tiny emissive area. As a solution, such light sources are explicitly checked with direct connection at each interaction. Point light source

Non-Sampleable Paths Perfect mirror 19.09.2019 Non-Sampleable Paths Sometimes direct connection is not possible Last edge can be fixed by specular reflection However in some cases even direct connection does not solve the problem. Imagine a caustic. Typically in such case the interaction next to the light source is perfectly specular, such as mirror reflection or glass refraction. The direct connection always fails, since the connection direction should perfectly match the stochastic reflected direction. Perfect mirror

Previous Work: How Can We Connect? 19.09.2019 Previous Work: How Can We Connect? Bidirectional Path Tracing (BDPT) [LaFortune93, Veach94] Constructs paths from both directions Photon Mapping (PM) [Jensen96] Uses merging of proximate vertices Progressive PM (PPM) [Hachisuka08] Applies recursive density estimation Vertex Connection and Merging [Hachisuka12, Georgiev12] Unifies PPM and BDPT MLT + Manifold Exploration [Jakob12] Connects through a specular chain There is a lot of previous work on how to construct difficult paths using different connection methods and path construction approaches, namely 1. Bidirectional Path Tracing (BDPT) 2,3. Photon mapping and its progressive extension 4. Vertex Connection and Merging as a combination of BDPT and PPM 5. And the recent Manifold Exploration mutation strategy for Metropolis light transport. I will discuss each of these methods later on in my talk.

Non-Sampleable Paths Perfect mirror 19.09.2019 Non-Sampleable Paths Path tracing: Any path with deterministic interaction to point light Sampling probability is zero Caustics from point lights are missing Impossible-to-sample paths appear due to singularities Dirac deltas: Perfect reflections, refractions So the paths with the deterministic last interaction, such as caustics from point lights, cannot be constructed with path tracing. For example, in this simple image on the left, rendered with path tracing, the caustics on the floor are missing. This happens because the deterministic interaction is mathematically defined as a Dirac delta distribution, causing a singularity in the integrand. However there are more advanced methods that can sample caustics from point lights. Perfect mirror

Sampling with Bidirectional Path Tracing 19.09.2019 Sampling with Bidirectional Path Tracing Bidirectional path tracing (BDPT) samples subpaths from both ends Constructs the path with all possible deterministic connections One of them is bidirectional path tracing. It can potentially connect a given path at every edge, as illustrated on this path with four edges. So the first option is to trace all the way to the light and then do a direct connection to the light source at the last edge.

Sampling with Bidirectional Path Tracing 19.09.2019 Sampling with Bidirectional Path Tracing Bidirectional path tracing (BDPT) samples subpaths from both ends Constructs the path with all possible deterministic connections Or trace it further from the light and do a connection in the middle.

Sampling with Bidirectional Path Tracing 19.09.2019 Sampling with Bidirectional Path Tracing Bidirectional path tracing (BDPT) samples subpaths from both ends Constructs the path with all possible deterministic connections Or trace it further from the light and do a connection in the middle.

Sampling with Bidirectional Path Tracing 19.09.2019 Sampling with Bidirectional Path Tracing Bidirectional path tracing (BDPT) samples subpaths from both ends Constructs the path with all possible deterministic connections Or trace it all the way from the light source and do a direct connection to the camera sensor.

Sampling with Bidirectional Path Tracing 19.09.2019 Sampling with Bidirectional Path Tracing Bidirectional path tracing (BDPT) samples subpaths from both ends Constructs the path with all possible deterministic connections Given the same example of caustics, BDPT can connect to the camera BDPT can sample caustics from point lights Explicit evaluation of singularities Consider the previous example of a caustic. BDPT can construct such path starting from the light source by tracing up to the non-deterministic interaction, such as diffuse surface, and then connect to the camera. The trick is that BDPT bypasses the singularities, instead of attempting to stochastically connect at them.

Non-Sampleable Paths, Part II 19.09.2019 Non-Sampleable Paths, Part II Example: Reflected caustics from point light (LSDSE) What if all edges of the path contain singularities? No place to perform a connection Impossible to sample with any unbiased sampling [Veach97] However, again, even such sophisticated methods like BDPT can fail to construct a path in some cases. One of these cases is the reflected caustics. The problem here is that every edge adjoin a singularity at one of its ends. Such paths with no connectible edges are showed to be non-sampleable with local unbiased methods by Eric Veach. And there is a more fundamental reason for that. Let’s take a brief excursus.

Excursus: Undecidability of Ray Tracing 19.09.2019 Excursus: Undecidability of Ray Tracing Specular path tracing is undecidable [Reif et al. 1994] Task: Find all specular paths from one fixed point to another (DS+D) Impossible to find all such paths on a Turing machine Given arbitrary specular geometry Interestingly, it is not possible to find all specular paths from one fixed point to another on a Turing machine given an arbitrary configuration of surfaces. An example image on the left shows an EG logo modeled with point light sources placed over the curved water surface. The reflections of such light sources pose such an undecidable problem.

Non-Sampleable Paths, Part II 19.09.2019 Non-Sampleable Paths, Part II What if all edges of the path contain singularities? No place to perform connection Impossible to sample with any unbiased sampling Example: Reflected caustics from point light (LSDSE) Such paths cannot be found precisely Reflected caustics: Two undecidable subpaths Coming back to an example of reflected caustics, we can see that this path consists of two undecidable subpaths. Thus it does not matter from which direction to trace these subpaths, one of them will pose such problem during the connection.

Photon Mapping (a.k.a. Vertex Merging) 19.09.2019 Photon Mapping (a.k.a. Vertex Merging) What can we do about this problem? Merge nearby vertices instead of connecting them Imprecise path construction → Causes bias (blurring) everywhere Can construct paths with only one diffuse interaction The chance that two vertices are close is very low Large cache (photon map) is required Not a secret that photon mapping can sample such paths, considered non-sampleable by local unbiased methods. The reason is photon mapping constructs the full path by merging proximate vertices of different subpaths. This is a biased way, causing blurring of image features. However this way more difficult paths, such as reflected caustics, can be sampled. Note that the chance that two vertices happened to be located nearby is very low. Thus photon mapping requires a large cache of the light subpaths, called a photon map.

Photon Mapping: Under the Hood 19.09.2019 Photon Mapping: Under the Hood Photon mapping essentially regularizes the specular interactions Regularization angle depends on the connection distance On-surface radius is fixed for a given point It is a known mathematical procedure… What photon mapping is going during density estimation is also known as regularization in mathematics. Photon mapping regularizes the interaction by merging the path at the next vertex. The regularization angle, alpha, can be derived from the fixed photon mapping radius r and depends on the connection distance. It appears to be a standard mathematical procedure. We also use this procedure, however in a more smart way.

Regularization with Mollification 19.09.2019 Regularization with Mollification Example: Dirac delta: 𝛿 0 =+∞, 𝛿 𝑥 =0 for 𝑥≠0 ℝ 𝑓 𝑥 𝛿 𝑥 𝑑𝑥=𝑓(0) Mollification: Approximate delta distribution with a sequence of functions 𝜑 𝛼 with vanishing support Typically 𝜑 𝛼 = 1 𝛼 𝜑 0 𝑥/𝛼 , regularization angle 𝛼 Implicitly smoothes the integrand This procedure is called mollification. Given a singularity caused by a delta distribution, like the one at the right specular vertex; we construct a sequence of integrable smooth functions, that approach delta distribution in the limit. Then we shrink the regularization angle during the integration, making the integrand less and less smooth. 𝒇 𝒓 =𝜹

Selective Regularization of Path Space 19.09.2019 Selective Regularization of Path Space Goal: Minimize bias. Why smoothing a regular path? Photon mapping causes uniform bias everywhere Regularize only non-sampleable paths! Only if all edges join a singularity Can only be detected once all interactions are known So, now that we forumlated what is going on, we can selectively regularize only when necessary. Instead of regularizing all paths, including regular ones, we regularize only non-sampleable paths (irregular for the sampling method), thus minimizing the amount of bias. In case of BDPT, non-sampleable paths are detected if all edges of the path adjoin at least one singularity. This situation can be recognized only once all subpaths are traced and all interactions are known.

Combining Bidirectional Estimators 19.09.2019 Combining Bidirectional Estimators Assume a non-sampleable path is detected Which regularization option to choose? We propose a maximum connection distance heuristic Minimizes angular blurring Simple to handle and implement If the path generation method has multiple options of constructing the same path, such as a set of bidirectional estimators, then we need to choose between several different regularization options, as the two options for the same path in the bottom. Here we propose to use the maximum distance heuristic: we regularize only if the connection edge is the longest among other path edges. Given that the on-surface radius is fixed, we minimize the angular smoothing caused by the regularization. Also it is very easy to practically handle.

Combining Bidirectional Estimators 19.09.2019 Combining Bidirectional Estimators All regularization options Maximum distance heuristic The example shows all regularization options, equally weighted, on the left; and the maximum distance heuristic on the right. The bias caused by angular blurring is notably smaller on the right.

Comparison of Different Methods 19.09.2019 Comparison of Different Methods Reference Now we will compare different popular methods with regularization. This is a simple scene with caustics.

Comparison of Different Methods 19.09.2019 Comparison of Different Methods Path Tracing PT cannot sample both caustics and reflected caustics, thus requiring a lot of regularization. Regular paths Irregular paths Combined

Comparison of Different Methods 19.09.2019 Comparison of Different Methods Bidirectional Path Tracing BDPT only requires regularization when the path cannot be constructed with edge connection, thus requiring to regularize only reflected caustics. Note that the amount of noise caused by irregular paths is high because the regularization angle is small. Regular paths Irregular paths Combined

Comparison of Different Methods 19.09.2019 Comparison of Different Methods Metropolis Light Transport Finally, MLT solves the noise problem by implicitly caching the path it has already found before as a current state of Markov chain. Regular paths Irregular paths Combined

Observations Ordinary MC methods (PT, BDPT, …) need efficient caching 19.09.2019 Observations Ordinary MC methods (PT, BDPT, …) need efficient caching Markov chain Monte Carlo (MLT, …) resolves poor caching problem Mutates a path to explore the space of all light paths Inherent caching with the current path of Markov chain Regularization is simple to integrate into existing renderer As we have seen, the ordinary Monte Carlo methods suffer from noise, thus are usually used with some efficient caching, such as photon map. However Markov chain based methods, such as Metropolis light transport, naturally resolve this issue by caching the last important path as a current state of Markov chain. Regularization is also simple to implement. Here is a code of a minimalistic path tracing. Regularization requires some changes only to the evaluation routine for specular BRDF. The required additions are marked in red.

Observations Ordinary MC methods (PT, BDPT, …) need efficient caching 19.09.2019 Observations Ordinary MC methods (PT, BDPT, …) need efficient caching Markov chain Monte Carlo (MLT, …) resolves poor caching problem Mutates a path to explore the space of all light paths Inherent caching with the current path of Markov chain Regularization is simple to integrate into existing renderer Path Tracer Path Tracer with Regularization And you can see that with these small changes path tracing can already handle caustics of all kinds from point lights.

Consistency Converge to correct solution 19.09.2019 Consistency Converge to correct solution Shrink regularization bandwidth Can be combined with all Monte Carlo methods (PT, BDPT, ...) Consistent if 𝑂 𝑛 −1/𝑑 < 𝛼 𝑛 <𝑂(1), details in the paper Can be combined with Markov chain MC (e.g., Metropolis light transport) Consistent if 𝑂 𝛾 𝑛 < 𝛼 𝑛 <𝑂 1 , details in the paper In order to make sure the regularization converges to correct solution in the limit, we need to decrease the regularization angle throughout the integration. The Monte Carlo methods have the same shrinkage conditions as progressive photon mapping, which is not surprising. However the MCMC methods, such as MLT, require slightly different rate. Please see the details in the paper.

Combination with Manifold Exploration 19.09.2019 Combination with Manifold Exploration Enables unbiased sampling of non-sampleable paths! Regularization provides local parameterization Manifold exploration explores the surrounding paths Avoids the undecidability By finding a local parameterization Unbiased reflected caustics Recent manifold exploration mutation can connect two vertices through a chain of specular interactions, given a valid local parameterization for the connection. We deliver a method, which almost surely provides the local parameterization for non-samplable paths, making the unbiased sampling of such paths practical. This way we avoid stating undecidable problems. MLT+ME MLT+ME with Regularization

Conclusions and Future Work 19.09.2019 Conclusions and Future Work Framework for regularization of singularities Simple and orthogonal to the integration method Selective regularization only for non-sampleable features Existing consistent methods are special cases Avoid the undecidability of specular paths Provide a local parameterization Explore with advanced mutations Future work: Regularization for near-specular interactions Heuristic for near-specular interactions Combine with unbiased estimators 1. We presented a selective regularization framework for path space. a. This framework is independent on the integration method and can be used with any existing one. b. We have showed that the biased regularization is necessary only for irregular paths. c. We have explained why photon mapping can sample paths considered irregular by all local unbiased methods. 2. By providing proper seeds, we showed for the first time how to sample complex paths in unbiased way using the recent advanced methods. We believe that our framework is just a foundation for many follow-up consistent methods, that can speed up the practical rendering. For example, the interactions are usually not “black and white”, so near-specular interactions can be as difficult to handle as specular ones. We leave this problem for the future work, since it requires more in-depth analysis of interactions and the efficient combination with unbiased estimators.

Thank you for your attention 19.09.2019 Markov Chain PPM Metropolis Light Transport Metropolis Light Transport with Regularization Thank you for your attention Questions?