02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability.

Slides:



Advertisements
Similar presentations
Anton S. Kaplanyan Karlsruhe Institute of Technology, Germany Path Space Regularization Framework.
Advertisements

Photorealistic Rendering. Ray tracing v. photorealistic rendering What illumination effects are not captured by ray tracing? What illumination effects.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
Computer Graphics - Class 10
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.
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.
Global Illumination May 7, Global Effects translucent surface shadow multiple reflection.
Time-Dependent Photon Mapping Mike Cammarano Henrik Wann Jensen EGWR ‘02.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 20: Monte Carlo Path Tracing Ravi Ramamoorthi Acknowledgements.
Paper by Alexander Keller
EGWR 2000 Metropolis Light Transport for Participating Media Mark Pauly Thomas KolligAlexander Keller ETH ZürichUniversity of Kaiserslautern.
Multiple vertex merging Kun Xu. Previous works Photon mapping – Generate various light sub-paths and eye sub- paths – Merge a light sub-path and an eye.
© Machiraju/Möller Rendering Equation Unbiased MC Methods CMPT 461/770 Advanced Computer Graphics Torsten Möller.
02/11/05© 2005 University of Wisconsin Last Time Direct Lighting Light Transport Equation (LTE) Intro.
01/24/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
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.
12/05/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling Very brief intro to global illumination.
02/25/05© 2005 University of Wisconsin Last Time Meshing Volume Scattering Radiometry (Adsorption and Emission)
02/28/05© 2005 University of Wisconsin Last Time Scattering theory Integrating tranfer equations.
-Global Illumination Techniques
Monte Carlo I Previous lecture Analytical illumination formula This lecture Numerical evaluation of illumination Review random variables and probability.
02/16/05© 2005 University of Wisconsin Last Time Re-using paths –Irradiance Caching –Photon Mapping.
02/18/05© 2005 University of Wisconsin Last Time Radiosity –Converting the LTE into the radiosity equation –Solving with Gauss-Seidel relaxation –Form.
02/10/03© 2003 University of Wisconsin Last Time Participating Media Assignment 2 –A solution program now exists, so you can preview what your solution.
Computer graphics & visualization Photon Mapping.
Computer Graphics Global Illumination: Photon Mapping, Participating Media Lecture 12 Taku Komura.
Path Integral Formulation of Light Transport
Global Illumination CMSC 435/634. Global Illumination Local Illumination – light – surface – eye – Throw everything else into ambient Global Illumination.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
04/30/02(c) 2002 University of Wisconsin Last Time Subdivision techniques for modeling We are now all done with modeling, the standard hardware pipeline.
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/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.
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
University of Texas at Austin CS395T - Advanced Image Synthesis Spring 2007 Don Fussell Photon Mapping and Irradiance Caching.
Global Illumination (3) Photon Mapping (1). Overview Light Transport Notation Path Tracing Photon Mapping –Photon Tracing –The Photon Map.
01/26/05© 2005 University of Wisconsin Last Time Raytracing and PBRT Structure Radiometric quantities.
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
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
Computer graphics III – Multiple Importance Sampling Jaroslav Křivánek, MFF UK
11/29/01CS 559, Fall 2001 Today Photorealistic rendering Algorithms for producing high-quality images Ways of deciding which algorithm for use.
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.
Sampling and Reconstruction of Visual Appearance
Ray Tracing via Markov Chain Monte-Carlo Method
Metropolis light transport
© 2005 University of Wisconsin
(c) 2002 University of Wisconsin
Path Tracing (some material from University of Wisconsin)
(c) 2002 University of Wisconsin
Monte Carlo Path Tracing
Monte Carlo Rendering Central theme is sampling:
Metropolis Light Transport for Participating Media
CS5500 Computer Graphics May 29, 2006
Metropolis Light Transit
Monte Carlo Path Tracing and Caching Illumination
Photon Density Estimation using Multiple Importance Sampling
Presentation transcript:

02/12/03© 2003 University of Wisconsin Last Time Intro to Monte-Carlo methods Probability

02/12/03© 2003 University of Wisconsin Today Finishing up probability Path-tracing algorithms –Best reference is Eric Veach’s thesis from Stanford, or Henrik Wann Jensen’s “Photon Mapping” book

02/12/03© 2003 University of Wisconsin Estimating Integrals Say we wish to estimate Write h=gf, where f is something you choose –You don’t actually need the analytic form of g If we sample x i according to f, then:

02/12/03© 2003 University of Wisconsin Standard Deviation of the Estimate Expected error in the estimate after n samples is measured by the standard deviation of the estimate: Note that error goes down with This technique is called importance sampling f should be as close as possible to g Same principle for higher dimensional integrals

02/12/03© 2003 University of Wisconsin Example: Form Factor Integrals We wish to estimate Sample from f by sampling x i uniformly on P i and y i uniformly on P j Define Estimate is

