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
// ############################################################################
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
// ############################################################################
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