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

PhotonMapFilteringPass Class Reference

Filters the incoming unfiltered photon map texture using an area map and a normal map. More...

#include <PhotonMapFilteringPass.h>

Inheritance diagram for PhotonMapFilteringPass:

ManagedOgreRenderTexturePass List of all members.

Public Member Functions

 PhotonMapFilteringPass (Root *mRoot, unsigned int width, unsigned int height, TextureType texType=TEX_TYPE_2D, PixelFormat internalFormat=PF_FLOAT16_RGBA, const NameValuePairList *miscParams=0, bool fullScreenQuadRenderer=false, String renderTextureName="FilteredPhotonMapTexture")
 ~PhotonMapFilteringPass ()
void generateFilterKernel (t_pmfKernelType kt, int kernelSize)
 Function to generate a filter kernel according to the given shape and size.
void setResolution (float resolution)
 Sets the reciprocal value of the texture resolution.
float getResolution ()
 Gets the reciprocal value of the resolution of the unfiltered photon map.
void setAreaCompensation (float ac)
 Setter method to define area compensation.
float getAreaCompensation ()
 Getter method to obtain area compensation.
void setNormalThreshold (float nt)
 Setter method to define normal threshold.
float getNormalThreshold ()
 Getter method to obtain normal threshold.

Protected Member Functions

void onRenderStart (NameValuePairList *namedParams=0)
 Pre rendering method.
void onRenderEnd (NameValuePairList *namedParams=0)
 Post rendering method.

Detailed Description

Filters the incoming unfiltered photon map texture using an area map and a normal map.

SuperClass: ManagedOgreRenderTexturePass Class: PhotonMapFilteringPass The instances of this class are to generate a filtered photon map of the owner entity. The shader programs can access to the originally unfiltered photon map and the area map through the texture units of this textures. This association is done by the constructor of the PhotonMapFilteringRenderingRun class. The type of the resulting texture is PF_FLOAT16_RGBA.


Constructor & Destructor Documentation

PhotonMapFilteringPass::PhotonMapFilteringPass Root *  mRoot,
unsigned int  width,
unsigned int  height,
TextureType  texType = TEX_TYPE_2D,
PixelFormat  internalFormat = PF_FLOAT16_RGBA,
const NameValuePairList *  miscParams = 0,
bool  fullScreenQuadRenderer = false,
String  renderTextureName = "FilteredPhotonMapTexture"
 

Parameters:
mRoot pointer to the Root object of the graphics engine.
width the width of render texture in pixels.
height the height of render texture in pixels.
texType the type of render texture. Its default value is TEX_TYPE_2D.
internalFormat the pixel format of the render texture. Its default value is PF_FLOAT16_RGBA.
miscParams a pointer to miscelaneous parameters. Its default value is 0.
fullScreenQuadRenderer a bool flag to decide on full screen rendering on a quad. Its default value is false.
renderTextureName a unique name for the render texture. Its default value is "FilteredPhotonMapTexture". Construtor.

PhotonMapFilteringPass::~PhotonMapFilteringPass  ) 
 

Destructor.


Member Function Documentation

void PhotonMapFilteringPass::generateFilterKernel t_pmfKernelType  kt,
int  kernelSize
 

Function to generate a filter kernel according to the given shape and size.

Parameters:
kt an enumerated type to specify the kernel shape.
kernelSize an integer to define the half of the kernel size in pixels.

float PhotonMapFilteringPass::getAreaCompensation  ) 
 

Getter method to obtain area compensation.

Returns:
the multiplier of the area compensation.

float PhotonMapFilteringPass::getNormalThreshold  ) 
 

Getter method to obtain normal threshold.

Returns:
the normal threshold.

float PhotonMapFilteringPass::getResolution  ) 
 

Gets the reciprocal value of the resolution of the unfiltered photon map.

Returns:
the reciprocal value of the resolution of the unfiltered photon map.

void PhotonMapFilteringPass::onRenderEnd NameValuePairList *  namedParams = 0  )  [protected, virtual]
 

Post rendering method.

It runs after the render-texture object is updated. Place all cleanup code here.

Parameters:
namedParams Parameter list.

Reimplemented from ManagedOgreRenderTexturePass.

void PhotonMapFilteringPass::onRenderStart NameValuePairList *  namedParams = 0  )  [protected, virtual]
 

Pre rendering method.

It runs before the render-texture object is updated. Place all shader setup here.

Parameters:
namedParams Parameter list.

Reimplemented from ManagedOgreRenderTexturePass.

void PhotonMapFilteringPass::setAreaCompensation float  ac  ) 
 

Setter method to define area compensation.

Parameters:
ac a multiplier of the area compensation.

void PhotonMapFilteringPass::setNormalThreshold float  nt  ) 
 

Setter method to define normal threshold.

Parameters:
nt a multiplier of the normal threshold.

void PhotonMapFilteringPass::setResolution float  resolution  ) 
 

Sets the reciprocal value of the texture resolution.

Parameters:
resolution a float to set the reciprocal value of the resolution of the unfiltered photon map.


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