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.

Slides:



Advertisements
Similar presentations
The Radiance Equation.
Advertisements

SI31 Advanced Computer Graphics AGR
1 05/10/2014 Computer Graphics Lecture 10 Global Illumination 1: Ray Tracing and Radiosity Taku Komura.
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
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.
Graphics Graphics Korea University cgvr.korea.ac.kr Illumination Model 고려대학교 컴퓨터 그래픽스 연구실.
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.
CSCE 641: Photon Mapping Jinxiang Chai. Outline Rendering equation Photon mapping.
Rendering theory & practice. Introduction  We’ve looked at modelling, surfacing and animating.  The final stage is rendering.  This can be the most.
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.
1 7M836 Animation & Rendering Global illumination, ray tracing Arjan Kok
Computer Graphics (Fall 2004) COMS 4160, Lecture 16: Illumination and Shading 2 Lecture includes number of slides from.
Foundations of Computer Graphics (Spring 2010) CS 184, Lecture 21: Radiosity
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
CSCE 441 Computer Graphics: Radiosity Jinxiang Chai.
Computer Graphics (Spring 2008) COMS 4160, Lecture 22: Global Illumination
CS 480/680 Computer Graphics Shading I Dr. Frederick C Harris, Jr.
CSC418 Computer Graphics n Raytracing n Shadows n Global Illumination.
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.
Today More raytracing stuff –Soft shadows and anti-aliasing More rendering methods –The text book is good on this –I’ll be using images from the CDROM.
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.
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.
Rendering Overview CSE 3541 Matt Boggus. Rendering Algorithmically generating a 2D image from 3D models Raster 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 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
CPSC 641 Computer Graphics: Radiosity Jinxiang Chai.
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.
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.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Monte-Carlo Ray Tracing and
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.
Slide 1Lastra, 2/14/2016 Monte-Carlo Methods. Slide 2Lastra, 2/14/2016 Topics Kajiya’s paper –Showed that existing rendering methods are approximations.
CS 445 / 645 Introduction to Computer Graphics Lecture 16 Radiosity Radiosity.
1. Ray Casting Surface intersection Visible surface detection Ray Tracing Bounce the ray Collecting intensity Technique for global reflection and transmission.
Global Illumination (3) Path Tracing. Overview Light Transport Notation Path Tracing Photon Mapping.
CS552: Computer Graphics Lecture 33: Illumination and Shading.
11/29/01CS 559, Fall 2001 Today Photorealistic rendering Algorithms for producing high-quality images Ways of deciding which algorithm for use.
CS 376 Introduction to Computer Graphics 04 / 18 / 2007 Instructor: Michael Eckmann.
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
Global Illumination: Radiosity, Photon Mapping & Path Tracing
(c) 2002 University of Wisconsin
CSCE 441 Computer Graphics: Radiosity
(c) 2002 University of Wisconsin
Foundations of Computer Graphics (Spring 2012)
Advanced Computer Graphics: Radiosity
Presentation transcript:

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 College, and University College London

2 Point illumination

3 Ray Tracing

4 Diffuse Reflection & Color Bleeding

5 Radiosity ● All surfaces are assumed perfectly diffuse ■ What does that mean about property of lighting in scene? ○ Light is reflected equally in all directions ○ Same lighting independent of viewing angle / location ● Diffuse-diffuse surface lighting effects possible

6 Radiosity ● Basic Idea ■ We can accurately model diffuse reflections from a surface by considering the radiant energy transfers between surfaces, subject to conservation of energy laws. ■ This method for describing diffuse reflections is generally referred to as the ra diosity model.

7 Which one is Better RaytracedRadiosity Herik Wann Jensen

8 Radiosity: Cornell Experiment MeasuredSimulated Program of Computer Graphics Cornell University

9 Radiosity: Cornell Experiment MeasuredSimulated Difference

10 Early Radiosity Shenchang Eric Chang et al., Cornell 1988

11 Types of Surface Reflectance Specular-specular (ray tracing) Diffuse-diffuse (radiosity) Specular-diffuse (Monte Carlo) Diffuse-specular (Monte Carlo)

12 Rendering ● Radiosity is a view-independent solution. ● Could flat shade each patch with colour depending on radiosity at the center (bad solution!) ● Instead obtain radiosities at the vertices of the polygons ■ use Gouraud smooth shading (interpolation) ■ Available very cheaply on graphics hardware.

13 Ray Tracing vs. Radiosity ● Both achieve global illumination ● Ray tracing ■ Follow rays of energy as they bounce through a scene ○ Which rays? Pick some. Randomness helps. Monte Carlo. Still a research topic. ○ How many rays? Depends on the scene. Still a topic of research debate. ● Radiosity ■ Compute energy transfer between finite-sized patches of surfaces in the scene ○ Which patches? Must subdivide the scene somehow ○ How does energy transfer Approximating models between patches? Still an area of research

