16.1 si31_01 SI31 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued.

Slides:



Advertisements
Similar presentations
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 17 Radiosity - Conclusion Non-PhotoRealistic Rendering.
Advertisements

1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
GR2 Advanced Computer Graphics AGR
SI23 Introduction to Computer Graphics
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued.
7.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 7 Polygon Shading Techniques.
9.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
SI31 Advanced Computer Graphics AGR
8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.
Computer graphics & visualization Global Illumination Effects.
Lecture 14 Illumination II – Global Models
Week 10 - Monday.  What did we talk about last time?  Global illumination  Shadows  Projection shadows  Soft shadows.
Radiosity Mel Slater Department of Computer Science University College London
Computer Graphics Inf4/MSc Computer Graphics Lecture 13 Illumination I – Local Models.
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.
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
Global Illumination: Radiosity
17.1 Si31_2001 SI31 Advanced Computer Graphics AGR Lecture 17 Radiosity - Conclusion Non-PhotoRealistic Rendering.
Radiosity A Fascinating Presentation by Alex Danilevky.
1 7M836 Animation & Rendering Global illumination, radiosity Arjan Kok
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
The Radiosity Method Donald Fong February 10, 2004.
CSCE 641 Computer Graphics: Radiosity Jinxiang Chai.
CSCE 441 Computer Graphics: Radiosity 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.
Global Illumination. Direct Illumination vs. Global Illumination reflected, scattered and focused light (not discreet). physical-based light transport.
CS 445 / 645 Introduction to Computer Graphics Lecture 18 Shading Shading.
COMPUTER GRAPHICS CS 482 – FALL 2014 AUGUST 27, 2014 FIXED-FUNCTION 3D GRAPHICS MESH SPECIFICATION LIGHTING SPECIFICATION REFLECTION SHADING HIERARCHICAL.
Radiosity 김 성 남. Contents Definition/Goal Basic Radiosity Method Progressive Radiosity Method Mesh substructuring Hierarchical Radiosity Ray.
-Global Illumination Techniques
01/29/03© 2003 University of Wisconsin Last Time Radiosity.
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.
CS447/ Realistic Rendering -- Radiosity Methods-- Introduction to 2D and 3D Computer Graphics.
02/18/05© 2005 University of Wisconsin Last Time Radiosity –Converting the LTE into the radiosity equation –Solving with Gauss-Seidel relaxation –Form.
Volume radiosity Michal Roušal University of West Bohemia, Plzeň Czech republic.
Photo-realistic Rendering and Global Illumination in Computer Graphics Spring 2012 Stochastic Radiosity K. H. Ko School of Mechatronics Gwangju Institute.
Graphics Lecture 13: Slide 1 Interactive Computer Graphics Lecture 13: Radiosity - Principles.
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.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
Global Illumination. Local Illumination  the GPU pipeline is designed for local illumination  only the surface data at the visible point is needed to.
1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.
Radiosity 1. 2 Introduction Ray tracing best with many highly specular surfaces ­Not real scenes Rendering equation describes general shading problem.
Local Illumination and Shading
Illumination and Shading Prof. Lizhuang Ma Shanghai Jiao Tong University.
Where We Stand So far we know how to: –Transform between spaces –Rasterize –Decide what’s in front Next –Deciding its intensity and color.
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,
Radiosity for an environment in which all the surfaces are perfectly diffuse reflectors.
Graphics Lecture 14: Slide 1 Interactive Computer Graphics Lecture 14: Radiosity - Computational Issues.
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.
Jim X. Chen George Mason University
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Radiosity.
Computer Graphics (Spring 2003)
CSCE 441 Computer Graphics: Radiosity
© 2003 University of Wisconsin
Problems with Gauss-Seidel
CSc4820/6820 Computer Graphics Algorithms Ying Zhu Georgia State University Lecture 25 Radiosity.
Illumination and Shading
OPTICS III, IV: Global Illumination
Advanced Computer Graphics: Radiosity
Presentation transcript:

16.1 si31_01 SI31 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued

16.2 si31_01 Calculating Form Factors n The calculation of: is difficult n In practice a hemicube is formed about the centre of the patch - projection on to flat planes is much easier F di-j =  (cos  i cos  j ) /(  r 2 ) dA j

16.3 si31_01 Hemicube Continuing our 2D cross section view: AiAi NiNi but imagine this in 3D as a hemicube centred on the centre of A i

