Selected Topics in Global Illumination Computation Jaroslav Křivánek Charles University, Prague

Slides:



Advertisements
Similar presentations
Global Illumination Across Industries Jaroslav Křivánek Cornell University & Charles University, Prague Marcos Fajardo Solid Angle SL Per Christensen Pixar.
Advertisements

Bidirectional Photon Mapping Jiří Vorba Charles University in Prague Faculty of Mathematics and Physics 1.
PATH INTEGRAL FORMULATION OF LIGHT TRANSPORT Jaroslav Křivánek Charles University in Prague
Computer graphics & visualization Global Illumination Effects.
Many-light methods – Clamping & compensation
Advanced Computer Graphics
Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
RADIOSITY Submitted by CASULA, BABUPRIYANK. N. Computer Graphics Computer Graphics Application Image Synthesis Animation Hardware & Architecture.
Subsurface scattering
Subsurface scattering Model of light transport in translucent materials Marble, jade, milk, skin Light penetrates material and exits at different point.
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.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
Recent Advances in Radiosity Philippe Bekaert Department of Computer Science K.U.Leuven.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 20: Monte Carlo Path Tracing Ravi Ramamoorthi Acknowledgements.
EGWR 2000 Metropolis Light Transport for Participating Media Mark Pauly Thomas KolligAlexander Keller ETH ZürichUniversity of Kaiserslautern.
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.
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.
02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)
-Global Illumination Techniques
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
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.
1 Photon-driven Irradiance Cache J. BrouillatP. GautronK. Bouatouch INRIA RennesUniversity of Rennes1.
Global Illumination CMSC 435/634. Global Illumination Local Illumination – light – surface – eye – Throw everything else into ambient Global Illumination.
Quick survey about PRT Valentin JANIAUT KAIST (Korea Advanced Institute of Science and Technology)
Real-Time High Quality Rendering CSE 291 [Winter 2015], Lecture 2 Graphics Hardware Pipeline, Reflection and Rendering Equations, Taxonomy of Methods
Real-Time High Quality Rendering
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.
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.
Computer Graphics III – Monte Carlo integration Direct illumination
Bidirectional Path Sampling Techniques
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Path Tracing Algorithms K. H. Ko School of Mechatronics Gwangju.
Computer Graphics III Winter Term 2015 Organization Jaroslav Křivánek, MFF UK
Slide 1Lastra, 2/14/2016 Monte-Carlo Methods. Slide 2Lastra, 2/14/2016 Topics Kajiya’s paper –Showed that existing rendering methods are approximations.
Monte Carlo Path Tracing
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.
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?
Light Animation with Precomputed Light Paths on the GPU László Szécsi, TU Budapest László Szirmay-Kalos, TU Budapest Mateu Sbert, U of Girona.
Computer graphics III – Rendering equation and its solution
Advanced Computer Graphics
Advanced Computer Graphics
Computer Graphics III Winter Term 2017 Organization
Sampling and Reconstruction of Visual Appearance
Sampling and Reconstruction of Visual Appearance
Recent Advances in Light Transport Simulation Theory & Practice
The Rendering Equation
Path Tracing (some material from University of Wisconsin)
Virtual Spherical Lights for Many-Light Rendering of Glossy Scenes
Monte Carlo Path Tracing
Metropolis Light Transport for Participating Media
Computer Graphics III Winter Term 2018 Organization
Distributed Ray Tracing
Computer Graphics III Winter Term 2016 Organization
Monte Carlo Path Tracing and Caching Illumination
Presentation transcript:

Selected Topics in Global Illumination Computation Jaroslav Křivánek Charles University, Prague

Light bouncing around in a scene Global illumination

Diffuse inter-reflection May go unnoticed, but looks odd if missing Slide credit: Michael Bunnell 3

Why is GI important? Architectural visualization Interior design Product design Animated movies, special effects Games Quality criteria depend on the application 4

Syllabus discussion

6 Data-driven importance sampling [Lawrence et al. 2004] Measured BRDF sampling Direct illumination sampling [Wang & Åkerlund 2009] Sampling various illumination effects [Cline et al. 2008]

7 Many-light rendering methods Basic formulation (VPLs) Speeding it up: Real-time methods Making it scalableMaking it robust [Keller 1997] [Ritschel et al. 2008] [Walter et al. 2005] [Křivánek et al. 2010]

No-precomputation –Real-time many-light methods –Other stuff Precomputed radiance transfer (PRT) –Light transport as a linear operator –Spherical harmonics PRT –Wavelet PRT –Separable BRDF approximation –Direct-to-Indirect Transfer –Non-linear operator approximations 8 Real-time GI for Games & Other Apps

9 Metropolis sampling & apps Metropolis light transport [Veach & Guibas, 1997] Energy redistribution path tracing [Cline et al. 2005] Metropolis photon tracing [Hachisuka & Jensen 2011] Metropolis env. map sampling [Ghosh & Heindrich 2006]

Radiative transport equation Single scattering solutions Multiple scattering solutions –Volumetric (bidirectional) path tracing –Volumetric photon mapping –Volumetric radiance caching 10 Participating media

Diffusion approximation BSSRDF Fast hierarchical computation Multi-layered materials Real-time solutions 11 Subsurface scattering

Surface BRDF models Hair –Kajiya-Kay, Marschner reflection model –Multiple scattering in hair Measurement & data-driven models 12 Appearance modeling [d’Eon et al. 2011]