02/12/03© 2003 University of Wisconsin Path Tracing Path tracing algorithms determine the intensity of each pixel by tracing light transport paths –Paths that start at light sources and carry energy A path of length k is a sequence of vertices, where every x i and x i+1 is mutually visible, and x 0 is on a light Clearly, we are most interested in “important” paths

02/12/03© 2003 University of Wisconsin “Important” Paths Consider only paths that go from a light source to the eye –Other useful paths are sub-paths of these –Paths that miss the image plane contribute nothing, so are not important Paths that carry more energy are more important Why is that?

02/12/03© 2003 University of Wisconsin Return to the Rendering Equation Can express value at each pixel as a sum of integrals, each one integrating over a different path length (Veach 97)

02/12/03© 2003 University of Wisconsin Sampling Important Paths We can evaluate that integral using importance sampling –Sample paths of various lengths –Weight their contribution to pixel intensity by their importance We wish to sample important paths –those for which integration kernel is large The big question: How are those paths found?

02/12/03© 2003 University of Wisconsin Naïve Path Tracing (version 1) Start at light Build a path by randomly choosing a direction at each bounce, and adding point hit by ray in that direction Join last point to eye What is the basic problem? What paths does it get?

02/12/03© 2003 University of Wisconsin Naïve Path Tracing (version 2) Start at eye Build a path by randomly choosing a direction at each bounce, and adding point hit by ray in that direction (optional) Join last point to light What is the basic problem? What paths does it get?

02/12/03© 2003 University of Wisconsin Path Tracing (Kajiya): Description Start at eye Build a path by, at each bounce, sampling a direction according to some distribution At each point on the path, cast a shadow ray and add direct lighting contribution at that point Multiple paths per pixel, average contributions to get intensity

02/12/03© 2003 University of Wisconsin Path Tracing (Kajiya): Sampling Strategies The method of choosing the direction at each bounce is important Can choose using: –stratified sampling Break possible directions into sub-regions, and cast one sample per sub- region Various ways to be adaptive –Importance sampling Sample according to BRDF

02/12/03© 2003 University of Wisconsin Path Tracing (Kajiya): Analysis Doesn’t waste time on things that aren’t visible Unlike ray tracing, spends equal time on all path lengths (ray tracing spends more time on longer paths) Downsides: –Little information gain for each ray cast –Not easy to get good (important) samples –Spends equal time on slow-varying diffuse components and fast varying specular components

02/12/03© 2003 University of Wisconsin Pure Bi-Directional:Approach Veach 94; Lafortune and Willems 94(?) Build a path by working from the eye and the light and join in the middle Don’t just look at overall path, also weigh contributions from all sub- paths: Pixel x 0 x1x1 x2x2 x3x3 x 4 Light

02/12/03© 2003 University of Wisconsin Pure Bi-Directional: Analysis Advantages: –Each ray cast contributes to many paths –Building from both ends can catch difficult cases All specular paths Caustics –Extends to participating media (anisotropic, heterogeneous) Disadvantages: –Still using lots of effort to catch slow varying diffuse components –May not sample difficult to find paths

02/12/03© 2003 University of Wisconsin Combining Estimators Veach 95 describes a way to combine the results of various estimators Useful when: –different methods are suited to different aspects of the scene –It is not known a-priori which method will work

02/12/03© 2003 University of Wisconsin Two Poor Estimators

02/12/03© 2003 University of Wisconsin Make One Good One

02/12/03© 2003 University of Wisconsin

02/12/03© 2003 University of Wisconsin

02/12/03© 2003 University of Wisconsin Metropolis Light Transport: Approach Other algorithms generate independent samples –Easy to control bias Metropolis algorithms generate a sequence of paths where each path can depend on the previous one For each sample: –Propose a new candidate depending on the previous sample –Choose to accept or reject according to a computed probability (if reject, re-use the old sample) Can prove the estimates for pixel intensities are correct

02/12/03© 2003 University of Wisconsin Metropolis Proposal Strategies Task: Given the previous sample, generate a new one –Should be very different, but should also be good Methods: –Randomly chop out some part of the path and replace it with a new piece –Randomly perturb a vertex on the path –Less randomly change the pixel that is affected –Other choices possible

02/12/03© 2003 University of Wisconsin Light Through Ripples

02/12/03© 2003 University of Wisconsin Light Through Ripples (Path tracing)

02/12/03© 2003 University of Wisconsin Metropolis: Analysis Easy to implement basic algorithm –Some of the details for good results are difficult –Easy to parallelize Can do difficult scenarios: –Light through a crack, almost impossible any other way –Caustics from light reflecting off the bottom of a wavy pool But, still computes diffuse illumination on a per point basis

02/12/03© 2003 University of Wisconsin Still to come… Computing the diffuse component efficiently Various algorithms: –Radiosity textures –Radiance –Photon-maps