Irradiance Caching & Photon Mapping

Irradiance Caching & Photon Mapping

Last Time? • What is a Pixel? • Aliasing • Fourier Analysis Irradiance Caching • Sampling & & Photon Mapping Reconstruction • Mip maps Today Ray Casting • Ray Tracing Review • Cast a ray from the eye through each pixel • Irradiance Caching • Photon Mapping • Ray Grammar Ray Tracing Monte-Carlo Ray Tracing • Cast a ray from the eye through each pixel • Cast a ray from the eye through each pixel • Trace secondary rays (light, reflection, refraction) • Cast random rays to accumulate radiance contribution – Recurse to solve the Rendering Equation Should also systematically sample the primary light 1 Monte Carlo Path Tracing Challenging Indirect Lighting Scene • Trace only one secondary ray per recursion • But send many primary rays per pixel (performs antialiasing as well) Backward path tracing Forward path tracing Bi-directional path tracing Bi-directional Path Tracing Bi-directional Path Pyramid • Start from both eye and lights [Veach & Guibas 94, Lafortune & Willems 93] • Create all compound paths – Evaluate geometric/visibility term at connecting vertices: cos θ cos θ’/ r2 Path length Only from eye Only from light Questions? Today • Why do we need “good” random numbers? • Ray Tracing Review – With a fixed random sequence, we see the structure in the error • Irradiance Caching • Photon Mapping • Ray Grammar 2 Path Tracing is costly Direct Illumination • Needs tons of rays per pixel Global Illumination Indirect Illumination: smooth Irradiance Cache Irradiance Cache • The indirect illumination is smooth • Interpolate nearby cached values • Store the indirect illumination • But do full calculation for direct lighting 3 Irradiance Cache Questions? Today Reading for Today: • Ray Tracing Review • Global Illumination using Photon Maps, • Irradiance Caching Henrik Wann Jensen, Rendering Techniques 1996 • Photon Mapping • Ray Grammar Photon Mapping Photon Mapping • Preprocess: cast rays from light sources • Store photons – independent of viewpoint – position + light power + incoming direction 4 Photon Map Rendering with Photon Map • Efficiently store photons for fast access • Cast primary rays • For secondary rays • Use hierarchical spatial structure (kd-tree) – reconstruct irradiance using k closest photons • Combine with irradiance caching and other techniques Photon Map Results Photon Mapping - Caustics • Special photon map for specular reflection and refraction Glass sphere Comparison Today • Ray Tracing Review Path Tracing 1000 paths/pixel Photon mapping • Irradiance Caching • Photon Mapping • Ray Grammar 5 Ray Grammar Classic Ray Casting/Tracing • Classify local interaction: E = eye D S G Ray casting: L D E L = light S = perfect specular reflection or refraction G = glossy scattering D = diffuse scattering Ray tracing: L D S* E From Dutre et al.’s slides “Adaptive Radiosity Textures for Bi-directional Ray Tracing” Heckbert SIGGRAPH 1990 Photon Tracing Advanced Rendering References • Eric Veach’s PhD dissertation Radiosity: L D* E http://graphics.stanford.edu/papers/veach_thesis/ Caustics: L S* D E “Adaptive Radiosity Textures for (or worse!) Bi-directional Ray Tracing” Heckbert SIGGRAPH 1990 Reading for Friday 4/4: • “A Practical Model for Subsurface Light Transport”, Jensen, Marschner, Levoy, & Hanrahan, SIGGRAPH 2001 • Post a comment or question on the LMS discussion by 10am on Tuesday 1/29 6 .

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us