Slide 1Lastra, 2/14/2016 Monte-Carlo Methods. Slide 2Lastra, 2/14/2016 Topics Kajiya’s paper –Showed that existing rendering methods are approximations.

Slides:



Advertisements
Similar presentations
Advanced Computer Graphics
Advertisements

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.
Light Issues in Computer Graphics Presented by Saleema Amershi.
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.
1 7M836 Animation & Rendering Global illumination, radiosity Arjan Kok
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 20: Monte Carlo Path Tracing Ravi Ramamoorthi Acknowledgements.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
The Radiosity Method Donald Fong February 10, 2004.
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
Global Illumination Jian Huang, CS 594, Fall 2002 This set of slides reference text book and the course note of Dutre et. al on SIGGRAPH 2001.
Global Illumination. Direct Illumination vs. Global Illumination reflected, scattered and focused light (not discreet). physical-based light transport.
© 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.
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.
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,
-Global Illumination Techniques
01/29/03© 2003 University of Wisconsin Last Time Radiosity.
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
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.
Global Illumination Models THE WHITTED IMAGE - BASIC RECURSIVE RAY TRACING Copyright © 1997 A. Watt and L. Cooper.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Hybrid Algorithms K. H. Ko School of Mechatronics Gwangju Institute.
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
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.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Instant Radiosity Alexander Keller University Kaiserslautern Present by Li-Fong Lin.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
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.
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.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Illumination Model How to compute color to represent a scene As in taking a photo in real life: – Camera – Lighting – Object Geometry Material Illumination.
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?
CS552: Computer Graphics Lecture 33: Illumination and Shading.
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
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
Metropolis light transport
The Rendering Equation
© 2005 University of Wisconsin
Simple and Robust Iterative Importance Sampling of Virtual Point Lights Iliyan Georgiev Philipp Slusallek.
Path Tracing (some material from University of Wisconsin)
Introduction to Computer Graphics with WebGL
Illumination Model How to compute color to represent a scene
What do you see in this image?
(c) 2002 University of Wisconsin
Metropolis Light Transport for Participating Media
Foundations of Computer Graphics (Spring 2012)
Metropolis Light Transit
Monte Carlo Path Tracing and Caching Illumination
Presentation transcript:

Slide 1Lastra, 2/14/2016 Monte-Carlo Methods

Slide 2Lastra, 2/14/2016 Topics Kajiya’s paper –Showed that existing rendering methods are approximations of rendering equation. –Introduced path tracing. More recent work – Lafortune, Veach.

Slide 3Lastra, 2/14/2016 Kajiya’s Rendering Equation Expressed as point-to-point transfer Integral is over S, union of all surfaces

Slide 4Lastra, 2/14/2016 Rendering Equation Terms is unoccluded two-point transport intensity Energy per unit time per unit area of source per unit area of target

Slide 5Lastra, 2/14/2016 Rendering Equation Terms is geometry term 0 if x not visible from x’, 1/r 2 if visible.

Slide 6Lastra, 2/14/2016 Rendering Equation Terms is unoccluded emittance term

Slide 7Lastra, 2/14/2016 Rendering Equation Terms is unoccluded three-point transport reflectance (scattering term) Intensity scattered to x by x’ originating from x”

Slide 8Lastra, 2/14/2016 Why express as point-to-point? Wants to set up for a path tracing solution –Point-to-point transfer of energy

Slide 9Lastra, 2/14/2016 Relationship to Other Rendering Methods Compared rendering eqn. to conventional polygon rendering, ray tracing and distributed ray tracing. Let scattering,

Slide 10Lastra, 2/14/2016 Relationship to “Utah Approx.” Geometry term, g, only computed to eye. g  is ambient term. Scattering operator, M, only operates on point sources (  0 ), ignores visibility to light (no shadows). M is now only sum over lights, not integration Later extensions for shadows and area lights

Slide 11Lastra, 2/14/2016 Relationship to Ray Tracing M 0 now one reflection, one refraction, and cosine for diffuse term Computes visibility, g, of point lights (generates shadow) M still small sum

Slide 12Lastra, 2/14/2016 Relationship to Distributed Ray Tracing Similar equation to Whitted’s Now need to evaluate M as integral M now distribution around reflection, refraction, and shadow ray Ambient term still “elusive”

