Radiative Transfer & Volume Path Tracing

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

Lectures 6&7: Variance Reduction Techniques
High-Order Similarity Relations in Radiative Transfer Shuang Zhao 1, Ravi Ramamoorthi 2, and Kavita Bala 1 1 Cornell University 2 University of California,
Szirmay-Kalos László Magdics Milán Tóth Balázs
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Subsurface scattering
1 Rare Event Simulation Estimation of rare event probabilities with the naive Monte Carlo techniques requires a prohibitively large number of trials in.
William Moss Advanced Image Synthesis, Fall 2008.
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 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
Rendering General BSDFs and BSSDFs Randy Rauwendaal.
BSSRDF: Bidirectional Surface Scattering Reflectance Distribution Functions Jared M. Dunne C95 Adv. Graphics Feb. 7, 2002 Based on: "A Practical Model.
Modeling Fluid Phenomena -Vinay Bondhugula (25 th & 27 th April 2006)
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 21: Radiosity
1 Stratified sampling This method involves reducing variance by forcing more order onto the random number stream used as input As the simplest example,
Monte Carlo Methods in Partial Differential Equations.
SOLUTION FOR THE BOUNDARY LAYER ON A FLAT PLATE
Lecture 12 Monte Carlo Simulations Useful web sites:
Radiative Transfer Theory at Optical and Microwave wavelengths applied to vegetation canopies: part 2 UoL MSc Remote Sensing course tutors: Dr Lewis
Shedding Light on the Weather
Optical Models Jian Huang, CS 594, Spring 2002 This set of slides are modified from slides used by Prof. Torsten Moeller, at Simon Fraser University, BC,
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 BSSRDF – Bidirectional surface scattering reflectance distribution function Radiance theory BRDF.
Attenuation by absorption and scattering
02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)
Multiple Scattering in Vision and Graphics Lecture #21 Thanks to Henrik Wann Jensen.
AME Int. Heat Trans. D. B. Go Radiation with Participating Media Consider the general heat equation We know that we can write the flux in terms of.
-Global Illumination Techniques
Volume radiosity Michal Roušal University of West Bohemia, Plzeň Czech republic.
Parallel MDOM for Rendering Participating Media Ajit Hakke Patil – Daniele Bernabei Charly Collin – Ke Chen – Sumanta Pattanaik Fabio Ganovelli.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Instant Radiosity Alexander Keller University Kaiserslautern Present by Li-Fong Lin.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Fick’s Law The exact interpretation of neutron transport in heterogeneous domains is so complex. Assumptions and approximations. Simplified approaches.
Nuclear Reactors, BAU, 1st Semester, (Saed Dababneh).
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
Distributed Ray Tracing. Can you get this with ray tracing?
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Computer graphics III – Path tracing Jaroslav Křivánek, MFF UK
Advanced Computer Graphics
Development of source terms Resulting full Boltzmann Equation
Lesson 8: Basic Monte Carlo integration
Equation of Continuity
Specific features of motion of the photon density normalized maximum
INTRODUCTION : Convection: Heat transfer between a solid surface and a moving fluid is governed by the Newton’s cooling law: q = hA(Ts-Tɷ), where Ts is.
NEUTRON DIFFUSION THE CONTINUITY EQUATION
A Brachytherapy Treatment Planning Software Based on Monte Carlo Simulations and Artificial Neural Network Algorithm Amir Moghadam.
Ray Tracing via Markov Chain Monte-Carlo Method
Metropolis light transport
Appendix C Radiation Modeling
© 2003 University of Wisconsin
The Rendering Equation
Path Tracing (some material from University of Wisconsin)
Quantum One.
RADIATION AND COMBUSTION PHENOMENA
Adaptive Perturbation Theory: QM and Field Theory
Infrared emission from dust and gas in galaxies
Monte Carlo Path Tracing
CS5500 Computer Graphics May 29, 2006
The Rendering Equation
Foundations of Computer Graphics (Spring 2012)
OPTICS III, IV: Global Illumination
Computer graphics III – Path tracing
A Practical Model for Subsurface Light Transport
Lesson 4: Application to transport distributions
Distributed Ray Tracing
open research problems
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

Radiative Transfer & Volume Path Tracing CS295, Spring 2017 Shuang Zhao Computer Science Department University of California, Irvine Modified from the original slides CS295, Spring 2017 Shuang Zhao

