DPL11/27/2015 CS 551/651: Radiosity David Luebke

Slides:



Advertisements
Similar presentations
SI31 Advanced Computer Graphics AGR
Advertisements

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
Advanced Computer Graphics
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.
Ray Tracing & Radiosity Dr. Amy H. Zhang. Outline  Ray tracing  Radiosity.
David Luebke1/19/99 CS 551/651: Advanced Computer Graphics David Luebke
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.
IMGD 1001: Illumination by Mark Claypool
Computer Graphics (Fall 2005) COMS 4160, Lecture 16: Illumination and Shading 1
Radiosity A Fascinating Presentation by Alex Danilevky.
Interreflections and Radiosity : The Forward Problem Lecture #11 Thanks to Kavita Bala, Pat Hanrahan, Doug James, Ledah Casburn.
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 10: Global Illumination Ravi Ramamoorthi Some images courtesy.
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.
Computer Graphics (Spring 2008) COMS 4160, Lecture 22: Global Illumination
Course Website: Computer Graphics 16: Illumination.
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.
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
CS 376 Introduction to Computer Graphics 04 / 16 / 2007 Instructor: Michael Eckmann.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Global illumination algorithms Graphics.
David Luebke 1 10/12/2015 CS 551/651: Advanced Computer Graphics Advanced Ray Tracing Radiosity.
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.
David Luebke10/21/2015 CS 551 / 645: Introductory Computer Graphics David Luebke
David Luebke 1 10/26/2015 Lighting CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology Basic Rendering Pipeline and Shading Spring 2012.
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.
CPSC 641 Computer Graphics: Radiosity Jinxiang Chai.
Komputer Grafik 2 (AK045206) Shading 1/17 Realisme : Shading.
David Luebke 1 12/2/2015 CS 551/651: Advanced Computer Graphics Advanced Ray Tracing Radiosity.
Illumination and 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 고려대학교 컴퓨터 그래픽스 연구실.
Chap 5 Global Illumination
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.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Computer Graphics (Fall 2003) COMS 4160, Lecture 20: Radiosity Ravi Ramamoorthi
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
02/07/03© 2003 University of Wisconsin Last Time Finite element approach Two-pass approaches.
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
David Luebke3/16/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
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
Advanced Computer Graphics
Advanced Computer Graphics
CS 319 Advanced Topics in Computer Graphics John C. Hart
The Rendering Equation
CSCE 441 Computer Graphics: Radiosity
Foundations of Computer Graphics (Spring 2012)
Radiosity Sung-Eui Yoon (윤성의) CS580: Course URL:
Advanced Computer Graphics: Radiosity
Presentation transcript:

DPL11/27/2015 CS 551/651: Radiosity David Luebke

DPL11/27/2015 Administrivia Hand in Assignment 1 (again) Hand in Assignment 1 (again) Questions about Assignment 2? Questions about Assignment 2? Read Chapter 11 Read Chapter 11

DPL11/27/2015 Radiosity Introduction First lighting model: Phong First lighting model: Phong –Still used in interactive graphics –Major shortcoming: local illumination! Two post-Phong approaches: Two post-Phong approaches: –Ray tracing –Radiosity

DPL11/27/2015 Radiosity Introduction Ray tracing: ad hoc approach to simulating optics Ray tracing: ad hoc approach to simulating optics –Deals well with specular reflection –Trouble with diffuse illumination Radiosity: theoretically rigorous simulation of light transfer Radiosity: theoretically rigorous simulation of light transfer –Very realistic images –But makes simplifying assumption: only diffuse interaction!

DPL11/27/2015 Radiosity Introduction Ray-tracing: Ray-tracing: –Computes a view-dependent solution –End result: a picture Radiosity: Radiosity: –Models only diffuse interaction, so can compute a view-independent solution –End result: a 3-D model

DPL11/27/2015 Radiosity Basic idea: represent surfaces in environment as many discrete patches Basic idea: represent surfaces in environment as many discrete patches A patch, or element, is a polygon over which light intensity is constant A patch, or element, is a polygon over which light intensity is constant

DPL11/27/2015 Radiosity Model light transfer between patches as a system of linear equations Model light transfer between patches as a system of linear equations Solving this system gives the intensity at each patch Solving this system gives the intensity at each patch Solve for R, G, B intensities and get color at each patch Solve for R, G, B intensities and get color at each patch Render patches as colored polygons in OpenGL. Voila! Render patches as colored polygons in OpenGL. Voila!

DPL11/27/2015 Fundamentals Theoretical foundation: heat transfer Theoretical foundation: heat transfer Need system of equations that describes surface interreflections Need system of equations that describes surface interreflections Simplifying assumptions: Simplifying assumptions: –Environment is closed –All surfaces are Lambertian reflectors

