Primary Sample Space Path Guiding

Slides:



Advertisements
Similar presentations
PRAGMA – 9 V.S.S.Sastry School of Physics University of Hyderabad 22 nd October, 2005.
Advertisements

Bayesian Belief Propagation
Bidirectional Photon Mapping Jiří Vorba Charles University in Prague Faculty of Mathematics and Physics 1.
Multidimensional Lightcuts Bruce Walter Adam Arbree Kavita Bala Donald P. Greenberg Program of Computer Graphics, Cornell University.
Scalability with Many Lights 1 Lightcuts & Multidimensonal Lightcuts Course: Realistic Rendering with Many-Light Methods Note: please see website for the.
Topology-Caching for Dynamic Particle Volume Raycasting Jens Orthmann, Maik Keller and Andreas Kolb, University of Siegen.
IIIT Hyderabad Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad,
Anton S. Kaplanyan Karlsruhe Institute of Technology, Germany Path Space Regularization Framework.
Optimal Design Laboratory | University of Michigan, Ann Arbor 2011 Design Preference Elicitation Using Efficient Global Optimization Yi Ren Panos Y. Papalambros.
Paper Presentation - An Efficient GPU-based Approach for Interactive Global Illumination- Rui Wang, Rui Wang, Kun Zhou, Minghao Pan, Hujun Bao Presenter.
Content Based Image Clustering and Image Retrieval Using Multiple Instance Learning Using Multiple Instance Learning Xin Chen Advisor: Chengcui Zhang Department.
Monte Carlo Integration Robert Lin April 20, 2004.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lectures 18, 19: Monte Carlo Integration Ravi Ramamoorthi Acknowledgements.
Advanced Computer Graphics (Fall 2009) CS 294, Rendering Lecture 5: Monte Carlo Path Tracing Ravi Ramamoorthi
EGWR 2000 Metropolis Light Transport for Participating Media Mark Pauly Thomas KolligAlexander Keller ETH ZürichUniversity of Kaiserslautern.
FLANN Fast Library for Approximate Nearest Neighbors
Ray Tracing and Photon Mapping on GPUs Tim PurcellStanford / NVIDIA.
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
Selected Topics in Global Illumination Computation Jaroslav Křivánek Charles University, Prague
A General Framework for Tracking Multiple People from a Moving Camera
-Global Illumination Techniques
Volume radiosity Michal Roušal University of West Bohemia, Plzeň Czech republic.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Continuous Variables Write message update equation as an expectation: Proposal distribution W t (x t ) for each node Samples define a random discretization.
Interactive Rendering With Coherent Ray Tracing Eurogaphics 2001 Wald, Slusallek, Benthin, Wagner Comp 238, UNC-CH, September 10, 2001 Joshua Stough.
Charles University in Prague
Efficient Streaming of 3D Scenes with Complex Geometry and Complex Lighting Romain Pacanowski and M. Raynaud X. Granier P. Reuter C. Schlick P. Poulin.
On robust Monte Carlo algorithms for multi-pass global illumination Frank Suykens – De Laet 17 September 2002.
Parallel and Distributed Simulation Time Parallel Simulation.
PATH INTEGRAL METHODS FOR LIGHT TRANSPORT SIMULATION THEORY & PRACTICE Jaroslav Křivánek Charles University Prague Juan Cañada Next Limit Technologies.
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.
02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.
Bidirectional Path Sampling Techniques
Monte Carlo Path Tracing
Real-Time Lens Blur Effects and Focus Control Sungkil Lee, Elmar Eisemann, and Hans-Peter Seidel Sunyeong Kim Nov. 23 nd
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.
Computer graphics III – Multiple Importance Sampling Jaroslav Křivánek, MFF UK
Journal of Computational and Applied Mathematics Volume 253, 1 December 2013, Pages 14–25 Reporter : Zong-Dian Lee A hybrid quantum inspired harmony search.
3D Rendering 2016, Fall.
Hybrid Ray Tracing and Path Tracing of Bezier Surfaces using a mixed hierarchy Rohit Nigam, P. J. Narayanan CVIT, IIIT Hyderabad, Hyderabad, India.
Sampling and Reconstruction of Visual Appearance
Learning Mid-Level Features For Recognition
Mastering the game of Go with deep neural network and tree search
Recent Advances in Light Transport Simulation Theory & Practice
Reconstruction For Rendering distribution Effect
Ray Tracing via Markov Chain Monte-Carlo Method
Probabilistic Data Management
Metropolis light transport
Machine Learning Basics
Clustering (3) Center-based algorithms Fuzzy k-means
Orthogonal Range Searching and Kd-Trees
The Rendering Equation
Accelerated Single Ray Tracing for Wide Vector Units
Simple and Robust Iterative Importance Sampling of Virtual Point Lights Iliyan Georgiev Philipp Slusallek.
Path Tracing (some material from University of Wisconsin)
Igor V. Cadez, Padhraic Smyth, Geoff J. Mclachlan, Christine and E
Homework #3 Environment Lights
Efficient Importance Sampling Techniques for the Photon Map
Monte Carlo Path Tracing
Tips and Tricks for Gradient-domain Rendering Implementation
Metropolis Light Transport for Participating Media
EE368 Soft Computing Genetic Algorithms.
Computer Graphics III Winter Term 2016 Organization
Monte Carlo Path Tracing and Caching Illumination
Path Space Regularization for Robust and Holistic Light Transport
open research problems
Directional Occlusion with Neural Network
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

