java.lang.Object
de.grogra.ray2.tracing.ProcessorBase
de.grogra.ray2.tracing.RayProcessorBase
de.grogra.ray2.tracing.PathTracer
de.grogra.ray2.tracing.BiDirectionalProcessor
- All Implemented Interfaces:
RayProcessor,Cloneable
- Direct Known Subclasses:
MetropolisProcessor
- Author:
- Hagen Steidelmüller
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.ray2.tracing.RayProcessorBase
RayProcessorBase.Locals -
Field Summary
FieldsModifier and TypeFieldDescriptionintintintstatic final Stringstatic final Stringbooleanstatic final StringFields inherited from class de.grogra.ray2.tracing.PathTracer
BRIGHTNESSFields inherited from class de.grogra.ray2.tracing.RayProcessorBase
enteredSolids, RECURSION_DEPTH, renderer, scene -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendStatisticsImpl(StringBuffer stats) voidchooseBestPathCombination(int s, int t, int lightId, Tuple3d combWeight) Returns a clone of thisRayProcessor.voidgetColorFromRay(Line ray, Spectrum resp, Color4f color, Random random) The main method of a ray processor.voidinitialize(PixelwiseRenderer renderer, Scene scene) With this method the processor is initialized with the scene and other information of aPixelwiseRenderer.voidinitializeBeforeTracing(Random random) With this method the processor is initialized with the Randomizer actually before starting the ray tracing.Methods inherited from class de.grogra.ray2.tracing.PathTracer
initLocals, mergeStatisticsMethods inherited from class de.grogra.ray2.tracing.RayProcessorBase
getIOR, getLightProcessor, setLightProcessor, setRecursionDepthMethods inherited from class de.grogra.ray2.tracing.ProcessorBase
appendStatistics, cloneMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.ray2.tracing.RayProcessor
appendStatistics
-
Field Details
-
EYEPATH_DEPTH
- See Also:
-
LIGHTPATH_DEPTH
- See Also:
-
HEURISTIC_FACTOR
- See Also:
-
tracingMediator
-
loacalCausticMap
-
isMetropolis
public boolean isMetropolis -
lineTracer
-
bestS
public int bestS -
bestT
public int bestT -
bestLight
public int bestLight
-
-
Constructor Details
-
BiDirectionalProcessor
public BiDirectionalProcessor()
-
-
Method Details
-
dup
Description copied from interface:RayProcessorReturns a clone of thisRayProcessor. All constant variables are copied shallowly, state variables are newly created and copied where necessary.- Specified by:
dupin interfaceRayProcessor- Overrides:
dupin classRayProcessorBase- Parameters:
scene- duplicate of scene- Returns:
- clone of this ray processor
-
initialize
Description copied from interface:RayProcessorWith this method the processor is initialized with the scene and other information of aPixelwiseRenderer.- Specified by:
initializein interfaceRayProcessor- Overrides:
initializein classPathTracer- Parameters:
renderer- the renderer which provides the needed informationscene- the scene which is rendered
-
initializeBeforeTracing
Description copied from interface:RayProcessorWith this method the processor is initialized with the Randomizer actually before starting the ray tracing.- Specified by:
initializeBeforeTracingin interfaceRayProcessor- Overrides:
initializeBeforeTracingin classRayProcessorBase- Parameters:
random- pseudorandom generator
-
getColorFromRay
Description copied from interface:RayProcessorThe main method of a ray processor. This method computes acolorfor the specifiedray.color.wcontains the alpha value for the ray, the other components are premultiplied with this alpha value.- Specified by:
getColorFromRayin interfaceRayProcessor- Overrides:
getColorFromRayin classRayProcessorBase- Parameters:
ray- input - calculate for this rayresp- responsivity of cameracolor- output - the calculated colorrandom- pseudorandom generator
-
chooseBestPathCombination
-
appendStatisticsImpl
- Overrides:
appendStatisticsImplin classPathTracer
-