Komputer Grafik 2 (AK045206) Radiosity 1/19 Radiosity.

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.
Computer graphics & visualization Global Illumination Effects.
Lecture 14 Illumination II – Global Models
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 21: Radiometry Many slides courtesy Pat Hanrahan.
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. What is Lighting? 2 Example 1. Find the cubic polynomial or that passes through the four points and satisfies 1.As a photon Metal Insulator.
Based on slides created by Edward Angel
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Shading I.
Computer Graphics - Class 10
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2008) COMS 4160, Lecture 19: Illumination and Shading 2
7M836 Animation & Rendering
Objectives Learn to shade objects so their images appear three- dimensional Learn to shade objects so their images appear three- dimensional Introduce.
1 7M836 Animation & Rendering Global illumination, radiosity Arjan Kok
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
The Radiosity Method Donald Fong February 10, 2004.
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 21: Radiosity
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.
I N T R O D U C T I O N T O C O M P U T E R G R A P H I C S Andries van Dam November 9, 2006 Radiosity 1/43 Introduction to Radiosity John F. Hughes, Andries.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Shading I Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
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.
Fundamentals of Computer Graphics Part 6 Shading prof.ing.Václav Skala, CSc. University of West Bohemia Plzeň, Czech Republic ©2002 Prepared with Angel,E.:
CS 445 / 645: Introductory Computer Graphics
-Global Illumination Techniques
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
CSC418 Computer Graphics n Illumination n Lights n Lightinging models.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Global illumination algorithms Graphics.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
Global Illumination Models THE WHITTED IMAGE - BASIC RECURSIVE RAY TRACING Copyright © 1997 A. Watt and L. Cooper.
CSE 381 – Advanced Game Programming GLSL Lighting.
Graphics Lecture 13: Slide 1 Interactive Computer Graphics Lecture 13: Radiosity - Principles.
Introduction to Radiosity Geometry Group Discussion Session Jiajian (John) Chen 9/10/2007.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Radisoity Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts Director, Arts Technology Center University of New.
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
CPSC 641 Computer Graphics: Radiosity Jinxiang Chai.
Komputer Grafik 2 (AK045206) Shading 1/17 Realisme : Shading.
Global Illumination: Radiosity, Photon Mapping & Path Tracing Rama Hoetzlein, 2009 Lecture Notes Cornell University.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
CS 445 / 645 Introduction to Computer Graphics Lecture 15 Shading Shading.
Radiosity 1. 2 Introduction Ray tracing best with many highly specular surfaces ­Not real scenes Rendering equation describes general shading problem.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
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)
Computer Graphics: Illumination
Illumination and Shading. Illumination (Lighting) Model the interaction of light with surface points to determine their final color and brightness OpenGL.
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Radisoity Ed Angel Professor Emeritus of Computer Science
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Radiosity.
Radiosity Dr. Scott Schaefer.
CSCE 441 Computer Graphics: Radiosity
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Lecture 25 Radiosity.
Illumination and Shading
CS 480/680 Computer Graphics Shading.
Advanced Computer Graphics: Radiosity
Presentation transcript:

Komputer Grafik 2 (AK045206) Radiosity 1/19 Radiosity

Komputer Grafik 2 (AK045206) Radiosity 2/19 Outline Definition Radiosity Technique General Equation Radiosity Computing Form Factor Benefit of Radiosity Limitation of Radiosity

Komputer Grafik 2 (AK045206) Radiosity 3/19 The notion that a point is illuminated by more than light from local lights; it is illuminated by all the emitters and reflectors in the global scene Ray Tracing Radiosity Ray tracing models specular reflection and refractive transparency, but still uses an ambient term to account for other lighting effects Can design an alternative simulation of the real transfer of light energy in the scene ? Global Illumination

Komputer Grafik 2 (AK045206) Radiosity 4/19 Radiosity Radiosity is the rate at which energy is emitted or reflected by a surface. By conserving light energy in a volume, these radiosity effects can be traced

