1 / 42

Global Illumination: Radiosity, Photon Mapping & Path Tracing

Global Illumination: Radiosity, Photon Mapping & Path Tracing. Rama Hoetzlein, 2009 Lecture Notes Cornell University. Rendering Equation. X Surface point w Outgoing direction λ Wavelength t Current time. Incoming light. Bidirectional Reflectance Distribution Function (BRDF).

msheehan
Download Presentation

Global Illumination: Radiosity, Photon Mapping & Path Tracing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Global Illumination:Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009Lecture NotesCornell University

  2. Rendering Equation X Surface pointw Outgoing directionλ Wavelengtht Current time Incoming light Bidirectional ReflectanceDistribution Function(BRDF) Emitted light Incidentattenuation Outgoing light Integral over all incoming light directions James Kajiya, 1982. The rendering equation. SIGGRAPH.

  3. N outgoing w incoming w’ x Perfect Reflection:Light entering at one angle, leaves at same angle only.

  4. N outgoing w incoming w’ x Phong Reflectance:Light entering at some angle, leaves in a uniform diffuse direction, and in a cone of around reflected angle.

  5. N outgoing w incoming w’ x Diffuse Reflectance:Light entering at any angle, canleave at any angle, as a different color, or a different time.

  6. N outgoing w incoming w’ x Diffuse Reflectance:Light entering at any angle, canleave at any angle, as a different color, or a different time.

  7. Bidirectional Reflectance Distribution Function time incoming outgoing position wavelength Mapping from incoming angle and color to outgoing angle and color,is called the: Bidirectional Reflectance Distribution Function (BRDF)Phong is a simple example of a BRDF: n = cos ( θ )

  8. BRDF can be measured directly from materials.

  9. BRDFHow does a material respond at every incoming light angle?

  10. Rendering Equation X Surface pointw Outgoing directionλ Wavelengtht Current time Incoming light Bidirectional ReflectanceDistribution Function(BRDF) Emitted light Incidentattenuation Outgoing light Integral over all incoming light directions James Kajiya, 1982. The rendering equation. SIGGRAPH.

  11. Global Illumination Consider all energy moving in a space, not just the light that reaches the eye.

  12. First used in the study of Heat Transfer (1950s), how does energy move around a room or object.

  13. First radiosity experiment. 1984

  14. Real box (color-sensitive photography)

  15. Spherical Harmonic Radiosity. 1991

  16. Radiosity First used in Computer Graphics, 1984 Modeling the interaction of light between diffuse surfaces,C. Goral, K. E. Torrance, D. P. Greenberg and B. Battaile. 1984Computer Graphics, Vol. 18, No. 3.

  17. Fij i j

  18. Radiosity Solution One eqn. for each patch

  19. Radiosity - Overview • Each patch contributes energy to other patches • Each patch i has a Radiosity equation: • Solve all equations simultaneously to get the energy at each patch • What is the hardest part of this eqn? Ei = Energy emitted Ri = Energy reflectedFij = Energy on patch I from j

  20. Radiosity - Form Factors What things might contribute to the Form Factor? Remember: Form Factor is amount of energy hitting patch i from patch j

  21. Radiosity - Form Factors What things might contribute to the Form Factor? Remember: Form Factor is amount of energy hitting patch i from patch j • Size of the patch Bigger = more energy • Angle between patches Direct = more energy • Dist. between patches Father = less energy • Objects between patches Occlusion = less energy

  22. How much does patch j block patch i ?

  23. Raytracing

  24. Raytracing /w Caustics

  25. Radiosity

  26. Radiosity • Benefits 1. Very realistic (actually computes energy) 2. View independent.. Compute once, then view 3. Effects: Caustics, Color bleeding • Drawbacks 1. Even more expensive than raytracing 2. Cannot simulate mirror reflections !(energy travels diffusely, not coherently)

  27. Hybrid Rendering • Combine Raytracing and Radiosity: • - Radiosity to give energy transfer: Color bleeding Light diffusion Caustics Soft shadows • Raytracing to give view-dependent terms: Reflections Refractions Specular highlights

  28. Lady and Gentleman at the VirginalsJohannes Vermeer (Dutch), 1662-65 Two Pass RenderingWallace, Cohen, Greenberg, 1987

  29. Photon Mapping Instead of computing all patches simultaneously, cast “photon rays” from light source. Uses points instead of patches. Photon Mapping - photons propogate Radiosity – patches don’t move

  30. Photon Mapping - Much faster.. No form factors- Need lots of photons but easier to compute.- Realistic. Photons move the way light does. Two pass approach: 1. Shoot photons around scene 2. Collect photons to create image (nearby photons are smoothed)

  31. Photon Mapping Made Easy, Yu, Lowther, Shene, SIGCSE 2005

  32. Photon Mapping Made Easy, Yu, Lowther, Shene, SIGCSE 2005

  33. Future Trends • Recent Developments (past 5 yrs): • - Ambient Occlusion – Approximation to Photon Mapping • Real-Time Raytracing using GPUs • Hybrid Rasterization and Raytracing • Volumetric Raytracing & Radiosity

More Related