Radiosity Part II Form Factors COMP238 Anselmo Lastra, October 2000
Goal Learn ways of computing form factors. Anselmo Lastra, October 2000
Recall The Fij are the form factors Form factors independent of radiosities Anselmo Lastra, October 2000
Form Factor Expanding, we get where Vij is the visibility Anselmo Lastra, October 2000
Alternative Area/Hemisphere integral Anselmo Lastra, October 2000
Computing the Form Factor Anselmo Lastra, October 2000
Computing the Form Factor Anselmo Lastra, October 2000
Closed form Only feasible for simple cases Visibility is hard Polygon-to-polygon solution by Schroeder and Hanrahan Anselmo Lastra, October 2000
Numerical approximation Anselmo Lastra, October 2000
Nusselt Analog Anselmo Lastra, October 2000
Why? Imagine a unit hemisphere centered around patch (or node) i. Projection onto sphere mechanically computes the term Projection of solid angle due to patch j. next… Anselmo Lastra, October 2000
Solid Angle Anselmo Lastra, October 2000
Area on Base Also, is area of unit circle, so division is appropriate, resulting in Anselmo Lastra, October 2000
Hemicube Approximation of Nusselt’s analog Anselmo Lastra, October 2000
Hemicube For convenience, a cube 1 unit high with a top face 2 x 2 is used. Side faces are 2 wide by 1 high. Decide on a resolution for the cube. Say 512 by 512 for the top. Anselmo Lastra, October 2000
Compute Delta Form Factors Store in table. Note the symmetry Anselmo Lastra, October 2000
Specifically Scan convert all primitives onto 5 faces Z buffer as usual Keep an item buffer Anselmo Lastra, October 2000
Aliasing Anselmo Lastra, October 2000
Other Problems Sampling is not even Must render complete dataset Should cull Could you use levels of detail? Anselmo Lastra, October 2000
Monte Carlo Sample by casting rays to estimate Nusselt’s analog. Distribute the rays to get a good sampling of the sphere Anselmo Lastra, October 2000
Area Anselmo Lastra, October 2000
Area Sampling Subdivide the primitive j into small pieces and cast a ray to the center of each area to determine visibility Anselmo Lastra, October 2000
Summary Many ways to find form factors Hemicube most common Hardware acceleration Monte Carlo methods also used Anselmo Lastra, October 2000
Next How do we solve the matrix? Meshing Shooting Progressive Radiosity Meshing Anselmo Lastra, October 2000
References Cohen and Wallace, Radiosity and Realistic Image Synthesis, Chapter 4. Anselmo Lastra, October 2000