Komputer Grafik 2 (AK045206) Radiosity 5/19 The Radiosity Technique: An Overview 1.Everything in the scene is modeled as a “patch” 2.Each patch starts off with an initial luminance value (all but luminaries are probably zero) 3.We iteratively determine how much luminance travels from each patch to each other patch until the entire system converges to stable values We can then render the scene from any angle without recomputing these final patch luminances

Komputer Grafik 2 (AK045206) Radiosity 6/19 Overview of Radiosity The radiometric term radiosity means the rate at which energy leaves a surface, which is the sum of the rates at which the surface emits energy and reflects (or transmits) energy received from all other surfaces. Radiosity simulations are usually based on a thermal engineering model of emission and reflection of radiation using finite element approximations. They assume conservation of energy in closed environments. First determine all light interactions in a view- independent way, then render one or more views. Consider a room with only floor and ceiling: Suppose the ceiling is actually a fluorescent drop-panel ceiling which emits light… The floor gets some of this light and reflects it back The ceiling gets some of this reflected light and sends it back… you get the idea. floor ceiling

Komputer Grafik 2 (AK045206) Radiosity 7/19 General Radiosity Equation(1/2) The radiosity equation for normalized unit areas of Lambertian diffuse patches is: Ai is the area of the i’th patch Bi is total radiosity in watts/m2 (i.e. energy/unit-time / unit- area) radiating from patch i –Note that we are now calculating Bi (and Ei) per unit area Ei is light emitted in watts/m2 ρi is fraction of incident energy reflected by patch i (related to diffuse reflection coefficient kd in simple lighting model) (Bj Aj) is total energy radiated by patch j with area Aj (i.e., radiosity x area)

Komputer Grafik 2 (AK045206) Radiosity 8/19 General Radiosity Equation(2/2) From the previous slide: F j-i is fraction of energy leaving (“exported by”) patch j arriving at patch i. It is the dimensionless form factor that takes into account shape and relative orientation of each patch and occlusion by other patches. It is a function of (r, θ i, and θ j ). –Geometrically, F j-i is the relative area of receiver patch i subtends in sender patch j’s “view”, a hemisphere centered over patch j –Note: generally patches may be concave and have self-reflection, where F i-i  0 for all i (conservation of energy) is total amount of energy leaving patch j arriving at patch i is total amount of energy leaving patch j arriving at unit area of patch i

Komputer Grafik 2 (AK045206) Radiosity 9/19 Computing Form Factors(1/7) Form factor from differential sending area dAi to differential receiving area dAj is: for ray of length r between patches, at angles qi, qj to the normals of the areas. Hij is 1 if dAj is visible from dAi and 0 otherwise.

Komputer Grafik 2 (AK045206) Radiosity 10/19 When the two patches directly face each other, maximum energy is transmitted from Ai to Aj - their normal vectors are parallel, cos  j = 1, cos  i =1 since  i =  j = 0  Rotate Aj so that it is perpendicular to Ai. Now cos  i is still 1, but cos  j = 0 since  j = 90  In between the two extrema, we calculate the energy fraction by multiplying by cos  j. Tilting A i means multiplying by cos  i Same as Lambertian diffuse reflection Computing Form Factors(2/7)

Komputer Grafik 2 (AK045206) Radiosity 11/19 From where does the r 2 term arise? The inverse- square law of light propagation: Consider a patch A 1, at a distance R = 1 from light source L. If P photons hit area A 1, their density is P/A 1. These same P photons pass through A 2. Since A 2 is twice as far from L, by similar triangles, it has four times the area of A 1. Therefore each similar patch on A 2 receives 1/4 of the photons Computing Form Factors(3/7)

