slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Ray Tracing II: Radiosity PowerPoint Presentation
Download Presentation
Ray Tracing II: Radiosity

Loading in 2 Seconds...

play fullscreen
1 / 31

Ray Tracing II: Radiosity - PowerPoint PPT Presentation


  • 163 Views
  • Uploaded on

Ray Tracing II: Radiosity. Mohan Sridharan Based on slides created by Edward Angel. Introduction. Ray tracing is best with many highly specular surfaces: Not characteristic of real scenes. Rendering equation describes general shading problem.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

Ray Tracing II: Radiosity


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
    Presentation Transcript
    1. Ray Tracing II: Radiosity Mohan Sridharan Based on slides created by Edward Angel CS4395: Computer Graphics

    2. Introduction • Ray tracing is best with many highly specular surfaces: • Not characteristic of real scenes. • Rendering equation describes general shading problem. • Radiosity solves rendering equation for perfectly diffuse surfaces. CS4395: Computer Graphics

    3. Terminology • Energy ~ light (incident, transmitted). • Must be conserved. • Energy flux = luminous flux = power = energy/time. • Measured in lumens. • Depends on wavelength so we can integrate over spectrum using luminous efficiency curve of sensor. • Energy density (Φ) = energy flux/unit area. CS4395: Computer Graphics

    4. Terminology • Intensity ~ brightness. • Brightness is perceptual. • Brightness = flux/area-solid angle = power/unit projected area per solid angle • Measured in candela. Φ = ∫ ∫ I dA dω CS4395: Computer Graphics

    5. Rendering Equation (James Kajiya) • Consider a point on a surface: N Iin(Φin) Iout(Φout) CS4395: Computer Graphics

    6. Rendering Equation • Outgoing light is from two sources: • Emission. • Reflection of incoming light. • Must integrate over all incoming light: • Integrate over hemisphere. • Must account for foreshortening of incoming light. CS4395: Computer Graphics

    7. Rendering Equation Iout(Φout) = E(Φout) + ∫ 2πRbd(Φout, Φin )Iin(Φin) cos θ dω emission angle between normal and Φin bidirectional reflection coefficient Note that angle is really two angles in 3D and wavelength is fixed CS4395: Computer Graphics

    8. Rendering Equation • Rendering equation is an energy balance: • Energy in = energy out. • Integrate over hemisphere. Fredholm integral equation: • Cannot be solved analytically in general. • Various approximations of Rbd give standard rendering models. • Should also add an occlusion term to account for other objects blocking light from reaching surface. CS4395: Computer Graphics

    9. Another version • Consider light at a point p arriving from p’: emission from p’ to p occlusion = 0 or 1/d2 light reflected at p’ from all points p’’ towards p CS4395: Computer Graphics

    10. Radiosity • Consider objects to be broken up into flat patches that may correspond to the polygons in the model. • Assume that patches are perfectly diffuse reflectors. • Radiosity = flux = energy/unit area/unit time leaving a patch. CS4395: Computer Graphics

    11. Notation • N patches numbered 1 to n. • Radiosity of patch i = bi • Area of patch i = ai • Total intensity leaving patch i = bi ai • Emitted intensity from patch i = ei ai • Reflectivity of patch i = ρi • Form factor = fij = fraction of energy leaving patch j that reaches patch i. CS4395: Computer Graphics

    12. Radiosity Equation • Energy balance: • Reciprocity: • Radiosity Equation: CS4395: Computer Graphics

    13. Matrix Form b = [bi] e = [ei] R = [rij] rij = ρiif i ≠ j rii = 0 F = [fij] CS4395: Computer Graphics

    14. Matrix Form b = e - RFb Formal solution: b = [I-RF]-1e Not useful since n is usually very large. Alternative: use observation that F is sparse. We will consider determination of form factors later. CS4395: Computer Graphics

    15. Solving the Radiosity Equation For sparse matrices, iterative methods usually require only O(n) operations per iteration. Jacobi’s method: bk+1 = e - RFbk Gauss-Seidel: use immediate updates (Section 13.5.2) CS4395: Computer Graphics

    16. Series Approximation 1/(1-x) = 1 + x + x2+ …… [I-RF]-1 = I + RF +(RF)2+… b = [I-RF]-1e = e + RFe + (RF)2e +… CS4395: Computer Graphics

    17. Rendered Image CS4395: Computer Graphics

    18. Patches CS4395: Computer Graphics

    19. Computing Form Factors • Consider two flat patches: CS4395: Computer Graphics

    20. Using Differential Patches foreshortening CS4395: Computer Graphics

    21. Form Factor Integral fij = (1/ai) ∫ai ∫ai (oij cos θi cos θj / πr2 )dai daj occlusion foreshortening of patch j foreshortening of patch i CS4395: Computer Graphics

    22. Solving the Intergral • There are very few cases where the integral has a (simple) closed form solution: • Occlusion further complicates solution. • Alternative is to use numerical methods. • Two step process similar to texture mapping: • Hemisphere. • Hemicube. CS4395: Computer Graphics

    23. Form Factor Examples 1 CS4395: Computer Graphics

    24. Form Factor Examples 2 CS4395: Computer Graphics

    25. Form Factor Examples 3 CS4395: Computer Graphics

    26. Hemisphere • Use illuminating hemisphere. • Center hemisphere on patch with normal pointing up. • Must shift hemisphere for each point on patch. CS4395: Computer Graphics

    27. Hemisphere CS4395: Computer Graphics

    28. Hemicube • Easier to use a hemicube instead of a hemisphere. • Rule each side into “pixels”. • Easier to project on pixels that give delta form factors that can be added up to give desired form factor. • To get a delta form factor we need only cast a ray through each pixel. CS4395: Computer Graphics

    29. Hemicube CS4395: Computer Graphics

    30. Instant Radiosity • Want to use graphics system if possible. • Suppose we make one patch emissive. • The light from this patch is distributed among the other patches. • Shade of other patches ~ form factors. • Must use multiple OpenGL point sources to approximate a uniformly emissive patch. CS4395: Computer Graphics

    31. Coming up next… • Parallel rendering. • Ray-tracing assignment: elaborate but the last one!  • Curves and surfaces: after Thanksgiving… CS4395: Computer Graphics