CSCE 441 Computer Graphics: Radiosity Jinxiang Chai.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

SI31 Advanced Computer Graphics AGR
Computer graphics & visualization Global Illumination Effects.
Lecture 14 Illumination II – Global Models
Computer Graphics In4/MSc Computer Graphics Lecture Notes #15 Illumination III View Independent Rendering.
Radiosity Mel Slater Department of Computer Science University College London
Virtual Realism LIGHTING AND SHADING. Lighting & Shading Approximate physical reality Ray tracing: Follow light rays through a scene Accurate, but expensive.
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.
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.
Global Illumination: Radiosity
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Radiosity A Fascinating Presentation by Alex Danilevky.
16.1 si31_01 SI31 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued.
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.
7M836 Animation & Rendering
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 641: Computer Graphics Ray Tracing Jinxiang Chai.
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.:
Radiosity 김 성 남. Contents Definition/Goal Basic Radiosity Method Progressive Radiosity Method Mesh substructuring Hierarchical Radiosity Ray.
-Global Illumination Techniques
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.
Global Illumination Models THE WHITTED IMAGE - BASIC RECURSIVE RAY TRACING Copyright © 1997 A. Watt and L. Cooper.
Global Illumination CMSC 435/634. Global Illumination Local Illumination – light – surface – eye – Throw everything else into ambient Global Illumination.
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
Komputer Grafik 2 (AK045206) Radiosity 1/19 Radiosity.
CPSC 641 Computer Graphics: Radiosity Jinxiang Chai.
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.
CSCE 441: Computer Graphics Ray Tracing
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
Computer Graphics (Fall 2003) COMS 4160, Lecture 20: Radiosity Ravi Ramamoorthi
Global Illumination (2) Radiosity (3). Classic Radiosity Algorithm Mesh Surfaces into Elements Compute Form Factors Between Elements Solve Linear System.
Global Illumination (2) Radiosity (2). The Radiosity Equation The "radiosity equation" describes the amount of energy which can be emitted from a surface,
01/27/03© 2002 University of Wisconsin Last Time Radiometry A lot of confusion about Irradiance and BRDFs –Clarrified (I hope) today Radiance.
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)
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.
Advanced Computer Graphics
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Radiosity.
Computer Graphics (Spring 2003)
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
OPTICS III, IV: Global Illumination
Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
Advanced Computer Graphics: Radiosity
Presentation transcript:

CSCE 441 Computer Graphics: Radiosity Jinxiang Chai

Rendering: Illumination Computing Direct (local) illumination Light directly from light sources No shadows Indirect (global) illumination Transparent, reflective surfaces, and hard shadows (Ray tracing) Diffuse interreflections, color bleeding, and soft shadow (radiosity)

Rendering: Illumination Computing Direct (local) illumination Light directly from light sources No shadows Indirect (global) illumination Transparent, reflective surfaces, and hard shadows (Ray tracing) Diffuse interreflections, color bleeding, and soft shadow (radiosity)

Review: Ray Tracing Assumption The illumination of a point is determined by - illumination/shadow ray (direct lighting from light sources)

Review: Ray Tracing Assumption The illumination of a point is determined by - illumination/shadow ray (direct lighting from light sources)

Review: Ray Tracing Assumption The illumination of a point is determined by - illumination/shadow ray (direct lighting from light sources) - reflection ray (light reflected by an object)

Review: Ray Tracing Assumption The illumination of a point is determined by - illumination/shadow ray (direct lighting from light sources) - reflection ray (light reflected by an object) - transparent ray (light passing through an object)

Review: Ray Tracing Assumption The illumination of a point is determined by - illumination/shadow ray (direct lighting from light sources) - reflection ray (light reflected by an object) - transparent ray (light passing through an object)

Ray Tracing Assumption The illumination of a point is determined by - illumination/shadow ray (direct lighting from light sources) - reflection ray (light reflected by an object) - transparent ray (light passing through an object)

