250 likes | 256 Views
Learn various methods and techniques for computing form factors in Radiosity. Explore closed-form solutions, numerical approximations, and the use of hemicubes for accurate form factor calculations. Discover the benefits and challenges of Monte Carlo methods and area sampling. References included.
E N D
Radiosity Part IIForm Factors COMP238
Goal • Learn ways of computing form factors.
Recall • The Fij are the form factors • Form factors independent of radiosities
Form Factor Expanding, we get where Vij is the visibility
Alternative • Area/Hemisphere integral
Closed form • Only feasible for simple cases • Visibility is hard • Polygon-to-polygon solution by Schroeder and Hanrahan
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…
Area on Base Also, is area of unit circle, so division is appropriate, resulting in
Hemicube • Approximation of Nusselt’s analog
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.
Compute Delta Form Factors • Store in table. • Note the symmetry
Specifically • Scan convert all primitives onto 5 faces • Z buffer as usual • Keep an item buffer
Other Problems • Sampling is not even • Must render complete dataset • Should cull • Could you use levels of detail?
Monte Carlo • Sample by casting rays to estimate Nusselt’s analog. • Distribute the rays to get a good sampling of the sphere
Area Sampling • Subdivide the primitive j into small pieces and cast a ray to the center of each area to determine visibility
Summary • Many ways to find form factors • Hemicube most common • Hardware acceleration • Monte Carlo methods also used
Next • How do we solve the matrix? • Shooting • Progressive Radiosity • Meshing
References • Cohen and Wallace, Radiosity and Realistic Image Synthesis, Chapter 4.