Many-light methods – Clamping & compensation

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

Miloš Hašan Jaroslav Křivánek Philipp Slusallek Kavita Bala Combining Global and Local Virtual Lights for Detailed Glossy Illumination Tomáš Davidovič.
Improved Radiance Gradient Computation Jaroslav Křivánek Pascal Gautron Kadi Bouatouch Sumanta Pattanaik ComputerGraphicsGroup.
Global Illumination Across Industries Jaroslav Křivánek Cornell University & Charles University, Prague Marcos Fajardo Solid Angle SL Per Christensen Pixar.
Scalability with Many Lights 1 Lightcuts & Multidimensonal Lightcuts Course: Realistic Rendering with Many-Light Methods Note: please see website for the.
Scalable many-light methods Jaroslav Křivánek Charles University in Prague.
Computer graphics & visualization Global Illumination Effects.
Chunhui Yao 1 Bin Wang 1 Bin Chan 2 Junhai Yong 1 Jean-Claude Paul 3,1 1 Tsinghua University, China 2 The University of Hong Kong, China 3 INRIA, France.
Computer Graphics (Fall 2008) COMS 4160, Lecture 18: Illumination and Shading 1
Advanced Computer Graphics
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
RADIOSITY Submitted by CASULA, BABUPRIYANK. N. Computer Graphics Computer Graphics Application Image Synthesis Animation Hardware & Architecture.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Subsurface scattering
Scalability with many lights II (row-column sampling, visibity clustering) Miloš Hašan.
Real-Time Rendering Paper Presentation Imperfect Shadow Maps for Efficient Computation of Indirect Illumination T. Ritschel T. Grosch M. H. Kim H.-P. Seidel.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lectures 18, 19: Monte Carlo Integration Ravi Ramamoorthi Acknowledgements.
Photon Tracing with Arbitrary Materials Patrick Yau.
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Computer Graphics (Spring 2008) COMS 4160, Lecture 20: Illumination and Shading 2
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Matrix Row-Column Sampling for the Many-Light Problem Miloš Hašan (Cornell University) Fabio Pellacini (Dartmouth College) Kavita Bala (Cornell University)
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 20: Monte Carlo Path Tracing Ravi Ramamoorthi Acknowledgements.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
The Radiosity Method Donald Fong February 10, 2004.
Paper by Alexander Keller
1 Dr. Scott Schaefer Radiosity. 2/38 Radiosity 3/38 Radiosity Physically based model for light interaction View independent lighting Accounts for indirect.
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.
Selected Topics in Global Illumination Computation Jaroslav Křivánek Charles University, Prague
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.
-Global Illumination Techniques
Path Integral Formulation of Light Transport
Improved VPL Distribution Jaroslav Křivánek Charles University in Prague (Optimizing) Realistic Rendering with Many-Light Methods (part of the “Handling.
Real-time Shading with Filtered Importance Sampling Jaroslav Křivánek Czech Technical University in Prague Mark Colbert University of Central Florida.
1 Photon-driven Irradiance Cache J. BrouillatP. GautronK. Bouatouch INRIA RennesUniversity of Rennes1.
1 Implicit Visibility and Antiradiance for Interactive Global Illumination Carsten Dachsbacher 1, Marc Stamminger 2, George Drettakis 1, Frédo Durand 3.
Real-time Indirect Lighting Using Clustering Visibility Zhao, Tobias, Thorsten, Jan* *University College London.
Towards a Taxonomy of Global Illumination Algorithms Philip Dutré Program of Computer Graphics Cornell University.
Using Interactive Ray Tracing for Interactive Global Illumination Computer Graphics Lab Saarland University, Germany
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Differential Instant Radiosity for Mixed Reality Martin Knecht, Christoph Traxler, Oliver Mattausch, Werner Purgathofer, Michael Wimmer Institute of Computer.
Global Illumination. Local Illumination  the GPU pipeline is designed for local illumination  only the surface data at the visible point is needed to.
Computer Graphics (Spring 2003) COMS 4160, Lecture 18: Shading 2 Ravi Ramamoorthi Guest Lecturer: Aner Benartzi.
Radiosity 1. 2 Introduction Ray tracing best with many highly specular surfaces ­Not real scenes Rendering equation describes general shading problem.
Handling Difficult Light Paths (virtual spherical lights) Miloš Hašan UC Berkeley Realistic Rendering with Many-Light Methods.
02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.
02/2/05© 2005 University of Wisconsin Last Time Reflectance part 1 –Radiometry –Lambertian –Specular.
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.
Radiance Cache Splatting: A GPU-Friendly Global Illumination Algorithm P. Gautron J. Křivánek K. Bouatouch S. Pattanaik.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
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?
Toward Real-Time Global Illumination. Global Illumination == Offline? Ray Tracing and Radiosity are inherently slow. Speedup possible by: –Brute-force:
Toward Real-Time Global Illumination. Project Ideas Distributed ray tracing Extension of the radiosity assignment Translucency (subsurface scattering)
Computer graphics III – Rendering equation and its solution
Miloš Hašan UC Berkeley Jaroslav Křivánek Charles University in Prague (Optimizing) Realistic Rendering with Many-Light Methods An ACM SIGGRAPH 2012 course.
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.
Advanced Computer Graphics
The Rendering Equation
Path Tracing (some material from University of Wisconsin)
Incremental Instant Radiosity for Real-Time Indirect Illumination
Radiosity Dr. Scott Schaefer.
Virtual Spherical Lights for Many-Light Rendering of Glossy Scenes
(c) 2002 University of Wisconsin
Presentation transcript:

Many-light methods – Clamping & compensation Jaroslav Křivánek Charles University, Prague

Virtual Point Lights (VPLs) Instant radiosity Approximate indirect illumination by Virtual Point Lights (VPLs) Generate VPLs Render with VPLs

Clamping 1000 VPLs - no clamping 1000 VPLs - clamping reference (path tracing) missing energy

Clamping Compensation Kollig & Keller, MCQMC 2004

Idea Clamping reduces variance but some energy is lost Find formula for the lost energy Compute the lost energy by selective path tracing full solution clamping path tracing compensation

Clamping min{ c, } p wo x VPL power VPL emission distribution (BRDF lobe at p – for a diffuse VPL can be folded into F) min{ c, } Geometry term p Visibility wo x

Formal derivation Clamping evaluates this equation Can be written as

Path tracing compensation of the clamped energy What’s missing? Unbiased solution VPLs w/ clamping Path tracing compensation of the clamped energy

Result Compensation faster than path tracing everything (many path terminated early) full solution clamping path tracing compensation

Biased result with clamping

Unbiased result with compensation

Dealing with Glossy Transport

Instant radiosity with glossy surfaces Ground truth 1,000 VPLs 100,000 VPLs

Effect of clamping artifacts material change VPL GI reference VPLs w/ clamping

Virtual Spherical Lights Hašan, Křivánek & Bala, SIGGRAPH Asia 2009

Emission distribution of a VPL Cosine-weighted BRDF lobe at the VPL location Glossy Diffuse

Glossy VPL emission: illumination spikes If you render the scene with VPLs defined this way your will get an image with a lot of splotches. Each splotch corresponds to the spike in the emission distribution of a single VPL. For example, the streak on the ceiling is caused by a VPL located on a highly anisotropic glossy surface. The common solution in instant radiosity is to ignore the glossy component of the BRDF at the light location which produces VPLs with very uniform emission distribution. Common solution: Only diffuse BRDF at light location

Remaining spikes

Remaining spikes VPL contribution = VPL power . BRDF(x) . cos(x) . 1 / || p – x ||2 As || p – x || → 0, VSL contribution → ∞ p spike! x x Common solution: Clamp VPL contributions

Instant radiosity: The practical version Clamping and diffuse-only VPLs: Illumination is lost!

Comparison Clamped VPLs: Illumination loss Path tracing: Slow

Recall: Emission Distribution of a VPL Spike!

What happens as #lights   ? Spiky lights converge to a continuous function!

Idea: We want a “virtual area light” Aggregate incoming illumination Aggregate outgoing illumination “Virtual area light” Problem: What if surface is not flat?

VPL to VSL Ω p l x Non-zero radius (r) Integration over non-zero solid angle Non-zero radius (r) p l More specifically, we well spread the light energy over the surfaces inside the sphere of radius r centered at the light position p. And the contribution of the light will be computed as an integral over the solid angle subtended by the sphere. x

Light Contribution Ω p y l x Non-zero radius (r) Integration over non-zero solid angle Non-zero radius (r) p y l Let’s write down the formula for the contribution of such a light to the surface point x. We have the integration over the solid angle. The integrand is a product of the following terms: the cosine weighted BRDF at the surface, next, the BRDF at the point y n the vicinity of the light location. Finally, we have an indicator term that is zero for all the directions that correspond to surface point y outside the sphere. We normalize the integration by the expected surface area inside the sphere, pi*r^2, and multiply by the light flux. To avoid this indicator term, we could define the light contribution as an integral over a disk area. Unfortunately, doing that re-introduces the infamous 1/dist^2 term and produces bad results (we tried it). x

Problem: Finding y requires ray-tracing Light Contribution Ω Integration over non-zero solid angle Non-zero radius (r) p y l Problem: Finding y requires ray-tracing Unfortunately, this formulation requires finding the point y for all directions l inside the cone, which required ray tracing. This is clearly not feasible. x

Simplifying Assumptions Ω Integration over non-zero solid angle Non-zero radius (r) p y Constant in Ω: Visibility Surface normal Light BRDF l To produce a computationally convenient approximation to the previous formula, we make the following simplifying assumptions. We assume that the visibility, the surface normal and the BRDF are constant inside the sphere. And we take them from the light location p. x Taken from p, the light location

Light Contribution Updated Ω Integration over non-zero solid angle Non-zero radius (r) p l With these assumptions, we can write a formula for the contribution of a VSL: x

Virtual Spherical Light All inputs taken from x and p Local computation Same interface as any other light Can be implemented in a GPU shader Visibility factored from the integration Can use shadow maps

Implementation Matrix row-column sampling Shadow mapping for visibility VSL integral evaluated in a GPU shader Need more lights than in diffuse scenes

Results: Kitchen Most of the scene lit indirectly Many materials glossy and anisotropic Path tracing: 316 hours (8 cores) Clamped VPLs 34 sec (GPU) – 2000 lights New VSLs: 4 min 4 sec (GPU) – 10000 lights

Results: Disney concert hall Curved walls with no diffuse component Standard VPLs cannot capture any reflection from walls Path tracing: 30 hours (8 cores) Clamped VPLs: 22 sec (GPU) – 4000 lights New VSLs: 1 min 26 sec (GPU) – 15000 lights

Results: Anisotropic tableau Difficult case Standard VPLs capture almost no indirect illumination Path tracing: 2.2 hours (8 cores) Clamped VPLs: 32 sec (GPU) – 1000 lights New VSLs: 1 min 44 sec (GPU) – 5000 lights

Limitations: Blurring VSLs can blur illumination Converges as number of lights increases 5,000 lights - blurred 1,000,000 lights - converged

Conclusions Many-light methods do not deal well with glossy scenes Artifacts or energy loss Energy loss -> change of material perception Handling glossy effects with many-lights Virtual Spherical Lights [Davidovič et al. 2010]