Pros and Cons of Ray Tracing Advantages of ray tracing All the advantages of the local illumination model Also handles shadows, reflection, and refraction Disadvantages of ray tracing Computational expense No diffuse inter-reflection between surfaces (i.e., color bleeding) Not physically accurate Radiosity handles these shortcomings for diffuse surfaces!

Radiosity vs. Local Illumination

Radiosity

Physical Image vs. Radiosity Rendering

Radiostiy Definition: The radiant (luminous) exitance is the radiant flux per unit area leaving a surface.

Radiosity The radiosity model computes radiant-energy interactions between all the surfaces in a scene

Radiosity: Key Idea #1

Diffuse Surface

Radiosity: Key Idea #2

Constant Surface Approximation

Radiosity Equation

Radiosity Algorithm

Energy Conservation Equation

The total rate of radiant energy leaving surface i per unit square

Energy Conservation Equation The rate of energy emitted from surface i per unit area - zero if surface i is not a light source

Energy Conservation Equation Reflectivity factor Percent of incident light that is reflected in all directions

Energy Conservation Equation Form factor Fractional amount of radiant energy from surface j that reaches surface i

Compute Form Factors The form factor specifies the fraction of the energy leaving one patch and arriving at the other. In other words, it is an expression of radiant exchange between two surface patches!

Compute Form Factors Radiant energy reaching A y from A x Radiant energy leaving A x in all directions The form factor specifies the fraction of the energy leaving one patch and arrives at the other. In other words, it is an expression of radiant exchange between two surface patches!

Form Factor: Reciprocity

Radiosity Equation Radiosity for each polygon Linear system: - : radiosity of patch I (unknown) - : emission of patch I (known) - : reflectivity of patch I (known) - : form-factor (known)

Linear System A X =B

Radiosity Algorithm

Form Factors for Infinitesimal Surfaces

Form Factors for Subdivided Patches

Form Factor: How to compute? Closed Form - anlytical Hemicube

Form Factor: Analytical

Form Factor: How to compute? Closed Form - anlytical Hemicube

Form Factor: Nusselt Analog Nusselt developed a geometric analog which allows the simple and accurate calculation of the form factor between a surface and a point on a second surface. 3D diagram

Form Factor: Nusselt Analog The form factor is, then, the area projected on the base of the hemisphere divided by the area of the base of the hemisphere, or (A/B) A B 2D diagram

Form Factor: Nusselt Analog

Form Factor: HemiCube

Project path on hemicube Add hemicube cells to compute form factors A B 2D diagram

Delta Form Factor: Top Face Top of hemicube

Delta Form Factors: Side Faces Side of hemicube

The Hemicube in Action

Form Factors: HemiCube

Form Factors

Radiosity Algorithm

How to Solve Linear System? Matrix conversion Iterative approaches - Jacobian (gathering) - Gauss-Seidel (gathering) - progressive refinement (shooting)

Matrix Conversion - Computational cost: O(N 3 ) - Very slow for a large set of polygons

Iterative Approaches

Jacobian Iterations For all patches i, i=1,…,N, While not converged: for all patches i=1,…,N

Jacobian Iterations For all patches i, i=1,…,N, While not converged: for all patches i=1,…,N Update of one patch requires evaluation of N Form Factors What’s the computational cost?

Successive Approximation

Rendering - The final Φ i 's can be used in place of intensities in a standard renderer (Gouraud) - Radiosities are constant over the extent of a patch - A standard renderer requires vertex intensities (or radiosities) - If the radiosities of surrounding patches are know, vertex radiosities can be estimated using bilinear interpolation

Vertex Intensity: Bilinear Interpolation

Consolation Room

Theatre

Steel Mills

Radiosity: Benefit Global illumination method: modeling diffuse inter- reflection 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

Radiosity: Limitation Radiation is uniform in all directions Radiosity is piecewise constant – usual renderings make this assumption, but then interpolate cheaply to fake a nice-looking answer – this introduces quantifiable errors No surface is transparent or translucent Reflectivity is independent of directions to source and destination