DPL11/27/2015 Definitions Lambertian surfaces are “perfectly diffuse”; they reflect incident light in all directions equally Lambertian surfaces are “perfectly diffuse”; they reflect incident light in all directions equally –Q: Do Lambertian surfaces really exist? The radiosity of a surface is the rate at which energy leaves the surface The radiosity of a surface is the rate at which energy leaves the surface

DPL11/27/2015 Radiosity Radiosity = rate at which the surface emits energy + rate at which the surface reflects Radiosity = rate at which the surface emits energy + rate at which the surface reflects energy –Notice: previous methods distinguish light sources from surfaces –In radiosity all surfaces can emit light –Thus: all emitters inherently have area

DPL11/27/2015 Radiosity Break environment up into a finite number n of discrete patches Break environment up into a finite number n of discrete patches –Patches are opaque Lambertian surfaces of finite size –Patches emit and reflect light uniformly over their entire surface Q: What’s wrong with this model? Q: What’s wrong with this model? Q: What can we do about it? Q: What can we do about it?

DPL11/27/2015 Radiosity Then for each surface i: Then for each surface i: B i = E i +  i  B j F ji (A j / A i ) where B i, B j = radiosity of patch i, j A i, A j = area of patch i, j E i = energy/area/time emitted by i  i = reflectivity of patch i F ji = Form factor from j to i

DPL11/27/2015 Form Factors Form factor: fraction of energy leaving the entirety of patch i that arrives at patch j, accounting for: Form factor: fraction of energy leaving the entirety of patch i that arrives at patch j, accounting for: –The shape of both patches –The relative orientation of both patches –Occlusion by other patches

DPL11/27/2015 Form Factors Some examples… Some examples… Form factor: nearly 100%

DPL11/27/2015 Form Factors Some examples… Some examples… Form factor: roughly 50%

DPL11/27/2015 Form Factors Some examples… Some examples… Form factor: roughly 10%

DPL11/27/2015 Form Factors Some examples… Some examples… Form factor: roughly 5%

DPL11/27/2015 Form Factors Some examples… Some examples… Form factor: roughly 30%

DPL11/27/2015 Form Factors Some examples… Some examples… Form factor: roughly 2%

DPL11/27/2015 Form Factors In diffuse environments, form factors obey a simple reciprocity relationship: In diffuse environments, form factors obey a simple reciprocity relationship: A i F ij = A i F ji Which simplifies our equation: B i = E i +  i  B j F ij Which simplifies our equation: B i = E i +  i  B j F ij Rearranging to: B i -  i  B j F ij = E i Rearranging to: B i -  i  B j F ij = E i

DPL11/27/2015 Form Factors So…light exchange between all patches becomes a matrix: So…light exchange between all patches becomes a matrix: 1 -  1 F 11 -  1 F 12 … -  1 F 1n B 1 E 1 -  2 F  2 F 22 … -  2 F 2n B 2 E 2.. …... - p n F n1 -  n F n2 …1 -  n F nn B n E n Q: What do the various terms mean? Q: What do the various terms mean?

DPL11/27/2015 Form Factors 1 -  1 F 11 -  1 F 12 … -  1 F 1n B 1 E 1 -  2 F  2 F 22 … -  2 F 2n B 2 E 2.. …... - p n F n1 -  n F n2 … 1 -  n F nn B n E n Note: E i values zero except at emitters Note: E i values zero except at emitters Note: F ii is zero for convex or planar patches Note: F ii is zero for convex or planar patches Note: sum of form factors in any row = 1 (Why?) Note: sum of form factors in any row = 1 (Why?) Note: nequations, n unknowns! Note: n equations, n unknowns!

DPL11/27/2015 Radiosity Now “just” need to solve the matrix! Now “just” need to solve the matrix! –W&W: matrix is “diagonally dominant” –Thus Guass-Siedel must converge End result: radiosities for all patches End result: radiosities for all patches Solve RGB radiosities separately, color each patch, and render! Solve RGB radiosities separately, color each patch, and render! Caveat: actually, color vertices, not patches (see F&vD p 795) Caveat: actually, color vertices, not patches (see F&vD p 795)

DPL11/27/2015 Radiosity Q: How many form factors must be computed? Q: How many form factors must be computed? A: O(n 2 ) A: O(n 2 ) Q: What primarily limits the accuracy of the solution? Q: What primarily limits the accuracy of the solution? A: The number of patches A: The number of patches

DPL11/27/2015 Radiosity Where we go from here: Where we go from here: –Evaluating form factors –Progressive radiosity: viewing an approximate solution early –Hierarchical radiosity: increasing patch resolution on an as-needed basis