Global Illumination. Why Global Illumination. Pros/Cons and Applications. What s Global Illumination

Similar documents
A Brief Overview of. Global Illumination. Thomas Larsson, Afshin Ameri Mälardalen University

Illumination Algorithms

Rendering: Reality. Eye acts as pinhole camera. Photons from light hit objects

Global Illumination. CSCI 420 Computer Graphics Lecture 18. BRDFs Raytracing and Radiosity Subsurface Scattering Photon Mapping [Ch

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Global Illumination. Global Illumination. Direct Illumination vs. Global Illumination. Indirect Illumination. Soft Shadows.

Path Tracing part 2. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

Computer Graphics. Lecture 13. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura

Korrigeringar: An introduction to Global Illumination. Global Illumination. Examples of light transport notation light

Lecture 12: Photon Mapping. Biased Methods

Computer Graphics. Si Lu. Fall uter_graphics.htm 11/22/2017

Global Illumination. COMP 575/770 Spring 2013

Raytracing & Epsilon. Today. Last Time? Forward Ray Tracing. Does Ray Tracing Simulate Physics? Local Illumination

Computer Graphics. Lecture 10. Global Illumination 1: Ray Tracing and Radiosity. Taku Komura 12/03/15

Photon Mapping. Due: 3/24/05, 11:59 PM

Final Project: Real-Time Global Illumination with Radiance Regression Functions

Rendering Part I (Basics & Ray tracing) Lecture 25 December 1, 2015

The Rendering Equation & Monte Carlo Ray Tracing

To Do. Advanced Computer Graphics. Course Outline. Course Outline. Illumination Models. Diffuse Interreflection

Advanced Graphics. Path Tracing and Photon Mapping Part 2. Path Tracing and Photon Mapping

COMP371 COMPUTER GRAPHICS

The Rendering Equation. Computer Graphics CMU /15-662

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

Schedule. MIT Monte-Carlo Ray Tracing. Radiosity. Review of last week? Limitations of radiosity. Radiosity

CMSC427 Shading Intro. Credit: slides from Dr. Zwicker

The Rendering Equation and Path Tracing

Image Synthesis. Global Illumination. Why Global Illumination? Achieve more photorealistic images

Global Illumination CS334. Daniel G. Aliaga Department of Computer Science Purdue University

Photon Mapping. Michael Doggett Department of Computer Science Lund university

Global Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

Chapter 7 - Light, Materials, Appearance

Recent Advances in Monte Carlo Offline Rendering

Ray Tracing. CSCI 420 Computer Graphics Lecture 15. Ray Casting Shadow Rays Reflection and Transmission [Ch ]

Local vs. Global Illumination & Radiosity

MIT Monte-Carlo Ray Tracing. MIT EECS 6.837, Cutler and Durand 1

Consider a partially transparent object that is illuminated with two lights, one visible from each side of the object. Start with a ray from the eye

Lecture 18: Primer on Ray Tracing Techniques

Part I The Basic Algorithm. Principles of Photon Mapping. A two-pass global illumination method Pass I Computing the photon map

Virtual Reality for Human Computer Interaction

An introduction to Global Illumination. Tomas Akenine-Möller Department of Computer Engineering Chalmers University of Technology

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Global Illumination The Game of Light Transport. Jian Huang

To Do. Real-Time High Quality Rendering. Motivation for Lecture. Monte Carlo Path Tracing. Monte Carlo Path Tracing. Monte Carlo Path Tracing

MITOCW MIT6_172_F10_lec18_300k-mp4

Global Rendering. Ingela Nyström 1. Effects needed for realism. The Rendering Equation. Local vs global rendering. Light-material interaction

Indirect Illumination

Topic 12: Texture Mapping. Motivation Sources of texture Texture coordinates Bump mapping, mip-mapping & env mapping

11/2/2010. In the last lecture. Monte-Carlo Ray Tracing : Path Tracing. Today. Shadow ray towards the light at each vertex. Path Tracing : algorithm

The Rendering Equation. Computer Graphics CMU /15-662, Fall 2016

COMPUTER GRAPHICS COURSE. LuxRender. Light Transport Foundations

Lighting. Figure 10.1

Lighting affects appearance

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Intro to Ray-Tracing & Ray-Surface Acceleration

Today. Participating media. Participating media. Rendering Algorithms: Participating Media and. Subsurface scattering

Shading, lighting, & BRDF Theory. Cliff Lindsay, PHD

GLOBAL ILLUMINATION. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION

Today. Anti-aliasing Surface Parametrization Soft Shadows Global Illumination. Exercise 2. Path Tracing Radiosity

03 RENDERING PART TWO

Recollection. Models Pixels. Model transformation Viewport transformation Clipping Rasterization Texturing + Lights & shadows

Monte-Carlo Ray Tracing. Antialiasing & integration. Global illumination. Why integration? Domains of integration. What else can we integrate?

RAYTRACING. Christopher Peters INTRODUCTION TO COMPUTER GRAPHICS AND INTERACTION. HPCViz, KTH Royal Institute of Technology, Sweden

Choosing the Right Algorithm & Guiding

Stochastic Path Tracing and Image-based lighting

Motivation: Monte Carlo Rendering. Sampling and Reconstruction of Visual Appearance. Caustics. Illumination Models. Overview of lecture.

Topic 11: Texture Mapping 11/13/2017. Texture sources: Solid textures. Texture sources: Synthesized

Photon Maps. The photon map stores the lighting information on points or photons in 3D space ( on /near 2D surfaces)

CS-184: Computer Graphics. Today. Lecture #16: Global Illumination. Sunday, November 8, 2009

Motivation. Advanced Computer Graphics (Fall 2009) CS 283, Lecture 11: Monte Carlo Integration Ravi Ramamoorthi

Lighting affects appearance

Monte Carlo Ray-tracing and Rendering

Topic 11: Texture Mapping 10/21/2015. Photographs. Solid textures. Procedural

CS-184: Computer Graphics. Administrative

Simple Lighting/Illumination Models

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Lighting and Shading

Paths, diffuse interreflections, caching and radiometry. D.A. Forsyth

CPSC GLOBAL ILLUMINATION

Shading. Brian Curless CSE 557 Autumn 2017

Lecture 7 - Path Tracing

COMPUTER GRAPHICS AND INTERACTION

Reflection and Shading

Indirect Illumination

CS-184: Computer Graphics. Today. Lecture 22: Radiometry! James O Brien University of California, Berkeley! V2014-S

SOME THEORY BEHIND REAL-TIME RENDERING

Visual cues to 3D geometry. Light Reflection and Advanced Shading. Shading. Recognizing materials. size (perspective) occlusion shading

I have a meeting with Peter Lee and Bob Cosgrove on Wednesday to discuss the future of the cluster. Computer Graphics

Today. Rendering algorithms. Rendering algorithms. Images. Images. Rendering Algorithms. Course overview Organization Introduction to ray tracing

CS 563 Advanced Topics in Computer Graphics Irradiance Caching and Particle Tracing. by Stephen Kazmierczak

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Rendering. Mike Bailey. Rendering.pptx. The Rendering Equation

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Advanced Graphics. Global Illumination. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

Local Illumination. CMPT 361 Introduction to Computer Graphics Torsten Möller. Machiraju/Zhang/Möller

CS354R: Computer Game Technology

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

REAL-TIME GPU PHOTON MAPPING. 1. Introduction

Motivation: Monte Carlo Path Tracing. Sampling and Reconstruction of Visual Appearance. Monte Carlo Path Tracing. Monte Carlo Path Tracing

Illumination. The slides combine material from Andy van Dam, Spike Hughes, Travis Webb and Lyn Fong

Transcription:

Global Illumination Why Global Illumination Last lecture Basic rendering concepts Primitive-based rendering Today: Global illumination Ray Tracing, and Radiosity (Light-based rendering) What s Global Illumination Global illumination algorithms used in computer graphics are those which, when determining the light falling on a surface, take into account not only the light which has taken a path directly from a light source (direct illumination), but also light which has undergone reflection from other surfaces in the world (indirect illumination). From Wikipedia, the free encyclopedia Pros/Cons and Applications Advantages Accurately predict the appearance of real world Generate correct and better images Disadvantages Too complex to solve analytically Expensive to get numerical solution Applications Movie.. 1

Global Illumination Equation Reflection Equation Global Illumination Equation The total light leaving a point is given by the sum of two major terms: Exitance from the point Incoming light from other sources reflected at the point Light leaving Sum BRDF Incoming light Incoming light reflected at the point Light leaving Exitance Sum BRDF Incoming light Energy Balance Equation Incoming light reflected at the point Photorealistic Rendering Computing Light Transport Photorealistic Rendering requires solving the equation! Not possible in the general case with today s technology Light transport is the problem of figuring out where the light s power goes Light sources emit light Surface reflect or absorb light We want to know how much light reaches the image plane, and what color it is Depends on the geometric arrangement and the surface properties First, we need to describe lights and how surfaces reflect lights.? 2

Sources emit light: Point Light Spot Light Area Light Distant Area Light (sky, environment map) Light Sources Reflectance Modeling Reflectance modeling is concerned with the way in which light reflects off surfaces Physical quantity is BRDF: Bidirectional Reflectance Distribution Function A function of a point on the surface, an incoming light direction, and an outgoing light direction Tells you how much of the light that comes in from one direction goes out in another direction General BRDFs are difficult to work with, so simplifications are made From Matt Pharr et al., Physically Based Rendering Simple BRDFs Diffuse surfaces (Lambertian): Uniformly reflect all the light they receive A reasonable approximation for matte paints, soot, carpet Perfectly specular surfaces: Reflect incoming light only in the mirror direction Rough specular surfaces: Reflect incoming light around the mirror direction Diffuse + Specular: A diffuse component and a specular component Fresnel surfaces: Reflect some and transmit some depending on incoming direction Classifying Rendering Algorithms One way to classify rendering algorithms is according to the type of light interactions they capture For example: The OpenGL lighting model captures: Direct light to surface to eye light transport Diffuse and rough specular surface reflectance It actually doesn t do light to surface transport correctly, because it doesn t do shadows We would like a way of describing interactions: light paths 3

Describing Light Paths Describe light paths according to where they come from, where they go to, and what they do along the way S or D Assume only two types of surface interactions: Pure diffuse, D S or D S or D Pure specular, S Assume all paths of interest: Start at a light source, L End at the eye, E Light Eye Use regular expressions on the letters D, S, L and E to describe light paths Valid paths are L(D S)*E Light, followed by either diffuse or specular, zero or more times, ending at the eye Simple Light Path Examples LE The light goes straight from the source to the viewer LDE The light goes from the light to a diffuse surface that the viewer can see LSE The light is reflected off a mirror into the viewer s eyes L(S D)E The light is reflected off either a diffuse surface or a specular surface toward the viewer More Complex Light Paths Find the following: LE LDE LSE LDDE LDSE LSDE 11/17/2005 (c) 2005 University of Wisconsin Radiosity Cornell box, due to Henrik wann Jensen, http://www.gk.dtu.dk/ ~hwj, rendered with ray tracer Shaohua Fan More Complex Light Paths LE LDDE LSDE LSE LDSE LDE 4

The OpenGL Model The standard graphics lighting model captures only L(D S)E It is missing: Light taking more than one diffuse bounce: LD*E Should produce an effect called color bleeding, among other things Approximated, by ambient light Light refracted through curved glass Consider the refraction as a mirror bounce: LDSE Light bouncing off a mirror to illuminate a diffuse surface: LS+D+E Many others Raytracing Cast rays out from the eye, through each pixel, and determine what they hit first Builds the image pixel by pixel, one at a time Cast additional rays from the hit point to determine the pixel color Shadow rays toward each light. If they hit something, then the object is shadowed from that light, otherwise use standard model for the light Reflection rays for mirror surfaces, to see what should be reflected in the mirror Transmission rays to see what can be seen through transparent objects Sum all the contributions to get the pixel color Raytracing Recursive Ray Tracing Shadow rays Reflection ray When a reflected or refracted ray hits a surface, repeat the whole process from that point Send out more shadow rays Send out new reflected ray (if required) Send out a new refracted ray (if required) Generally, reduce the weight of each additional ray when computing the contributions to surface color Stop when the contribution from a ray is too small to notice What light paths does recursive ray tracing capture? Transmitted ray 5

Ray Tree B Eye A L1 L1 A L2 L2 C B C L1 L2 L1 L2 PCKTWTCH by Kevin Odhner, POV-Ray Kettle, Mike Miller, POV- Ray 6

Which paths are missing in Raytracing? Missing Paths Raytracing cannot do: LS*D + E: Light bouncing off a shiny surface like a mirror and illuminating a diffuse surface LDD + E: Light bouncing off one diffuse surface to illuminate others Basic problem: The raytracer doesn t know where to send rays out of the diffuse surface to capture the incoming light Light Caching Caustics Cast rays from the light sources out into the scene: shoot When a ray hits a diffuse surface, accumulate some light there Surfaces record the amount of light that hits them Store the light in texture maps Store the light in quadtrees Store the light in photon maps Cast rays from the eye out into the scene: gather When a ray hits a diffuse surface, look up the amount of light that hit it in the light-ray phase What paths does it capture? What sort of visual effects do you see? Standard raytracer: Diffuse table and blue ball, mirrors left, right and back, transparent red ball Bi-directional raytracer Note the LS*DS*E paths From Alan Watt, 3D Computer Graphics More rays in the light pass 7

Refraction caustic Refraction caustics Henrik wann Jensen, http://www.gk.dtu.dk/~hwj Henrik wann Jensen, http://www.gk.dtu.dk/~hwj Still Missing LD * E paths Diffuse-diffuse transport Formulated and solved with radiosity methods Color bleeding Radiosity Example Color bleeding is extreme in this example Textures are applied after solving for illumination From Alan Watt, 3D Computer Graphics 8

Radiosity Assumptions All surfaces are perfectly diffuse Means that is doesn t matter which way light hits or leaves a surface Illumination is constant over a patch Can break the world up into a discrete number of pieces Problems at sharp illumination boundaries - shadows Ways around these problems, but less efficient and less able to manage scene complexity Assumptions allow us to solve for LD*E paths Radiosity Meshing Each patch is colored with its illumination Note the discrete nature of the solution The previous image was obtained by pushing color to vertices and then Gourand shading From Alan Watt, 3D Computer Graphics Monte Carlo Rendering for GI Monte Carlo Rendering for GI Most general cases L(S D) * E paths Using Monte Carlo simulation to compute global illumination Path Tracing Bi-direction Path Tracing Photon Mapping Metropolis Light Transport (MLT) Metropolis Photon Sampling (MPS) Bidirectional Importance Sampling From Eric Veach, Robust Monte Carlo Methods for Light Transport Simulation 9

Acknowledgement Most slides are directly copied from Stephen Chenney s course lectures http://www.cs.wisc.edu/~schenney/courses/ Thank Stephen for answering my questions on some slides 10