ImageLightingSamplesRun Class Reference
Precomputing run that computes environment lighting samples.
More...
#include <ImageLightingSamplesRun.h>
Inheritance diagram for ImageLightingSamplesRun:
List of all members.
Detailed Description
Precomputing run that computes environment lighting samples.
Precomputing run that computes
- samples of the image illumination using importance sampling, Voronoi tesselation and Lloyd's relaxation.
- depth maps for the samples However, only four depth maps are stored at a time (they must be frequently updated and would take up too much resources.) Method renderNextDepthMaps must be used to render depth maps of the next quad of samples. This is handled by IlluminationManager::render.
Constructor & Destructor Documentation
|
Contructor.
- Parameters:
-
| depthMapSize | The size of the depth map. |
| environHdriPath | Path to the High Dynamic Range Image file used for illumination. |
| nSamplePoints | Number of directional samples to be generated. |
|
~ImageBasedLightingModule |
( |
|
) |
|
|
Member Function Documentation
const String& getDepthMap |
( |
unsigned int |
index |
) |
[inline] |
|
|
- Parameters:
-
| index | The index of the depth map texture to be retrieved. There are 4 textures. renderNextDepthMaps will update them with the next 4 values. |
- Returns:
- The depth map texture specified by index (0..3).
|
unsigned int getDepthMapSize |
( |
|
) |
[inline] |
|
|
- Returns:
- Depth map resolution.
|
unsigned int getNSamplePoints |
( |
|
) |
[inline] |
|
|
- Returns:
- Number of directional samples generated.
|
HdriSampler* getSamples |
( |
|
) |
[inline] |
|
|
- Returns:
- The High Dynamic Range Image sampler holding the directional samples.
|
void loadHdri |
( |
const String & |
environHdriPath |
) |
|
|
|
- Parameters:
-
| environHdriPath | Path to the High Dynamic Range Image file used for illumination. |
|
bool renderNextDepthMaps |
( |
|
) |
|
|
|
Render depth maps of next quadruple of samples into by depthsMapPass[0..3]. - Returns:
- true if successful, false if no samples are left.
|
|
Next renderNextDepthMaps will render the depth maps of the first quadruple of samples. |
void setNSamplePoints |
( |
unsigned int |
nSamplePoints |
) |
[inline] |
|
|
- Parameters:
-
| nSamplePoints | Number of directional samples to be generated. |
|
void update |
( |
|
) |
[virtual] |
|
Member Data Documentation
|
High Dynamic Range Image sampler. Contains sample data. |
|
Number of directional samples generated. |
The documentation for this class was generated from the following file:
Generated on Mon Apr 18 10:59:27 2005 for OGRE_IllumModule by
1.4.2