Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
Demo::HdrUtils Class Reference

#include <HdrUtils.h>

Static Public Member Functions

static void init (Ogre::uint8 fsaa)
 
static void setSkyColour (const Ogre::ColourValue &colour, float multiplier, Ogre::CompositorWorkspace *workspace)
 
static void setExposure (float exposure, float minAutoExposure, float maxAutoExposure)
 Modifies the HDR Materials for the new exposure parameters By default the HDR implementation will try to auto adjust the exposure based on the scene's average luminance. More...
 
static void setBloomThreshold (float minThreshold, float fullColourThreshold)
 Controls the bloom intensity. More...
 

Member Function Documentation

◆ init()

void Demo::HdrUtils::init ( Ogre::uint8  fsaa)
static

◆ setBloomThreshold()

void Demo::HdrUtils::setBloomThreshold ( float  minThreshold,
float  fullColourThreshold 
)
static

Controls the bloom intensity.

Parameters
minThresholdColours darker than minThreshold will not contribute to bloom. Higher thresholds reduce the amount of bloom. Scale is in lumens / 1024.
fullColourThresholdThe bloom fades between minThreshold & fullColourThreshold. Must be > minThreshold. If it is too close to it, bloom fading may be too harsh/sudden. Scale is the same as minThreshold.

◆ setExposure()

void Demo::HdrUtils::setExposure ( float  exposure,
float  minAutoExposure,
float  maxAutoExposure 
)
static

Modifies the HDR Materials for the new exposure parameters By default the HDR implementation will try to auto adjust the exposure based on the scene's average luminance.

If left unbounded, even the darkest scenes can look well lit and the brigthest scenes appear too normal.
These parameters are useful to prevent the auto exposure from jumping too much from one extreme to the other and provide a consistent experience within the same lighting conditions. (e.g. you may want to change the params when going from indoors to outdoors)
The smaller the gap between minAutoExposure & maxAutoExposure, the less the auto exposure tries to auto adjust to the scene's lighting conditions.
Parameters
exposureExposure in EV. Valid range is [-inf; inf] Low values will make the picture darker. Higher values will make the picture brighter.
minAutoExposureIt's in EV stops. Valid range is [-inf; inf] Must be minAutoExposure <= maxAutoExposure Controls how much auto exposure darkens a bright scene.

To prevent that looking at a very bright object makes the rest of the scene really dark, use higher values.

Parameters
maxAutoExposureIt's in EV stops. Valid range is [-inf; inf] Must be minAutoExposure <= maxAutoExposure Controls how much auto exposure brightens a dark scene.

To prevent that looking at a very dark object makes the rest of the scene really bright, use lower values.

◆ setSkyColour()

void Demo::HdrUtils::setSkyColour ( const Ogre::ColourValue &  colour,
float  multiplier,
Ogre::CompositorWorkspace *  workspace 
)
static

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