Radisoity Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

SI31 Advanced Computer Graphics AGR
Computer Vision Radiometry. Bahadir K. Gunturk2 Radiometry Radiometry is the part of image formation concerned with the relation among the amounts of.
CAP 4703 Computer Graphic Methods Prof. Roy Levow Chapter 6.
Computer graphics & visualization Global Illumination Effects.
Radiosity Mel Slater Department of Computer Science University College London
Computer Graphics (Fall 2008) COMS 4160, Lecture 18: Illumination and Shading 1
The Radiance Equation Mel Slater. Outline Introduction Light Simplifying Assumptions Radiance Reflectance The Radiance Equation Traditional Rendering.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
Radiometry. Outline What is Radiometry? Quantities Radiant energy, flux density Irradiance, Radiance Spherical coordinates, foreshortening Modeling surface.
Modeling the Interaction of Light Between Diffuse Surfaces Cindy M. Goral, Keenth E. Torrance, Donald P. Greenberg and Bennett Battaile Presented by: Chris.
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.
Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Advanced Computer Graphics (Spring 2013) CS 283, Lecture 8: Illumination and Reflection Many slides courtesy.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
University of New Mexico
Ray Tracing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of.
Radiosity A Fascinating Presentation by Alex Danilevky.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
The Radiosity Method Donald Fong February 10, 2004.
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
1 Dr. Scott Schaefer Radiosity. 2/38 Radiosity 3/38 Radiosity Physically based model for light interaction View independent lighting Accounts for indirect.
CSCE 441 Computer Graphics: Radiosity Jinxiang Chai.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Shading Surface can either (both) 1.Emit light. E.g. light bult 2.Reflect light. E.g. Mirror.
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
CSE 872 Dr. Charles B. Owen Advanced Computer Graphics1 Radiosity What we can do with scan line conversion and ray tracing What we can’t do Radiosity.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Radiosity 김 성 남. Contents Definition/Goal Basic Radiosity Method Progressive Radiosity Method Mesh substructuring Hierarchical Radiosity Ray.
-Global Illumination Techniques
02/16/05© 2005 University of Wisconsin Last Time Re-using paths –Irradiance Caching –Photon Mapping.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
Global Illumination CMSC 435/634. Global Illumination Local Illumination – light – surface – eye – Throw everything else into ambient Global Illumination.
Bi-Directional Reflectance Distribution Functions (BRDF’s) Matthew McCrory.
Graphics Lecture 13: Slide 1 Interactive Computer Graphics Lecture 13: Radiosity - Principles.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
DPL11/27/2015 CS 551/651: Radiosity David Luebke
Komputer Grafik 2 (AK045206) Radiosity 1/19 Radiosity.
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.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Material Representation K. H. Ko School of Mechatronics Gwangju Institute.
Radiosity 1. 2 Introduction Ray tracing best with many highly specular surfaces ­Not real scenes Rendering equation describes general shading problem.
In the name of God Computer Graphics. Last Time Some techniques for modeling Today Global illumination and raytracing.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Bump Mapping Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of.
OpenGL Shading. 2 Objectives Learn to shade objects so their images appear three-dimensional Introduce the types of light-material interactions Build.
Global Illumination (2) Radiosity (3). Classic Radiosity Algorithm Mesh Surfaces into Elements Compute Form Factors Between Elements Solve Linear System.
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
Radiosity for an environment in which all the surfaces are perfectly diffuse reflectors.
Illumination Study of how different materials reflect light Definition of radiance, the fundamental unit of light transfer in computer graphics How the.
Graphics Lecture 14: Slide 1 Interactive Computer Graphics Lecture 14: Radiosity - Computational Issues.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
Computer Graphics Ken-Yi Lee National Taiwan University (the slides are adapted from Bing-Yi Chen and Yung-Yu Chuang)
Advanced Computer Graphics
Radisoity Ed Angel Professor Emeritus of Computer Science
© 2002 University of Wisconsin
Introduction to Computer Graphics with WebGL
Introduction to Computer Graphics with WebGL
Radiosity Dr. Scott Schaefer.
CSCE 441 Computer Graphics: Radiosity
Illumination and Shading
OPTICS III, IV: Global Illumination
Presentation transcript:

Radisoity Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New Mexico 1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009

2 Introduction Ray tracing is best with many highly specular sufaces ­Not characteristic of real scenes Rendering equation describes general shading problem Radiosity solves rendering equation for perfectly diffuse surfaces