Light transport measurement –Nystrom kernel method –Compressed sensing –Separation of direct and indirect illumination Fabrication –Reflectance fabrication –Volumetric scattering fabrication 13 A little more exotic stuff [Nayar et al. 2006]

Rules & Organization

Either –Lecture notes Prepare notes based on lectures given in the class –Give a 45-minute lecture Topic chosen by the student Must be closely related to the class Or –Research / Implementation Topic chosen by the student or assigned by the instructor Preferably (but not necessarily) original, unpublished work 15 Student participation

Oral exam –2 questions from the lecture material –1 out of 3 papers (must be different from the lecture material) 16 Student evaluation

M. Pharr, G. Humphreys: Physically-based rendering. Morgan-Kaufmann 2004 (2 nd ed. 2010) Dutre, Bala, Bekaert: Advanced Global Illumination. AK Peters, Szirmay-Kalos: Monte-Carlo Methods in Global Illumination, Vienna University of Technology, Paper references on the class page: Books & other sources

A brief review of physically-based rendering

Radiometry / light reflection (BRDF) Rendering equation Monte Carlo quadrature –Primary estimator, Importance sampling, Stratified sampling, Multiple-importance sampling Path / light tracing Bidirectional path tracing (Progressive) photon mapping Irradiance caching 19 Required knowledge

Rendering For each visible point p in the scene –How much light is reflected towards the camera 20

Radiance “Amount of light” transported by a ray –To / from point p –To / from direction  L (p,  [W / m 2 sr ] Constant along a ray Proportional to perceived brightness dd N  p dA 

Direct vs. indirect illumination Where does the light come from? –Light sources (direct illumination) –Scene surfaces (indirect illumination) p 22

Where does the light go then? Light reflection – material reflectance p 23

Light reflection BRDF –Bi-directional Reflectance Distribution Function Implementation: –Shader Image courtesy Wojciech Matusik 24

Light reflection – BRDF Bi-directional Reflectance Distribution Function p 25 ii

BRDF components Images by Addy Ngan Glossy / specularDiffuse 26

Local reflection integral Total amount of light reflected to  o : L o (  o ) = L e (  o ) + ∫ L i (  i ) BRDF (  i  o ) cos  i d  i p L o (  o ) Li(i)Li(i) 27

Light transport Q: How much light is coming from  i ? A: Radiance constant along rays, so: L i (p,  i )= L o (p’,−  i ) = L o (r(p,  i ),−  i ) p p’ L o (p’,−  i ) = Li(p,i)Li(p,i) 28 ray casting function

Rendering equation L o (p,  o ) = L e (  o ) + ∫ L i (p,  i ) BRDF (p,  i  o ) cos  i d  i L o (p,  o ) = L e (  o ) + ∫ L o (r(p,  i ),−  i ) BRDF (p,  i  o ) cos  i d  i p p’ L o (p’,−  i ) = Li(p,i)Li(p,i) 29

Rendering eqn vs. reflection integral Reflection Integral –Local light reflection –Integral to compute L o given that we know L i Rendering Equation –Condition on light distribution in the scene –Integral equation – the unknown, L, on both sides

Solving RE – Recursion L o (p,  o ) = L e (  o ) + ∫ L o (r(p,  i ),−  i ) BRDF (p,  i  o ) cos  i d  i Q: How much light is reflected from p’ ? Recursive application of RE at p’ p p’ L o (p’,−  i ) = ? 31

Recursive evaluation of illumination integral at different points (p, p’, … ) Solving RE – Recursion p’ 32 p

Monte Carlo integration General approach for numerical estimation of integrals 11 f(x)f(x) 01 p(x)p(x) 22 33 44 55 66 Integral to evaluate: Monte Carlo estimator:

Monte Carlo integration Estimator gives an unbiased estimate of I:

L o (p,  o ) = L e (  o ) + ∫ L o (r(p,  i ),−  i ) BRDF (p,  i  o ) cos  i d  i Applying MC to rendering p’ 35 p integrand f(  i ) random sample  cast a ray in a random direction

Distribution Ray Tracing Recursive nature – ray tracing Direct illumination separated from indirect p

Distribution Ray Tracing Cook ’84 Breakthrough at the time Problem: Terribly slow! –Number of rays exponential with recursion depth Solution: Irradiance caching / path tracing / …

Unbiased estimator –No systematic error, only variance Consistent estimator –May has systematic error –Converges to the correct result 38 Unbiased vs. consistent estimator

Path Tracing – unbiased Light Tracing – unbiased Bi-directional Path Tracing – unbiased Metropolis Light Transport – unbiased Photon Mapping – biased, not consistent Progressive photon mapping – biased, consistent Irradiance caching – biased, not consistent Radiance caching – biased, not consistent 39 Unbiased / consistent GI algorithms

40 GI Algorithms: Pros and Cons Image credit: Toshiya Hachisuka

41 GI Algorithms: Pros and Cons Image credit: Toshiya Hachisuka

Unbiased vs. consistent GI algorithm Practice –Prefer less noise at the cost of bias –Systematic error is more acceptable than noise if “looks good” is our only measure of image quality

We’ve seen –GI, i.e. Light transport simulation There’s also –Emission modeling How do various objects emit light? –Appearance modeling What does light do after it hits a specific surface? –Tone mapping Radiance remapping for display 43 There’s more to realistic rendering