Efficient Importance Sampling Techniques for the Photon Map Ingo Wald University of Saarbrücken Alexander Keller University of Kaiserslautern.

Slides:



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

Computer graphics & visualization Global Illumination Effects.
Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
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.
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.
ATEC Procedural Animation Introduction to Procedural Methods in 3D Computer Animation Dr. Midori Kitagawa.
Paper Presentation - An Efficient GPU-based Approach for Interactive Global Illumination- Rui Wang, Rui Wang, Kun Zhou, Minghao Pan, Hujun Bao Presenter.
Real-Time Rendering Paper Presentation Imperfect Shadow Maps for Efficient Computation of Indirect Illumination T. Ritschel T. Grosch M. H. Kim H.-P. Seidel.
Efficient Simulation of Light Transport in Scenes with Participating Media using Photon Maps Paper by Henrik Wann Jensen, Per H. Christensen Presented.
Monte Carlo Integration Robert Lin April 20, 2004.
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.
Radiosity A Fascinating Presentation by Alex Danilevky.
Final Gathering on GPU Toshiya Hachisuka University of Tokyo Introduction Producing global illumination image without any noise.
Everything on Global Illumination Xavier Granier - IMAGER/UBC.
Recent Advances in Radiosity Philippe Bekaert Department of Computer Science K.U.Leuven.
Time-Dependent Photon Mapping Mike Cammarano Henrik Wann Jensen EGWR ‘02.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
Paper by Alexander Keller
EGWR 2000 Metropolis Light Transport for Participating Media Mark Pauly Thomas KolligAlexander Keller ETH ZürichUniversity of Kaiserslautern.
Lecture 12 Monte Carlo Simulations Useful web sites:
Direct Illumination with Lazy Visibility Evaluation David Hart Philip Dutré Donald P. Greenberg Cornell University SIGGRAPH 99.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Radiosity K. H. Ko School of Mechatronics Gwangju Institute.
Ray Tracing and Photon Mapping on GPUs Tim PurcellStanford / NVIDIA.
Realtime Caustics using Distributed Photon Mapping Johannes Günther Ingo Wald * Philipp Slusallek Computer Graphics Group Saarland University ( * now at.
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.
Photon Mapping (PM), Progressive PM, Stochastic PPM Jiří Vorba.
Jonathan M Chye Technical Supervisor : Mr Matthew Bett 2010.
-Global Illumination Techniques
Computer graphics & visualization Photon Mapping.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
Global Illumination with a Virtual Light Field Mel Slater Jesper Mortensen Pankaj Khanna Insu Yu Dept of Computer Science University College London
Improved VPL Distribution Jaroslav Křivánek Charles University in Prague (Optimizing) Realistic Rendering with Many-Light Methods (part of the “Handling.
1 Photon-driven Irradiance Cache J. BrouillatP. GautronK. Bouatouch INRIA RennesUniversity of Rennes1.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Radiosity K. H. Ko School of Mechatronics Gwangju Institute.
Using Interactive Ray Tracing for Interactive Global Illumination Computer Graphics Lab Saarland University, Germany
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
- Laboratoire d'InfoRmatique en Image et Systèmes d'information
Instant Radiosity Alexander Keller University Kaiserslautern Present by Li-Fong Lin.
On robust Monte Carlo algorithms for multi-pass global illumination Frank Suykens – De Laet 17 September 2002.
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.
© Machiraju/Möller Rendering Equation Various Solutions cis782 Advanced Computer Graphics Raghu Machiraju.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
Monte Carlo Path Tracing
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Photon Mapping and Irradiance Caching.
Fast Global Illumination Including Specular Effects Xavier Granier 1 George Drettakis 1 Bruce J. Walter 2 1 iMAGIS -GRAVIR/IMAG-INRIA iMAGIS is a joint.
Global Illumination (3) Photon Mapping (1). Overview Light Transport Notation Path Tracing Photon Mapping –Photon Tracing –The Photon Map.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
Distributed Ray Tracing. Can you get this with ray tracing?
© 2005 University of Wisconsin
(c) 2002 University of Wisconsin
Simple and Robust Iterative Importance Sampling of Virtual Point Lights Iliyan Georgiev Philipp Slusallek.
Progressive Photon Mapping
Path Tracing (some material from University of Wisconsin)
Real-time Volumetric Lighting in Participating Media
(c) 2002 University of Wisconsin
Efficient Importance Sampling Techniques for the Photon Map
Metropolis Light Transport for Participating Media
Monte Carlo Path Tracing and Caching Illumination
Monte Carlo Integration
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

Efficient Importance Sampling Techniques for the Photon Map Ingo Wald University of Saarbrücken Alexander Keller University of Kaiserslautern

Outline Overview: The Photon Map methodOverview: The Photon Map method New importance sampling techniques for the Photon MapNew importance sampling techniques for the Photon Map –Probabilistic photon deposition –Automatic caustic generation –Faster direct illumination computation SummarySummary

The Photon Map (Jensen,’95-’98) Basic idea : Density estimation with a discrete density of photonsBasic idea : Density estimation with a discrete density of photons  2-step algorithm –Photon generation stage Emit photons on light sourcesEmit photons on light sources Random walk (trace photons through scene)Random walk (trace photons through scene) Store interactions (position x, power phi, …)Store interactions (position x, power phi, …) –Rendering : Modified distribution ray tracing Approximate radiance by density estimationApproximate radiance by density estimation Query k nearest photonsQuery k nearest photons Density estimation: radiance = sumOfEnergies/coveredAreaDensity estimation: radiance = sumOfEnergies/coveredArea Estimate too coarse to be visualized directly  Use only indirectly (final gather)Estimate too coarse to be visualized directly  Use only indirectly (final gather)

Photon Generation Original algorithm: Pure forward simulationOriginal algorithm: Pure forward simulation  Visual importance not taken into account  Photon density is high (only) where illumination is high  Problematic whenever photon density doesn’t match importance distribution –High density (high cost) in unimportant regions –Low density (low quality) in important region

Bad Importance Distribution - Examples importance distribution photon distribution

Bad Importance Distribution - Examples importance distribution photon distribution

Importance Driven Photon Maps Photon generation stage is relatively cheapPhoton generation stage is relatively cheap  Invest more time in photon generation to improve rendering Goal : Concentrate photons in important regionsGoal : Concentrate photons in important regions  Two approaches : Guide photons to important regions (Peter, Pietrek, ‘98)Guide photons to important regions (Peter, Pietrek, ‘98) Discard unimportant photonsDiscard unimportant photons Guiding photons often problematicGuiding photons often problematic –Fails for highly improbable light paths –Generates noise in photon energies (  artifacts)  Our approach: Discard unimportant photons  Probabilistic photon deposition –Similar work : Suykens at al, EGWR 2000

Probabilistic Photon Deposition Initialization stage : Approximate importanceInitialization stage : Approximate importance –Shoot ‘importons’ from camera into scene –Store in separate importance map Photon tracing stagePhoton tracing stage –Generate deposition probability P for each new photon Based on importance of photon locationBased on importance of photon location Approximate importance with density estimationApproximate importance with density estimation –Stochastically discard unimportant photons Discard with probability (1-P)Discard with probability (1-P) On acceptance : Deposit photon with new energy phi/POn acceptance : Deposit photon with new energy phi/P –Make sure that P = 1 in important regions  No noise in photon energies  Unbiased

Probabilistic Photon Deposition - Results  Efficiently discards unimportant photons

Probabilistic Photon Deposition - Results  Efficiently discards unimportant photons importance distribution photons, not importance driven Comparison at same number of traced photons :

Probabilistic Photon Deposition - Results  Efficiently discards unimportant photons importance distribution photons, not importance driven photons, importance driven Comparison at same number of traced photons :

Probabilistic Photon Deposition - Results importance distribution photons old method photons, importance driven Comparison at same number of stored photons :

Probabilistic Photon Deposition - Results importance distribution photons old method photons, importance driven Comparison at same number of stored photons : without importanceimportance driven Impact on final image (same number of stored photons)

Probabilistic Photon Deposition Two ways to look at results: “Emit same number of photons” –Same quality (no important photons are discarded) –Less photons during rendering phase less storageless storage “Same number of photons during rendering” –Higher photon tracing cost (often small compared to rendering) –Better quality all photons are importantall photons are important higher density in important regionshigher density in important regions –Often only way to reach required density if total number of photons is limited (available memory)

Automatic Caustic Generation Problem: Caustics need higher photon densityProblem: Caustics need higher photon density –Final gather only works for diffuse indirect illumination  Caustics have to be visualized directly (artifacts)  Higher density required Jensen: Shoot caustic photons separatelyJensen: Shoot caustic photons separately –Shoot directly to caustic generating objects  Generates only direct caustics Our approach : Extend importance driven photon depositionOur approach : Extend importance driven photon deposition –Trace S times as many photons  Discard non-caustics photons with probability (S-1)/S

Automatic Caustic Generation  Results –Photon generation S (typically 5-20) times as costly (Still often small compared to total rendering time) –Increases caustic density by factor S –Automatically generates indirect caustics

Automatic Caustic Generation  Results –Photon generation S (typically 5-20) times as costly (Still often small compared to total rendering time) –Increases caustic density by factor S –Automatically generates indirect caustics original caustic density

Automatic Caustic Generation  Results –Photon generation S (typically 5-20) times as costly (Still often small compared to total rendering time) –Increases caustic density by factor S –Automatically generates indirect caustics original caustic densityhigher caustic density (S=20)

Direct Illumination Direct illumination calculated separatelyDirect illumination calculated separately –Photon Map estimate too coarse  Monte Carlo sampling of light sources –Send shadow rays to each light source  Very expensive for lots of light sources –Real scenes: Large fraction of lights often occluded  Sampling all sources equally is inefficient  Importance sampling  Shoot more samples to ‘important’ light sources

Importance Driven Direct Illumination Photon driven direct illumination computationPhoton driven direct illumination computation –Estimate light source importances with Photon Map Rough estimate is enough for importance samplingRough estimate is enough for importance sampling Tag direct photons with light source idTag direct photons with light source id –Rendering: Estimate contribution from each light source Based on k nearest direct photonsBased on k nearest direct photons –Select number of shadow rays per light source relative to that light source’s importance Missing light sourcesMissing light sources –Light source may ‘by chance’ not contribute a photon  Artifacts –Highly improbable if query radius is large enough

Importance Driven Direct Illumination  Efficiently excludes unimportant light sources  Significantly less shadow rays Better quality at same rendering timeBetter quality at same rendering time

Importance Driven Direct Illumination  Efficiently excludes unimportant light sources  Significantly less shadow rays Better quality at same rendering timeBetter quality at same rendering time Comparison at identical rendering times: original methodimportance driven

Summary Presented three new extensions to the Photon Map Importance driven photon depositionImportance driven photon deposition –Makes complex scenes tractable Automatic caustic generationAutomatic caustic generation –Can generate indirect caustics Importance driven direct illuminationImportance driven direct illumination –Much faster for lots of light sources with varying importance

Questions ?