Komputer Grafik 2 (AK045206) Radiosity 12/19 Computing Form Factors(4/7) The  in the formula is a normalizing factor If we integrate the form factor across the surface of a unit hemisphere, we need to achieve unity (all the light goes somewhere). By what constant k do we scale the integration to normalize this value? r = 1,  j = 0

Komputer Grafik 2 (AK045206) Radiosity 13/19 Now consider a differential patch dA i radiating to finite patch A j F di-j can be computed by projecting those parts of A j visible from dA i onto the unit hemisphere centered about dA i. The form factor is effectively the ratio of curved patch area to the total surface area of the hemisphere. Total surface area encompasses all energy emitted by dA i Computing Form Factors(5/7)

Komputer Grafik 2 (AK045206) Radiosity 14/19 Computing Form Factors(6/7) This is an approximation! It only holds if dA j is far from dA i, so the angles  i and  j do not vary significantly across their respective patches To determine F di-j, the form factor from differential area dA i to finite area A j, we integrate over area of patch j: H ij again dictates visibility: H ij = 0 implies occlusion –not trivial to resolve analytically for finite areas

Komputer Grafik 2 (AK045206) Radiosity 15/19 Let’s complete the integration for taking dA i to A i to determine F i-j Take area average over patch i to give form factor from A i to A j : If center point on patch is typical of all points, can approximate F i-j by F di-j for a dA i, at patch i’s center. Remember, both are percentages Again this breaks if patches are in close proximity, causing large variations among  i and  j An aside: we are now in a position to prove the reciprocity relationship. Cross multiplying in the equation for the form factor above gives us: –the double integrals are equal since it doesn’t matter which is the inner and which is the outer integral Using transitivity gives us the reciprocity relationship: Computing Form Factors(6/7)

Komputer Grafik 2 (AK045206) Radiosity 16/19 Benefits of Radiosity Color bleeding: a red wall next to a white one casts a reddish glow on the white wall near the corner. Soft shadows – an “area” light source casts a soft shadow from a polygon. No ambient term hack, so when you want to look at your object in low light, you don’t have to adjust parameters of the objects – just the intensities of the lights! View independent: it assigns a brightness to every surface and you can just draw those suckers! (using a standard VSD algorithm and, say, Gouraud shading to obviate the faceted look – derive vertex radiosities by averaging patch radiosities. Used in other areas of engineering where energy radiation is computed.

Komputer Grafik 2 (AK045206) Radiosity 17/19 Limitations of Radiosity Assumption that radiation is uniform in all directions Assumption that radiosity is piecewise constant –usual renderings make this assumption, but then interpolate cheaply to fake a nice-looking answer –this introduces quantifiable errors Computation of the form factors F i-j can be tough –especially with intervening surfaces, etc. Assumption that reflectivity is independent of directions to source and destination Assumption that intermediate medium is non- participatory (although there are additional equations and algorithms for calculating surface-to-volume form factors which can then be used in volume rendering a scene) Assumption that no surface is transparent or translucent Independence from wavelength – no fluorescence or phosphorescence Independence from phase – no diffraction Enormity of matrices! For large scenes, 10K x 10K matrices are not uncommon (shooting reduces need to have it all memory resident)

Komputer Grafik 2 (AK045206) Radiosity 18/19 View-dependent vs View-independent Ray-tracing models specular reflection well, but diffuse reflection is approximated Radiosity models diffuse reflection accurately, but specular reflection is ignored Advanced algorithms combine the two

Komputer Grafik 2 (AK045206) Radiosity 19/19 Referensi F.S.Hill, Jr., COMPUTER GRAPHICS – Using Open GL, Second Edition, Prentice Hall, 2001 Andries van Dam, Introduction to Computer Graphics, Slide- Presentation, Brown University, 2003, (folder : brownUni) __________, CS 319 : Advance Topic in Computer Graphics, Slide- Presentation, (folder : uiuc_cs) ____________, CS 445/645 : Introduction to Computer Graphics, Slide-Presentation, Virginia University (folder :COMP_GRAFIK)