3 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Terminology Energy ~ light (incident, transmitted) ­Must be conserved Energy flux = luminous flux = power = energy/unit time ­Measured in lumens ­Depends on wavelength so we can integrate over spectrum using luminous efficiency curve of sensor Energy density (Φ) = energy flux/unit area

4 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Terminology Intensity ~ brightness ­Brightness is perceptual = flux/area-solid angle = power/unit projected area per solid angle ­Measured in candela Φ = ∫ ∫ I dA dω

5 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Rendering Eqn (Kajiya) Consider a point on a surface N I out (Φ out ) I in (Φ in )

6 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Rendering Equation Outgoing light is from two sources ­Emission ­Reflection of incoming light Must integrate over all incoming light ­Integrate over hemisphere Must account for foreshortening of incoming light

7 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Rendering Equation I out (Φ out ) = E( Φ out ) + ∫ 2π R bd (Φ out, Φ in )I in (Φ in ) cos θ dω bidirectional reflection coefficient angle between normal and Φin emission Note that angle is really two angles in 3D and wavelength is fixed

8 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Rendering Equation Rendering equation is an energy balance ­Energy in = energy out Integrate over hemisphere Fredholm integral equation ­Cannot be solved analytically in general Various approximations of R bd give standard rendering models Should also add an occlusion term in front of right side to account for other objects blocking light from reaching surface

9 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Another version Consider light at a point p arriving from p ’ i(p, p’) = υ(p, p’)(ε(p,p’)+ ∫ ρ(p, p’, p’’)i(p’, p’’)dp’’ occlusion = 0 or 1/d 2 emission from p’ to p light reflected at p’ from all points p’’ towards p

10 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Radiosity Consider objects to be broken up into flat patches (which may correspond to the polygons in the model) Assume that patches are perfectly diffuse reflectors Radiosity = flux = energy/unit area/ unit time leaving patch

11 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Notation n patches numbered 1 to n b i = radiosity of patch I a i = area patch I total intensity leaving patch i = b i a i e i a i = emitted intensity from patch I ρ i = reflectivity of patch I f ij = form factor = fraction of energy leaving patch j that reaches patch i

12 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Radiosity Equation energy balance b i a i = e i a i + ρ i ∑ f ji b j a j reciprocity f ij a i = f ji a j radiosity equation b i = e i + ρ i ∑ f ij b j

13 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Matrix Form b = [b i ] e = [e i ] R = [r ij ] r ij = ρ i if i ≠ jr ii = 0 F = [f ij ]

14 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Matrix Form b = e - RFb formal solution b = [I-RF] -1 e Not useful since n is usually very large Alternative: use observation that F is sparse We will consider determination of form factors later

15 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Solving the Radiosity Equation For sparse matrices, iterative methods usually require only O(n) operations per iteration Jacobi’s method b k+1 = e - RFb k Gauss-Seidel: use immediate updates

16 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Series Approximation 1/(1-x) = 1 + x + x 2 + …… b = [I-RF] -1 e = e + RFe + (RF) 2 e +… [I-RF] -1 = I + RF +(RF) 2 +…

17 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Rendered Image

18 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Patches

19 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Computing Form Factors Consider two flat patches

20 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Using Differential Patches foreshortening

21 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Form Factor Integral f ij = (1/a i ) ∫ ai ∫ ai (o ij cos θ i cos θ j / πr 2 )da i da j occlusion foreshortening of patch i foreshortening of patch j

22 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Solving the Intergral There are very few cases where the integral has a (simple) closed form solution ­Occlusion further complicates solution Alternative is to use numerical methods Two step process similar to texture mapping ­Hemisphere ­Hemicube

23 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Form Factor Examples 1

24 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Form Factor Examples 2

25 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Form Factor Examples 3

26 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Hemisphere Use illuminating hemisphere Center hemisphere on patch with normal pointing up Must shift hemisphere for each point on patch

27 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Hemisphere

28 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Hemicube Easier to use a hemicube instead of a hemisphere Rule each side into “pixels” Easier to project on pixels which give delta form factors that can be added up to give desired from factor To get a delta form factor we need only cast a ray through each pixel

29 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Hemicube

30 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Instant Radiosity Want to use graphics system if possible Suppose we make one patch emissive The light from this patch is distributed among the other patches Shade of other patches ~ form factors Must use multiple OpenGL point sources to approximate a uniformly emissive patch