de.grogra.ray2.tracing
Class Radiosity
java.lang.Object
de.grogra.ray2.tracing.ProcessorBase
de.grogra.ray2.tracing.RayProcessorBase
de.grogra.ray2.tracing.Radiosity
- All Implemented Interfaces:
- RayProcessor, java.lang.Cloneable
public class Radiosity
- extends RayProcessorBase
This is a Radiosity Processor.
It divides the scene into triangle patches and calculates the radiosity color for each.
- Author:
- Ralf Kopsch
|
Constructor Summary |
Radiosity()
Creates a new Radiosity Processor. |
| Methods inherited from class de.grogra.ray2.tracing.RayProcessorBase |
dup, getIOR, getLightProcessor, initializeBeforeTracing, initLocals, mergeStatistics, record, record, setLightProcessor, setRecursionDepth, unrecord |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Radiosity
public Radiosity()
- Creates a new Radiosity Processor.
appendStatisticsImpl
protected void appendStatisticsImpl(java.lang.StringBuffer stats)
- Specified by:
appendStatisticsImpl in class ProcessorBase
getColorFromRay
public void getColorFromRay(Line ray,
Spectrum resp,
Color4f color,
java.util.Random random)
- Description copied from interface:
RayProcessor
- The main method of a ray processor. This method computes
a
color for the specified ray.
color.w contains
the alpha value for the ray, the other components are
premultiplied with this alpha value.
- Specified by:
getColorFromRay in interface RayProcessor- Overrides:
getColorFromRay in class RayProcessorBase
- Parameters:
ray - input - calculate for this rayresp - responsivity of cameracolor - output - the calculated colorrandom - pseudorandom generator
initialize
public void initialize(PixelwiseRenderer renderer,
Scene scene)
- Description copied from interface:
RayProcessor
- With this method the processor is initialized with the scene
and other information of a
PixelwiseRenderer.
- Specified by:
initialize in interface RayProcessor- Overrides:
initialize in class RayProcessorBase
- Parameters:
renderer - the renderer which provides the needed informationscene - the scene which is rendered