Module raytracer

Class RadiosityAlgorithm

java.lang.Object
de.grogra.ray2.radiosity.RadiosityAlgorithm

public class RadiosityAlgorithm extends Object
This is the main radiosity calculation class.
Author:
Ralf Kopsch
  • Constructor Details

    • RadiosityAlgorithm

      public RadiosityAlgorithm(PixelwiseRenderer renderer)
      Constructor.
      Parameters:
      renderer - the PixelwiseRenderer.
  • Method Details

    • calculateScene

      public void calculateScene(Vector<PatchGroup> globalGroupList, float subDivThresh, int maxSubDivDepth, int threadCount)
      Calculates the scene.
      Parameters:
      globalGroupList - the list of patch groups.
      subDivThresh - the subdivision threshold.
      maxSubDivDepth - the recursion depth.
      threadCount - the thread count.
    • getComponent

      public float getComponent(Tuple3f t, int pos)
      Returns the value with the index i.
      Parameters:
      pos - The index
      Returns:
      Returns the value with the index i.
    • setComponent

      public void setComponent(Tuple3f t, int pos, float newVal)
      Sets the value with the index i to a new Value.
      Parameters:
      pos - The index.
      newVal - The new value to set.
    • getSteps

      public int getSteps()
      Returns the current calculation step.
      Returns:
      Returns the current calculation step.