Main Page | Class Hierarchy | Class List | Directories | Class Members

LightMapRenderingRun Class Reference

#include <LightMapRenderingRun.h>

Inheritance diagram for LightMapRenderingRun:

PreComputingRun List of all members.

Public Member Functions

 LightMapRenderingRun (unsigned int width, unsigned int height, unsigned char numberOfMipmapLevels, unsigned int lod, Entity *entity)
 ~StochasticRadiosityRun ()
void setIterations (unsigned int iterations)
 Sets the number of iterations.
unsigned int getIterations (void)
 Sets the number of iterations.
const String & getResultTextureName ()
void update ()
void initialRendering ()
void iterate ()

Detailed Description

Computes the indirect diffuse illumination for an entity (the level geometry, typically)


Constructor & Destructor Documentation

LightMapRenderingRun::LightMapRenderingRun unsigned int  width,
unsigned int  height,
unsigned char  numberOfMipmapLevels,
unsigned int  lod,
Entity *  entity
 

Constructor.

Parameters:
width The width of render texture objects.
height The height of render texture objects.
numberOfMipmapLevels The number of mip map levels for radiosity texture objects.
lod The level of detail factor.
entity The entity to render.

LightMapRenderingRun::~StochasticRadiosityRun  ) 
 

Destructor.


Member Function Documentation

unsigned int LightMapRenderingRun::getIterations void   )  [inline]
 

Sets the number of iterations.

Returns:
The number of iterations to do.

const String& LightMapRenderingRun::getResultTextureName  )  [virtual]
 

See also:
PreComputingRun::getResultTextureName();

Reimplemented from PreComputingRun.

void LightMapRenderingRun::initialRendering  ) 
 

Renders initial visibility and emission into their respective textures.

void LightMapRenderingRun::iterate  ) 
 

Iteration to calculate lightmap. Generates mipmaps, chooses a shooter then calculates visibility and radiosity for all 5 shooter hemicube sides. Finally it averages the current radiosity with the one calculated from the shooter.

void LightMapRenderingRun::setIterations unsigned int  iterations  )  [inline]
 

Sets the number of iterations.

Parameters:
iterations The number of iterations to do.

void LightMapRenderingRun::update  )  [virtual]
 

See also:
PreComputingRun::update();

Implements PreComputingRun.


The documentation for this class was generated from the following file:
Generated on Mon Apr 18 09:57:35 2005 for OGRE_IllumModule by  doxygen 1.4.2