WhittedRayTracer Class Reference

Classic Whitted-style raytracer; for a concise introduction to raytracing, see http://www.raytracing.co.uk/study/ray_intro.htm. More...

#include <WhittedRayTracer.h>

Inheritance diagram for WhittedRayTracer:

RayTracer PointSampleRenderer Renderer PropertyMap

List of all members.

Public Member Functions

virtual void init ()
 Performs any initialization which may be necessary before beginning to render the underlying scene.
Constructors
 WhittedRayTracer (RenderOutput *output=NULL, Camera *camera=NULL, Scene *scene=NULL)
virtual ~WhittedRayTracer ()

Protected Member Functions

virtual void _evaluate (const Ray &ray, SpectralSampleSet &outRadiance, PropertyMap &data)
 Evaluates the radiance propogating in the opposite direction of the given ray using some type of illumination model.

Protected Attributes

unsigned m_noIndirectSamples
unsigned m_maxDepth
SpectralSampleSet m_ambient


Detailed Description

Classic Whitted-style raytracer; for a concise introduction to raytracing, see http://www.raytracing.co.uk/study/ray_intro.htm.

Author:
Travis Fischer (fisch0920@gmail.com)

Matthew Jacobs (jacobs.mh@gmail.com)

Date:
Fall 2008

Definition at line 17 of file WhittedRayTracer.h.


Constructor & Destructor Documentation

WhittedRayTracer::WhittedRayTracer ( RenderOutput output = NULL,
Camera camera = NULL,
Scene scene = NULL 
) [inline]

Definition at line 22 of file WhittedRayTracer.h.

virtual WhittedRayTracer::~WhittedRayTracer (  )  [inline, virtual]

Definition at line 29 of file WhittedRayTracer.h.


Member Function Documentation

void WhittedRayTracer::init (  )  [virtual]

Performs any initialization which may be necessary before beginning to render the underlying scene.

Note:
Default implementation ensures we have a valid scene and camera and calls init on both of them respectively

Reimplemented from Renderer.

Definition at line 21 of file WhittedRayTracer.cpp.

void WhittedRayTracer::_evaluate ( const Ray ray,
SpectralSampleSet outRadiance,
PropertyMap data 
) [protected, virtual]

Evaluates the radiance propogating in the opposite direction of the given ray using some type of illumination model.

Returns:
the spectral radiance emitted from the first surface intersected along the given ray in the opposite direction from the ray in the out param 'outRadiance'

Implements RayTracer.

Definition at line 31 of file WhittedRayTracer.cpp.


Member Data Documentation

Definition at line 41 of file WhittedRayTracer.h.

unsigned WhittedRayTracer::m_maxDepth [protected]

Definition at line 42 of file WhittedRayTracer.h.

Definition at line 44 of file WhittedRayTracer.h.


The documentation for this class was generated from the following files:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6