Slide 13Lastra, 2/14/2016 Relationship to Radiosity Solves energy balance, but only for diffuse. Derives equations for radiosity from the one presented. Points out that solving visibility is expensive and that you may not need radiosity for all surfaces (on other hand, you might).

Slide 14Lastra, 2/14/2016 Kajiya’s Path Tracing

Slide 15Lastra, 2/14/2016 Method At each hit, –One ray cast based on specular, diffuse, and transmission coefficients –One random ray per light Constant number of rays per pixel (40)

Slide 16Lastra, 2/14/2016 Markov Chains for Solution Absorbing state p = 0.11 p = 0.08 p = 0.02 p = 1

Slide 17Lastra, 2/14/2016 Algorithm 1.Choose pt. x’ visible from eye 2.Add in radiated intensity 3.For length of Markov path 1.Select pt. x” and compute g(x’, x”) 2.Calculate reflectance  (x, x’, x”), multiply by  (x’, x”) 3.Add contribution to pixel

Slide 18Lastra, 2/14/2016 Sampling Most important factor in Monte Carlo –Need to avoid bias –But also need to make most out of few rays –Otherwise, noisy images Kajiya discusses several ways. Better to look in more modern reference –Glassner –Recent dissertations

Slide 19Lastra, 2/14/2016 Path Tracing Postulates that even for ray tracing, following one path (probabilistically) is better. Why? Most contribution from first ray. Need to be careful about proportion of reflection, refraction, and shadow rays.

Slide 20Lastra, 2/14/2016 Results 401 minutes 533 minutes 256 x 256 image Ray Traced (no ambient) Path Traced Light scattered by sphere

Slide 21Lastra, 2/14/2016 Results Objects are gray, except for spheres and base. Color bleeding Caustics

Slide 22Lastra, 2/14/2016 Current Methods Bi-directional path tracing (Lafortune and Veach) Metropolis (Veach)

Slide 23Lastra, 2/14/2016 Pure Path Tracing

Slide 24Lastra, 2/14/2016 Pure Path Tracing Best for big luminaires. If lights small, few hits and large variance.

Slide 25Lastra, 2/14/2016 With Shadow Ray to Lights

Slide 26Lastra, 2/14/2016 With Shadow Ray to Lights Small lights OK. Best for specular surfaces.

Slide 27Lastra, 2/14/2016 Light Tracing

Slide 28Lastra, 2/14/2016 Light Tracing Small lights OK. Best for caustics.

Slide 29Lastra, 2/14/2016 Bi-Directional Path Tracing

Slide 30Lastra, 2/14/2016 Bi-Directional Path Tracing

Slide 31Lastra, 2/14/2016 Generating Samples Generated as groups Prefix from light joined with suffix from (to) eye (if edge is not obstructed) Russian roulette to cut off path Contribution must be multiplied by probability of generating path

Slide 32Lastra, 2/14/2016 Results (from Veach)

Slide 33Lastra, 2/14/2016 Metropolis Method for importance sampling A path is a sequence of points from a light to the eye. Let be the image contribution function, a measure of contribution over path is flux contributed by paths D Strategy: generate sequence of paths with probability proportional to ƒ

Slide 34Lastra, 2/14/2016 Mutations New path X i+1 mutated from X i Probability of rejecting each mutation keeps paths distributed according to contribution Discard start-up to reduce bias Can be run from a set of seed paths Run some bi-directional paths to find good seeds

Slide 35Lastra, 2/14/2016 Implementation Path selection important –minimize rejected paths, but not too correlated –finds sub-paths and replace –or perturb vertices of path (for caustics, etc) Mutation of “lens” path, (L|D)DS*E, to cover image pixels Adds direct lighting –rejects path if found by Metropolis

Slide 36Lastra, 2/14/2016 Results Light for this example comes only through crack in doorway

Slide 37Lastra, 2/14/2016 Results There are specific mutations to capture caustics.

Slide 38Lastra, 2/14/2016 Advantages Works well for difficult lighting –because it “stays” in important area Like bi-directional path tracing there’s just a little work to get a new path

Slide 39Lastra, 2/14/2016 References Kajiya, Jim, “The Rendering Equation”, SIGGRAPH ‘86. Lafortune papers and thesis Veach papers and thesis Jensen papers Shirley draft of MC book on his web page Kalos & Whitlock, Monte Carlo Methods, 1986.