Today’s Lecture Radiative transfer Volume path tracing (VPT) The mathematical model to simulate light scattering in participating media (e.g., smoke) and translucent materials (e.g., marble and skin) Volume path tracing (VPT) A Monte Carlo solution to the radiative transfer problem Similar to the normal PT from previous lectures CS295, Spring 2017 Shuang Zhao

Radiative Transfer CS295: Realistic Image Synthesis CS295, Spring 2017 Shuang Zhao

Participating Media [Kutz et al. 2017] CS295, Spring 2017 Shuang Zhao

Translucent Materials [Gkioulekas et al. 2013] CS295, Spring 2017 Shuang Zhao

Subsurface Scattering Light enters a material and scatters around before eventually leaving or absorbed X Absorbed Participating medium CS295, Spring 2017 Shuang Zhao

Subsurface Scattering Light enters a material and scatters around before eventually leaving or absorbed Scattered Participating medium CS295, Spring 2017 Shuang Zhao

Subsurface Scattering Light enters a material and scatters around before eventually leaving or absorbed Participating medium CS295, Spring 2017 Shuang Zhao

Can we use the rendering equation? Radiance is not constant for each ray segment! We need to consider how the radiance change during the ray segment Participating medium CS295, Spring 2017 Shuang Zhao

Radiative Transfer A mathematical model describing how light interacts with participating media Originated in physics Now used in many areas Astrophysics (light transport in space) Biomedicine (light transport in human tissue) Graphics Nuclear science & engineering (neutron transport) Remote sensing … CS295, Spring 2017 Shuang Zhao

Radiative Transfer Equation (RTE) Focus on how radiance changes at each point and direction Consider , not

Radiative Transfer Equation (RTE) Differential radiance In-scattering Out-scattering & absorption Emission In-scattering Out-scattering Emission & absorption CS295, Spring 2017 Shuang Zhao

Radiative Transfer Equation (RTE) In-scattering Out-scattering Emission & absorption The RTE is a first-order integro-differential equation For a participating medium in a volume with boundary , the RTE governs the radiance values inside this volume (i.e., for all ) The boundary condition is the radiance field on the boundary (i.e., L(x, ω) for all ) CS295, Spring 2017 Shuang Zhao

Radiative Transfer Equation (RTE) In-scattering Out-scattering Emission & absorption Differential radiance Scattering coefficient: Phase function: given x and ωi Extinction coefficient: Source term: , , a probability density over CS295, Spring 2017 Shuang Zhao

Radiative Transfer Equation (RTE) In-scattering Out-scattering Emission & absorption σt controls how frequently light scatters and is also known as the optical density The ratio between σs and σt controls the fraction of radiant energy not being absorbed at each scattering and is also known as the single-scattering albedo CS295, Spring 2017 Shuang Zhao

Radiative Transfer Equation (RTE) In-scattering Out-scattering Emission & absorption The phase function fp is usually parameterized as a function on the angle between ωi and ω. Namely, Example: the Henyey-Greenstein (HG) phase function with parameter -1 < g < 1 (more forward scattering): CS295, Spring 2017 Shuang Zhao

The Integral Form of the RTE Integro-differential equation Integral equation It is desirable to rewrite the RTE as an integral equation which can then be solved numerically using Monte Carlo methods CS295, Spring 2017 Shuang Zhao

Integral Form of the RTE For any , let h(x, ω) denotes the minimal distance for the ray (x, -ω) to hit the boundary . In other words, When (x, -ω) never hits the boundary, This can happen when the volume is infinite For any with , let CS295, Spring 2017 Shuang Zhao

Integral Form of the RTE For any , the attenuation between x and y is A line integral between x and y • for all x and y For homogeneous media with , CS295, Spring 2017 Shuang Zhao

Integral Form of the RTE Attenuation In-scattering Emission where Attenuation Boundary cond. (The second term vanishes when ) CS295, Spring 2017 Shuang Zhao

Kernel Form of the RTE where Kernel function Source function (known term) where CS295, Spring 2017 Shuang Zhao

Operator Form of the RTE Phase space: For any real-valued function g on Γ, define operator K as where Then, the RTE becomes Similar to the RE! Yield Neumann series CS295, Spring 2017 Shuang Zhao

Volume Path Tracing CS295: Realistic Image Synthesis Start from here… CS295, Spring 2017 Shuang Zhao

Solving the RTE Given the similarity between the RTE and the RE, Monte Carlo solutions to the RE can be adapted to solve the RTE Volume path tracing Volume adjoint particle tracing Volume bidirectional path tracing … CS295, Spring 2017 Shuang Zhao

