OgrePhotonMapRenderingRun Class Reference

ColorCubeMapRenderingRun used in an OGRE environment. More...

Inheritance diagram for OgrePhotonMapRenderingRun:

OgreRenderingRun PhotonMapRenderingRun RenderingRun RenderingRun List of all members.

Public Member Functions

 OgrePhotonMapRenderingRun (OgreSharedRuns *sharedRuns, String name, unsigned long startFrame, unsigned long updateInterval, unsigned int resolution, String materialName, bool useDistance)
 Constructor.
String getPhotonMapTextureName ()
 returns the name of the resulting photon hit map
void refreshLight ()
 Refreshes light camera matrices, called in each update.

Protected Member Functions

void updateFrame (unsigned long frameNum)
 This function does the actual update in a frame.
void createPhotonMap ()
 Creates a photon hit map.

Protected Attributes

String materialName
 the name of the material should be used when rendering the choton hit map
Light * light
 pointer to the nearest light source from the caster object
Camera * photonMapCamera
 the created photon hit map texture
bool useDistance
 tells if a distance cubemap impostor should be used in photon hit calculation (recommended)
OgreSharedRunssharedRuns
 a pointer to the OgreSharedRuns this run belongs to
String name
 the name of the photonmap texture that was created by this run
Texture * photonMapTexture
 a pointer to the photonmap texture that was created by this run
unsigned int resolution
 the resolution of the photonmap texture that was created by this run

Detailed Description

ColorCubeMapRenderingRun used in an OGRE environment.


Constructor & Destructor Documentation

OgrePhotonMapRenderingRun::OgrePhotonMapRenderingRun OgreSharedRuns sharedRuns,
String  name,
unsigned long  startFrame,
unsigned long  updateInterval,
unsigned int  resolution,
String  materialName,
bool  useDistance
 

Constructor.

Parameters:
sharedRuns a pointer to the OgreSharedRuns this run belongs to
name the name of the texture to be created
startFrame adds an offset to the current frame number to help evenly distribute updates between frames
updateInterval update frequency
resolution color cubemap resolution
materialName the name of the material should be used when rendering the choton hit map
useDistance tells if a distance cubemap impostor should be used in photon hit calculation (recommended)


Member Function Documentation

void OgrePhotonMapRenderingRun::refreshLight  ) 
 

Refreshes light camera matrices, called in each update.

TODO: search nearest light, set light params

void OgrePhotonMapRenderingRun::updateFrame unsigned long  frameNum  )  [protected, virtual]
 

This function does the actual update in a frame.

Parameters:
frameNum current frame number

Implements PhotonMapRenderingRun.


The documentation for this class was generated from the following files:
Generated on Thu Apr 27 17:29:41 2006 for GameTools Illumination Module by  doxygen 1.4.6-NO