1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Visible-Surface Detection(identification)
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
Addition Facts
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 17 Radiosity - Conclusion Non-PhotoRealistic Rendering.
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 9 Adding Realism Through Texture.
1GR2-00 GR2 Advanced Computer Graphics AGR Ken Brodlie Lecture 1 - Overview.
5.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 5 – Drawing A Line.
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 18 Image-based Rendering Final Review of Rendering What We Did Not Cover Learning More...
GR2 Advanced Computer Graphics AGR
GR2 Advanced Computer Graphics AGR
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 6 Physically Based Reflection Model.
15.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 15 – Visible Surfaces and Shadows.
GR2 Advanced Computer Graphics AGR
SI23 Introduction to Computer Graphics
GR2 Advanced Computer Graphics AGR
16.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 16 – Some Special Rendering Effects.
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.
13.1 si31_2001 SI31 Advanced Computer Graphics AGR Lecture 13 An Introduction to Ray Tracing.
Computer Graphics An Introduction. What’s this course all about? 05/10/2014 Lecture 1 2 We will cover… Graphics programming and algorithms Graphics data.
1 05/10/2014 Computer Graphics Lecture 10 Global Illumination 1: Ray Tracing and Radiosity Taku Komura.
Computer Graphics- SCC 342
Addition 1’s to 20.
Week 1.
Technische Universität München Computer Graphics SS 2014 Graphics Effects Rüdiger Westermann Lehrstuhl für Computer Graphik und Visualisierung.
Computer graphics & visualization Global Illumination Effects.
Radiosity Mel Slater Department of Computer Science University College London
 Engineering Graphics & Introductory Design 3D Graphics and Rendering REU Modeling Course – June 13 th 2014.
17.1 Si31_2001 SI31 Advanced Computer Graphics AGR Lecture 17 Radiosity - Conclusion Non-PhotoRealistic Rendering.
Radiosity A Fascinating Presentation by Alex Danilevky.
16.1 si31_01 SI31 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued.
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.
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.
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.
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.
Graphics Lecture 13: Slide 1 Interactive Computer Graphics Lecture 13: Radiosity - Principles.
111/17/ :21 Graphics II Global Rendering and Radiosity Session 9.
Radiosity Jian Huang, CS594, Fall 2002 This set of slides reference the text book and slides used at Ohio State.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Graphics Graphics Korea University cgvr.korea.ac.kr 1 Surface Rendering Methods 고려대학교 컴퓨터 그래픽스 연구실.
1 Chapter 5: Sources, Shadows, Shading Light source: Anything emits light that is internally generated Exitance: The internally generated power per unit.
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,
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.
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:

1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 16 Radiosity - continued

2GR2-00 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

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

4GR2-00 Hemicube - Pixels Divide the faces of the hemicube into small pixels - say 50x50 on top face AiAi NiNi

5GR2-00 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.

6GR2-00 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

7GR2-00 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

8GR2-00 Radiosity - Further Examples Cornell group radiosity image, using progressive refinement approach 30,000 patches

9GR2-00 Radiosity - Further Examples Scene from the opera La Boheme by the Cornell group.

10GR2-00 Radiosity - Further Examples Museum drawn using radiosity by progressive refinement.

11GR2-00 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

12GR2-00 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

13GR2-00 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

14GR2-00 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

15GR2-00 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 i = 0 – Repeat until convergence

16GR2-00 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.

17GR2-00 Efficient Radiosity n Use shooting method to solve the radiosity equation, where increments are made to patches j from patch i n Choose patch i at each stage to achieve most effect n Add a (decreasing) ambient term in the early stages

18GR2-00 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

19GR2-00 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

20GR2-00 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