14 Ray Tracing vs. Radiosity ● Radiosity captures the sum of light transfer well ■ But it models all surfaces as diffuse reflectors ■ Can’t model specular reflections or refraction ○ Images are viewpoint independent ● Ray tracing captures the complex behavior of light rays as they reflect and refract ■ Works best with specular surfaces. ○ Diffuse surface converts light ray into many. Ray tracing follows one ray and does not capture the full effect of the diffusion. ○ Must use ambient term to replace absent diffusion

15 Radiosity Measure ● It is the name of a measure of light energy... ●...and an algorithm: ■ Radiant energy (flux) = energy flow per unit time across a surface (watts) ■ Radiosity = flux per unit area (a derivative of flux with respect to area) radiated from a surface. ■ These are wavelength-dependent quantities.

16 Radiosity Equation ● A model for the light reflections from the various surfaces is formed by setting up an "enclosure" of surfaces. ● Each surface in the enclosure is either ■ a reflector, ■ an emitter (light source), ■ or a combination reflector-emitter. ● We want to calculate radiosity parameter B i, the total rate of energy leaving surface i per unit area.

17 Radiosity Equation ● B i = total rate of radiant energy leaving surface i per unit area ● H i = sum of the radiant energy contributions from all surfaces in the rendered volume arriving at surface i per unit time per unit area ● F ji = the form factor for surfaces j and i = the fractional amount of radiant energy from surface j that reaches surface i.

18 Radiosity Equation

19 Radiosity Equation ● For a scene with n surfaces ■ The radiosity equation for surface i ● E i = rate of energy emitted by surface i per unit area (watts/m 2 ) ● E i = 0 if surface i is not a light

20 Radiosity Equation ●  i is the reflectivity factor for surface i (percent of incident light that is reflected in all directions) ■ Related to the diffused reflection coefficient used in emperical diffuse illumination models ● What is the self-form-factor (self-incidence) F ii for plane and convex surfaces? ■ F ii Is zero because convex surfaces and planes cannot see themselves ● The radiosity equation indicates that surface affects other surfaces and even itself ● How will we compute B i for all surfaces in the scene?

21 Radiosity Equation ● To obtain the illumination effects over the various surfaces in the enclosure we need to solve the simultaneous radiosity equations for the n surfaces given the array values for E i,  i, and F ji

22 The Radiosity Equation where and

23 Radiosity Equation In matrix form The Bi are unknown and assume all else is known (Form Factor is not) Then can be rewritten as system of n linear equations in n unknowns. Hence patches can be rendered ideally with smooth shading. One set of eqns for each wavelength!

24 The Form Factors ● Need to determine form factors to solve the radiosity equation ● Remember F ij = energy transfer from surface i to j = percent of energy emanating from i that is incident on j This is a good image from Foley et al. Note  in the image corresponds to  in our Hearn and Baker.

25 Form Factors ● Consider the differential units ■ For some small area of surface j and some small area of i ■ We want to calculate the rate of radiant energy falling on a small surface dA j from a small area dA i ● See the derivation of the equation in the book ● We can calculate the integration using numerical methods

26 Final Radiosity Algorithm 1. Divide each surface into small polygons ■ The smaller the polygons, the more realistic the scene 2. Calculate form factors 3. Calculate Radiosity B i for each small polygon by solving simultaneous linear equations 4. Display the radiosity values ● Produces very realistic images ● Radiosity is expensive to compute ■ Get your PhD by improving it ● Specular reflection information is not modeled

27 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

28 Bidirectional Ray Tracing L A B C E* * * - these transports would be missed by conventional RT.

29 Bidirectional Ray Tracing Forward ray tracing – source to surfaces, illuminates surfaces. Backward (conventional) ray tracing – eye to surfaces, sees lit surfaces. Accumulate photon hits for surface intensity – render from eye pt.

30 Bidirectional Ray Tracing ● Computationally expensive. ● Much more accurate model though. ● Real problem is number of photons to trace. ● Can use refinement methods: ■ Trace so many photons, render and check… ■ and so on until rendering acceptable. ● Area sampling techniques can be used.

31 Bidirectional example Single Pass (Conventional RT)Two Pass (Bidirectional) Note : caustic due to red transparent ball

32 Bidirectional example 200 rays used in lighting pass400 rays used in lighting pass

33 Bidirectional example 800 rays used in lighting pass. Note: - improved caustic definition, - lighting effect of mirror, - reflection of caustic, - shadowing due to mirror lighting.

34 Summary of bidirectional RT ● Trace rays from light source to surfaces. ● Gives secondary lighting and caustics that conventional ray tracing misses. ● Accumulate surface hits – may require large number of hits for adequate intensity. ● Code for both ray trace directions can be identical.