Illumination Models Illumination Models So far considered mainly local illumination Computer Graphics (Fall 2004) Computer Graphics (Fall 2004) � Light directly from light sources to surface COMS 4160, Lecture 22: Global Illumination Global Illumination: multiple bounces � Already ray tracing: reflections/refractions http://www.cs.columbia.edu/~cs4160 Some images courtesy Henrik Wann Jensen Global Illumination Global Illumination Global Illumination Global Illumination Caustics: Focusing through specular surface Diffuse interreflection, color bleeding [Cornell Box] Major research effort in 80s, 90s till today Overview of lecture Overview of lecture Outline Outline � Theory for all methods (ray trace, radiosity) � Reflectance Equation (review) � We derive Rendering Equation [Kajiya 86] � Global Illumination � Major theoretical development in field � Unifying framework for all global illumination � Rendering Equation � Discuss existing approaches as special cases � As a general Integral Equation and Operator � Approximations (Ray Tracing, Radiosity) Fairly theoretical lecture (but important). Not well covered in any of the textbooks. Closest are 2.6.2 in Cohen and Wallace handout (but uses slightly different notation, argument [swaps x, x’ among other things]) and 16.2 in Shirley (different � Surface Parameterization (Standard Form) notation, omits emission, but has a reasonably good intuitive discussion that we somewhat follow).
Reflectance Equation (review) Reflectance Equation (review) ω ω ω ω i i r r x x Sum over all light sources + ∑ ω = ω + ω ω ω ω L x ( , ) L x ( , ) L x ( , ) ( , f x , )( i n ) ω = ω ω ω ω ω L x ( , ) L x ( , ) L x ( , ) ( , f x , )( i n ) r r e r i i i r i r r e r i i i r i Reflected Light Emission BRDF Cosine of Reflected Light Emission BRDF Cosine of Incident Incident (Output Image) Light (from Incident angle (Output Image) Light (from Incident angle light source) light source) Reflectance Equation (review) Global Illumination Surfaces (interreflection) x ′ dA ω ω d ω ω d ω ω i i i r i r x x ′− ω ∼ x x Replace sum with integral i + ∫ ∫ ω = ω ω ω ω θ ω ω = ω + ′ − ω ω ω θ ω L x ( , ) L x ( , ) L x ( , ) ( , f x , ) cos d L x ( , ) L x ( , ) L x ( , ) f x ( , , ) cos d r r e r i i i r i i r r e r r i i r i i Ω Ω Cosine of Cosine of Reflected Light Emission Incident BRDF Reflected Light Emission Reflected BRDF (Output Image) Incident angle (Output Image) Incident angle Light (from Light (from light source) surface) Rendering Equation Rendering Equation (Kajiya Rendering Equation ( Kajiya 86) 86) Surfaces (interreflection) x ′ dA ω d ω ω i r i x ∫ ω = ω + ′ − ω ω ω θ ω L x ( , ) L x ( , ) L x ( , ) f x ( , , ) c os d r r e r r i i r i i Ω Reflected Light Emission Reflected BRDF Cosine of (Output Image) Incident angle Light UNKNOWN KNOWN UNKNOWN KNOWN KNOWN
Rendering Equation as Integral Equation Outline Outline ∫ ′ − L x ( , ω ) = L x ( , ω ) + L x ( , ω ) f x ( , ω ω , ) c os θ ω d � Reflectance Equation (review) r r e r r i i r i i Ω Cosine of Reflected Light Emission Reflected BRDF � Global Illumination (Output Image) Light Incident angle UNKNOWN KNOWN KNOWN � Rendering Equation UNKNOWN KNOWN � As a general Integral Equation and Operator Is a Fredholm Integral Equation of second kind [extensively studied numerically] with canonical form � Approximations (Ray Tracing, Radiosity) + ∫ = l u ( ) e u ( ) l v ( ) K u ( , ) v dv � Surface Parameterization (Standard Form) The material in this part of the lecture is fairly advanced and Kernel of equation not covered in any of the texts. The slides should be fairly complete. This section is fairly short, and I hope some of you will get some insight into solutions for general global illumination Linear Operator Equation Solution Techniques + ∫ = All global illumination methods try to solve l u ( ) e u ( ) l v ( ) K u ( , ) v dv (approximations of) the rendering equation Kernel of equation – Too hard for analytic solution: numerical methods Light Transport Operator – General theory of solving integral equations = + L E KL Radiosity (next lecture; usually diffuse surfaces) – General class numerical finite element methods (divide Can be discretized to a simple matrix equation surfaces in scene into a finite set elements or patches) [or system of simultaneous linear equations] – Set up linear system (matrix) of simultaneous equations (L, E are vectors, K is the light transport matrix) – Solve iteratively Ray Tracing and extensions Ray Tracing L = + + 2 + 3 + E KE K E K E ... – General class numerical Monte Carlo methods – Approximate set of all paths of light in scene = + L E KL Emission directly From light sources − = IL K L E Direct Illumination − = ( I K ) L E on surfaces − = − 1 L ( I K ) E Global Illumination Binomial Theorem (One bounce indirect) = + + + + [Mirrors, Refraction] 2 3 L ( I K K K ...) E L = + + + + (Two bounce indirect) 2 3 E KE K E K E ... [Caustics etc]
Ray Tracing Outline Outline = + + + + 2 3 L E K E K E K E ... � Reflectance Equation (review) � Global Illumination Emission directly � Rendering Equation From light sources � As a general Integral Equation and Operator Direct Illumination on surfaces � Approximations (Ray Tracing, Radiosity) Global Illumination OpenGL Shading � Surface Parameterization (Standard Form) (One bounce indirect) [Mirrors, Refraction] Page 289 of Shirley is reasonably close to this part of lecture, although it uses different notation. See also pages 38 and 39 (Two bounce indirect) in handout, which may have a clearer explanation of the ideas. [Caustics etc] Rendering Equation Change of Variables Surfaces (interreflection) ∫ ω = ω + ′ − ω ω ω θ ω L x ( , ) L x ( , ) L x ( , ) ( , f x , ) cos d x ′ r r e r r i i r i i Ω dA Integral over angles sometimes insufficient. Write integral in terms of surface radiance only (change of variables) ω d ω ω x ′ i i r θ x o dA ′ ′− ω − ω ∼ x x i i ′ θ d ω dA cos ∫ ω = ω + ′ − ω ω ω θ ω L x ( , ) L x ( , ) L x ( , ) f x ( , , ) c os d θ ω ω = i d o r r e r r i i r i i i i − ′ i | x x | 2 Ω Cosine of Reflected Light Emission Reflected BRDF x (Output Image) Incident angle Light UNKNOWN KNOWN KNOWN UNKNOWN KNOWN Change of Variables Rendering Equation: Standard Form ∫ ∫ ω = ω + ′ − ω ω ω θ ω ω = ω + ′ − ω ω ω θ ω L x ( , ) L x ( , ) L x ( , ) ( , f x , ) cos d L x ( , ) L x ( , ) L x ( , ) ( , f x , ) cos d r r e r r i i r i i r r e r r i i r i i Ω Ω Integral over angles sometimes insufficient. Write integral Integral over angles sometimes insufficient. Write integral in terms of surface radiance only (change of variables) in terms of surface radiance only (change of variables) θ θ θ θ cos cos cos cos ∫ ′ ′ ∫ ′ ′ L x ( , ω ) = L x ( , ω ) + L x ( , − ω ) ( , f x ω ω , ) i o d A L x ( , ω ) = L x ( , ω ) + L x ( , − ω ) ( , f x ω ω , ) i o d A ′ ′ r r e r r i i r − 2 r r e r r i i r − 2 | x x | | x x | ′ ′ all x visible to x all x visible to x Domain integral awkward. Introduce binary visibility fn V ∫ ω = ω + ′ − ω ω ω ′ ′ ′ L x ( , ) L x ( , ) L x ( , ) ( , f x , ) ( , G x x V ) ( , x x ) dA r r e r r i i r ′ ′ θ all surfaces x ′ θ dA cos dA cos ω = ω = d o d o Same as equation 2.52 Cohen Wallace. It swaps primed i ′ i ′ − 2 − 2 | x x | | x x | And unprimed, omits angular args of BRDF, - sign. Same as equation above 16.3 in Shirley, except he has θ θ θ θ cos cos cos cos ′ ′ ′ ′ = = no emission, slightly diff. notation = = G x x ( , ) G x x ( , ) i o G x x ( , ) G x x ( , ) i o ′ ′ − 2 − 2 | x x | | x x |
Overview Overview � Theory for all methods (ray trace, radiosity) � We derive Rendering Equation [Kajiya 86] � Major theoretical development in field � Unifying framework for all global illumination � Discuss existing approaches as special cases
Recommend
More recommend