Radiosity Part I Mathematical Foundations - PowerPoint PPT Presentation

1 / 63
About This Presentation
Title:

Radiosity Part I Mathematical Foundations

Description:

These are based on the geometric relationships between elements, called the form ... Constant most common. Lischinski used quadratic. 11 ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 64
Provided by: anselmo9
Category:

less

Transcript and Presenter's Notes

Title: Radiosity Part I Mathematical Foundations


1
Radiosity Part IMathematical Foundations
  • COMP238

2
Goal
  • To obtain a mathematical basis for radiosity.
  • Next, the practical details.
  • Computing form factors
  • Solving the matrix
  • Meshing

3
Radiosity Equation
  • From last time
  • where

4
Where are we?
  • We have an expression relating radiosity at a
    patch to radiosity at ALL other patches
  • But no method to solve for the values

5
Radiosity Method
  • Subdivide the model into elements.
  • Select locations (nodes) on elements at which to
    solve for radiosity.
  • Select basis functions to approximate radiosity
    across the element, based on values at nodes.
    Most common is to assume constant value of
    radiosity across the element, so a single node is
    placed in the middle.
  • Select finite error metric. This will result in a
    set of linear equations.

6
Radiosity Method (cont.)
  • Compute coefficients of linear system. These are
    based on the geometric relationships between
    elements, called the form factors.
  • Solve the system of linear equations.
  • Reconstruct the radiosity function (often just
    assign radiosity values to vertices).
  • Render often Gouraud interpolation of radiosity
    values at vertices.

7
Basis Functions
  • Approximate radiosity using finite set of basis
    functions and radiosities at the nodes.
  • Choose functions with support only within
    element.
  • Most common basis function is constant across
    element.

8
Example in 1D
9
2D Example
10
Nodes
  • Constant most common
  • Lischinski used quadratic

11
Nodes not for Display!
  • Nodes used for solution not necessarily where
    color stored for display.
  • Usually node values interpolated to per-vertex
    color.
  • We used quadratic interpolation.

12
Error
  • Would like to minimize error
  • But we dont know the solution!

13
Residual
  • Can express error as a residual
  • that we want to minimize.
  • Note that and r are defined over all
    space but the is computed using a finite
    number of points ( ).

14
Reducing Residual
  • Cant in general make residual zero
  • Basis functions cant match real
  • Lower dimensionality of residual computation
  • Can use similar method to basis functions

15
Weighting Residual
  • Weight the residual with function that has only
    local support
  • where

16
Point Collocation
  • Simplest way to deal with residuals. Measure only
    at the nodes.
  • Note that this is defined only at the nodes.

17
Galerkin Formulation
  • Instead of measuring residual only at nodes,
  • measure over element.
  • Specifically, Galerkin method uses same basis
    function for measuring residual as for computing
    node radiosity

18
Residual
  • Substituting basis function

19
Expanding and Grouping
  • We get something of form with

20
Constant Basis Function
  • Suppose we use constant basis
  • Look at each of the terms

21
  • Basis function has value 1 within the element,
    and 0 elsewhere
  • So this integral is only valid when ij, and is
    then the area of the element

22
  • Integral only valid over elements i and j
  • Assume reflectivity constant over element

23
  • Emissivity assumed constant over element,
    therefore

24
Now we have
  • Dividing by Ai and putting into form KBE
  • or

25
Form Factor
  • Express as
  • where
  • Fij is known as the Form Factor.

26
Rearranging
  • gives the more familiar form

27
Intuitive Interpretation
  • Add area term
  • Use reciprocity of form factors
  • to get
  • which can be interpreted as

28
Total power leaving an element i
29
Total power leaving an element i
Is sum of emitted light
30
Total power leaving an element i
and reflected light
is sum of emitted light
31
Total power leaving an element i
and reflected light
is sum of emitted light
Reflected light depends on contribution from
every other element
32
Total power leaving an element i
and reflected light.
weighted by geometric relationship, area, and
reflectivities.
is sum of emitted light
Reflected light depends on contribution from
every other element
33
What do we have?
  • A mathematical basis for radiosity.
  • We have a matrix equation of the form
  • to solve.

Note diagonal
34
Next
  • How do we compute form factors?
  • Hemicube method
  • How do we solve the matrix?
  • Shooting
  • Progressive Radiosity

35
Form Factor
  • Expanding, we get
  • where Vij is the visibility

36
Alternative
  • Area/Hemisphere integral

37
Computing the Form Factor
38
Computing the Form Factor
39
Closed form
  • Only feasible for simple cases
  • Visibility is hard
  • Polygon-to-polygon solution by Schroeder and
    Hanrahan

40
Numerical approximation
41
Nusselt Analog
42
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
43
Solid Angle
44
Area on Base
Also, ? is area of unit circle, so division is
appropriate, resulting in
45
Hemicube
  • Also obeys Nusselts analog

46
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.

47
Compute Delta Form Factors
  • Store in table.
  • Note the symmetry

48
Specifically
  • Scan convert all primitives onto 5 faces
  • Z buffer as usual
  • Keep an item buffer

49
Aliasing
50
Other Problems
  • Sampling is not even
  • Must render complete dataset
  • Should cull
  • Could you use levels of detail?

51
Monte Carlo
  • Sample by casting rays to estimate Nusselts
    analog.
  • Distribute the rays to get a good sampling of the
    sphere

52
Area
53
Area Sampling
  • Subdivide the primitive j into small pieces and
    cast a ray to the center of each area to
    determine visibility

54
Summary
  • Many ways to find form factors
  • Hemicube most common
  • Hardware acceleration
  • Monte Carlo methods also used

55
Next
  • How do we solve the matrix?
  • Shooting
  • Progressive Radiosity
  • Meshing

56
References
  • Cohen and Wallace, Radiosity and Realistic Image
    Synthesis, Chapters 3-4.

57
(No Transcript)
58
Unused Slides
59
Point Collocation
60
Expanding
  • Expanding
  • Grouping (note Bj independent of x)

61
Matrix Form
  • is in form
  • or where

62
Whats the Significance?
  • We are computing the radiosities only at the
    nodes.
  • However, depending on basis function we may have
    to consider values over element.

Nj may be dependent on values over element j
63
Constant Basis Function
  • is the Kronecker delta function, 1
    if i j, 0 otherwise.
  • Now
  • where
Write a Comment
User Comments (0)
About PowerShow.com