16.4 si31_01 Hemicube - Pixels Divide the faces of the hemicube into small ‘pixels’ - say 50x50 on top face AiAi NiNi

16.5 si31_01 Hemicube - Project patch j AiAi NiNi AjAj Project A j onto the hemicube, noting pixels which are covered. For these pixels, record patch (A j ) and its depth. If two patches project to same pixel, only record nearest since others are invisible to A i - this is the same idea as z-buffering.

16.6 si31_01 Hemicube - Form Factors AiAi NiNi AjAj We compute mini form factors for each pixel - say, F q, for pixel q. These can be pre-computed and stored in a look up table Then we get F i-j as: F i-j =  F q where the summation is over all pixels q covered by the projection. See Watt or Foley, van Dam for how to calculate the mini form factors

16.7 si31_01 Radiosity - Summary n The basic radiosity method is: 1) decompose the scene into patches A i 2) compute the form factors F i-j using hemicubes 3) solve the radiosity system of equations to get B i for each patch i (for R,G,B) 4) render by feeding the B i values into a Gouraud interpolation renderer n Note: – 1) and 2) depend only on geometry – 3) depends on 1) and 2) plus reflection and emission values – 4) depends on 1),2),3) and view

16.8 si31_01 Radiosity - Further Examples Cornell group radiosity image, using progressive refinement approach 30,000 patches

16.9 si31_01 Radiosity - Further Examples Scene from the opera ‘La Boheme’ by the Cornell group.

16.10 si31_01 Radiosity - Analysis n Radiosity algorithm is expensive in computation and storage n For accuracy we need to decompose into many small patches (typically N>1000) n But this means N 2 form factors that need to be computed and stored

16.11 si31_01 Progressive Refinement n Aim is to generate sequence of improving images n Basic algorithm works against this: – large initial start up in generating ALL the form factors (which need to be stored) – during one iteration of Gauss-Seidel, we generate B 1, B 2, etc so it takes a long time before we calculate B N - even if B N is significant, say a light source

16.12 si31_01 Revisit the Basic Algorithm n Basic equation for B i : – B i = E i + R i  B j F i-j for each patch A i – each term of summation is patch j effect on patch i, ie – B i due to B j = R i B j F i-j gathers this gathers radiosity from all the other patches shoot n Different approach is to shoot radiosity from one patch to all other patches

16.13 si31_01 Shoot rather than Gather n So now: – B j due to B i = R j B i F j-i for all j – this shoots B i radiosity to each of the other patches in turn n But: different – F j-i for each j requires different hemicube calculation n So: – using reciprocity relationship (F j-i A j = F i-j A i ) – B j due to B i = R j B i F j-i = R j B i F i-j A i /A j for all j same – which uses same hemicube

16.14 si31_01 Progressive Refinement Algorithm n Algorithm works as follows: – Set initial radiosities B i and increments  B i to E i – For each patch i do build hemicube, calculate form factors F i-j for each patch j do  Radiosity = R j  B i F i-j A i / A j  B j =  B j +  Radiosity B j = B j +  Radiosity  B i = 0 – Repeat until convergence

16.15 si31_01 Radiosity - Further Examples Museum drawn using radiosity by progressive refinement.

16.16 si31_01 Progressive Refinement Algorithm - Optimization n Initially the scene will be dark apart from light sources, then gets steadily lighter n For best effect: – start off with simple ambient illumination – at each stage, select patch i for shooting that has highest  B i A i ie greatest unshot radiosity – gradually decrease the ambient term

16.17 si31_01 Issues in Radiosity n Artefacts in radiosity images occur due to: – approximations in hemicube method – using linear interpolation to reconstruct radiosity function across a patch – using a mesh structure which does not take into account variations in radiosity function

16.18 si31_01 Hemicube Approximations n Hemicube is divided into uniform set of pixels of finite size n … and it is assumed that each patch projects onto ‘whole’ pixels - which is unlikely to be the case n An example of an aliasing effect - cf jagged lines in line drawing in 2D graphics

16.19 si31_01 Interpolation of Radiosity Function n Situation analogous to Gouraud shading… n … reflectance calculation assumes radiosity constant over patch n … radiosity at vertices found by averaging n … internal radiosity within patch found by linear interpolations n … causing Mach banding due to discontinuities of radiosity gradient