Radiosity

Gathering

// ############################################################################
// # Calculates radiosity for recievingPatch by the following formula:
// # Bi = Ei + rho_i * sum_j(Bj * Fij)
// # where: Bi, Bj = Radiosity from patches i, j
// #        Ei = Emission from patch i
// #        rho_i = Reflectivity constant for patch i
// #        Fij = Form factor between patch i and j
// ############################################################################
Gathering, 10 iterationer. Gathering, 50 iterationer.
Gathering, 200 iterationer. Gathering, 1000 iterationer.

Shooting and sorting

// ############################################################################
// # Calculates radiosity for all patches by the following formula:
// # Bj = Bj + rho_j * Bi * Fji
// # where: Bi, Bj = Radiosity from patches i, j
// #        rho_j = Reflectivity constant for patch i
// #        Fji = Form factor between patch j and i
// ############################################################################
Shooting and sorting, 10 iterationer. Shooting and sorting, 50 iterationer.
Shooting and sorting, 200 iterationer. Shooting and sorting, 1000 iterationer.

Modified code

We have implemented the methods in LocalWorld.java.
To use the methods we added the following lines in RadiosityRenderer.java.











By: Robin Stridh and Moses Kullberg 2002