Primary Sample Space Path Guiding Jerry Jinfeng Guo1, Pablo Bauszat1, Jacco Bikker2 and Elmar Eisemann1 3-July-2018 1: Delft University of Technology, the Netherlands 2: Utrecht University, the Netherlands

Background Realistic rendering via light transport simulation Path tracing and bi-directional path tracing Monte Carlo integration to solve the equation 11/21/201811/21/2018

Path Construction 101 Motivation in 2D 11/21/201811/21/2018

Related Work – Path Guiding 11/21/201811/21/2018

Related Work – Path Guiding Reduce Zero Radiance Paths Guide rays towards more promising region Essentially importance sampling PG with pre-computed caches [1][2] On-line PG [3][4] PG with reinforced approach [5] [1] Jensen et al. "Photon maps in bidirectional Monte Carlo ray tracing of complex objects.“, 1995  [2] Hey et al. "Importance sampling with hemispherical particle footprints.", 2002 [3] Vorba et al. "On-line learning of parametric mixture models for light transport simulation.", 2014  [4] Müller et al. "Practical Path Guiding for Efficient Light‐Transport Simulation.", 2017 [5] Dahm, Ken, and Alexander Keller. "Learning light transport the reinforced way.", 2017 11/21/201811/21/2018

Related Work – Primary Sample Space Metropolis light transport [7] Path configurations as samples Correlate samples as Markov states Mutation done by tweaking path configuration Primary sample space MLT [8] Tweaking random numbers Ease of implementation Primary samples: vectors of random numbers [ …, 0.6541869, 0.2548385, 0.1089318, … ] [ …, 0.7041869, 0.2358438, 0.0998318, … ] [7] Veach et al. "Metropolis light transport.“, 1997  [8] Kelemen et al. "A simple and robust mutation strategy for the metropolis light transport algorithm.", 2002. 11/21/201811/21/2018

Our Objective To build a structure that affects sample generation Takes as input samples from standard RNG Output are samples more concentrated in valuable regions 11/21/201811/21/2018

Distinction All methods build spatial-directional structures in scene space Spatially distributed (3D) Hemispherical or spherical representation (2D) We work solely in primary sample space Out-of-kernel feature No need to explicitly build structures in scene space Clarification This project is about unidirectional path guiding No Metropolis sampling involved 11/21/201811/21/2018

Overview A standard path tracing solution: {u0, u1, u2, u3, …} Luminance Sampler Path Tracer Final Image 11/21/201811/21/2018

Overview Our primary sample space guided path tracing: {u0, u1, u2, u3, …} {u’0, u’1, u’2, u’3, …} Sampler K-d Tree Path Tracer Luminance {u’0, u’1, u’2, u’3, …}, L Final Image Last Iteration? 11/21/201811/21/2018

Method – Our Structure We use a K dimensional binary tree as our structure K = MxN: M: bounces N: fixed random numbers each bounce consumes Each node encodes: Leaf flag Counter or right child index Luminance value 11/21/201811/21/2018