Volume Path Tracing Basic idea Draw from Draw ωi from p(ωi) where Known Basic idea Draw from Draw ωi from p(ωi) Evaluate L(r, ωi) recursively CS295, Spring 2017 Shuang Zhao

Free Distance Sampling is called the “free distance” and is sampled from where with λ0 being an arbitrary positive number p gives an exponential distribution with varying parameters CS295, Spring 2017 Shuang Zhao

Free Distance Sampling For all , it holds that CS295, Spring 2017 Shuang Zhao

Free Distance Sampling where CS295, Spring 2017 Shuang Zhao

Free Distance Sampling By applying Monte Carlo integration, we have Pseudocode: Draw If from p , return Otherwise, return CS295, Spring 2017 Shuang Zhao

Direction Sampling One extra integral remains: ωi can be sampled based on In practice, probability density on ωi, yielding is usually a valid CS295, Spring 2017 Shuang Zhao

Volume Path Tracing radiance(x, ω): compute h = h(x, ω) # using ray tracing draw τ if τ < h: How to implement this? r = x – τ*ω draw ωi return σs(r)/σt(r)*radiance(r, ωi) + Q(r, ω)/σt(r) else: return boundaryRadiance(x – h*ω, ω) CS295, Spring 2017 Shuang Zhao

Free Distance Sampling Methods How to draw samples from this distribution? Homogeneous media • Let , then and In this case, method: can be drawn using the inversion CS295, Spring 2017 Shuang Zhao

Free Distance Sampling Methods Heterogeneous media varies with x, causing to vary with p does not have a close-form expression in general Common sampling methods Ray marching Delta tracking CS295, Spring 2017 Shuang Zhao

Ray Marching One can apply the inversion method by Drawing ξ from U(0, 1) Finding satisfying This is usually achieved numerically by iteratively increasing with some fixed step size until reaches ξ The step size is generally picked according to the underlying representation of σt(x) (e.g., voxel size) CS295, Spring 2017 Shuang Zhao

Ray Marching Pros Cons For each sample , can be obtained easily Biased (for any finite step size ) Resolution dependent needs to be picked based on the resolution of the density (σt) field Slow for high-resolution density fields CS295, Spring 2017 Shuang Zhao

Delta Tracking Also known as Woodcock tracking Basic idea Consider the medium to have homogeneous density , and use it to draw free distances To compensate the fact that “phantom” densities have been introduced, the sampling process continues with probability at each ri CS295, Spring 2017 Shuang Zhao

Delta Tracking Pseudocode: deltaTracking(x, ω, σt ) max compute h using ray tracing τ = 0 while τ < h: τ += -log(rand())/σt r = x - τ*ω if rand() < σt(r)/σt : break return τ CS295, Spring 2017 Shuang Zhao

Delta Tracking Pros Cons Unbiased Resolution independent For each sample available , is not immediately Slow for density fields with widely varying σt values (i.e., σtmax >> σt(x) for many x) CS295, Spring 2017 Shuang Zhao

Volume Path Tracing (VPT) radiance(x, ω): compute h = h(x, ω) draw τ if τ < h: r = x – τ*ω draw ωi return σs(r)/σt(r)*radiance(r, ωi) + Q(r, ω)/σt(r) else: return boundaryRadiance(x – h*ω, ω) This basic version can be improved using techniques we have seen earlier: Russian roulette Next-event estimation Multiple importance sampling CS295, Spring 2017 Shuang Zhao

VPT with Next-Event Estimation The RTE implies that . Namely, where By drawing from the aforementioned exponential distribution, we have CS295, Spring 2017 Shuang Zhao

VPT with Next-Event Estimation The remaining integral is then split into two: Estimate recursively by drawing ωi based on fp “indirect illumination” Estimate directly by area sampling or MIS “direct illumination” CS295, Spring 2017 Shuang Zhao

VPT with Next-Event Estimation Pseudocode: scatteredRadiance(x, ω): compute h = h(x, ω) # using ray tracing draw τ if τ < h: r = x – τ*ω rad = directIllumination(r, ω) draw ωi rad += scatteredRadiance(r, ωi) return σs(r)/σt(r)*rad else: return 0 CS295, Spring 2017 Shuang Zhao

Direct Illumination for VPT Recall that For non-emissive materials, Q vanishes and In this case, Boundary radiance Change of measure The area integral can be further restricted to the subset of where the boundary radiance is non-zero CS295, Spring 2017 Shuang Zhao

Direct Illumination for VPT Phase function sampling: Draw ωi based on fp Area sampling: Draw y from The two strategies can be combined using MIS CS295, Spring 2017 Shuang Zhao