Tree construction (refinement) Method – Outline Sample collection Tree construction (refinement) Tree sampling Rendering 11/21/201811/21/2018

Method – Sample Collection 11/21/201811/21/2018

Method – Sample Collection We use a two-tree design: one for sampling, one for collection Tree traversal, with samples & luminance ({u’0, u’1, u’2, u’3, …}, L) {u’0, u’1, u’2, u’3}, L Node Range for u0 Add luminance value Is Leaf? Get axis ui Get split via range[] ui Go left? Update Range for u1 Range for u2 Range for u3 … depth 11/21/201811/21/2018

Method – Tree Construction 11/21/201811/21/2018

Method – Tree Construction Start with an empty tree Refine the tree after each iteration Refine the collection tree Copy it to the sample tree Node division criteria: leaf node counter 11/21/201811/21/2018

Method – Tree Sampling 11/21/201811/21/2018

Method – Tree Sampling Tree traversal, with primary sample {u0, u1, u2, u3, …}, {u0, u1, u2, u3} Range for u0 Range for u1 Range for u2 Range for u3 Node Is Leaf? Go left? Comp. value Get axis ui Split range[] ui Update … pdf depth 11/21/201811/21/2018

Method – Tree Sampling With ranges available, we get the transformed sample by warping the input sample into these ranges We use a parameter to balance tree sampling and uniform random numbers 11/21/201811/21/2018

Method – Rendering

Method – Rendering Feed the path tracer with transformed sample Simply fetch random number from a proper RNG after the end The final path length is not limited by k-d tree dimension Combine guided with uniform using multiple importance sampling Correctly reweight results using the pdf that comes along: 11/21/201811/21/2018

Implementation Details u0 u1 u2 u3 Max depth = 20 … Implemented in PBRT v3 K-d tree: K=4, M=2, N=2 K-d tree node division criteria 4 or 8 Max depth 20 8 bytes node layout K-d tree per image tile (16x16) Probability of sampling K-d tree 0.5 1/8 total sample budget for collection … 8 bytes 1 bit leaf flag 31 bits counter/index 32 bits node value 11/21/201811/21/2018

Results – Ajar scene 256 collection spl. 2048 rendering spl. 800x450 n/a L: 0.0097646 C: 0.0081286 R: 0.0076802 2048 rendering spl. 256 collection spl. 1792 rendering spl. 4096 rendering spl. 11/21/201811/21/2018

Results - Dinning room scene 800x450 2k PT: 3215.2s 0.0009080 2k ours: 3182.9s 0.0006681 512 ours: 542.5s 0.0021433 256 collection spl. 1792 rendering spl. 64 collection spl. 448 rendering spl. 2048 rendering spl. 11/21/201811/21/2018

Results – Staircase scene 32 + 224 450x800 Ours 256: 238.1s 0.0043931 PT 512: n/a 0.0034243 Ours 512: n/a 0.00320734 512 64 collection spl. 448 rendering spl. 11/21/201811/21/2018

Results – Kitchen scene 800x450 Ours 1K: 812.1s 0.00032123 PT 4K: 3162.8s 0.000207535 Ours 4K: 3281.0s 0.00012555 128 collection spl. 869 rendering spl. 512 collection spl. 3584 rendering spl. 4096 rendering spl. 11/21/201811/21/2018

Results – Observations MSEs In all scenes, our method brings down MSE Works in regions from where light can be reached with one or two bounces Zero radiance path ratios In all scenes, our method brings down zero radiance paths, best case by 39.5% Zero radiance path ratio goes down as more samples/iterations are invested Best case Kitchen scene 11/21/201811/21/2018

Future work Acknowledgement Make the per tile structure adaptive Higher dimensions Apply to Bi-directional path tracing Acknowledgement PBRT authors for the book and pbrt Benedikt Bitterli [1] for the awesome 3D scenes freely available online Reviewers for the insightful feedback [1] https://benedikt-bitterli.me/resources/ 11/21/201811/21/2018

Conclusion We presented an unbiased path guiding scheme Path guiding in primary sample space is practical Easy to implement Out-of-kernel feature Efficient 11/21/201811/21/2018

Thank you! Questions are welcome! 11/21/201811/21/2018