CloudyDay
 All Classes Functions Variables Enumerations
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes
osgCloudyDay::HUD Class Reference

#include <HUD.h>

Inheritance diagram for osgCloudyDay::HUD:
osgCloudyDay::Blur osgCloudyDay::LuminanceCalculation osgCloudyDay::PostProcess

List of all members.

Public Member Functions

 HUD (osg::ref_ptr< osg::Texture > debug_tex)
 HUD (void)
 ~HUD (void)
void CreateGeometry ()
virtual void SetupUniform (osg::ref_ptr< osg::StateSet > states)
virtual void SetupTextures (osg::ref_ptr< osg::StateSet > states)
virtual void CreateCamera ()
void SetSceneTexture (osg::ref_ptr< osg::Texture2D > tex)
void SetGodrayTexture (osg::ref_ptr< osg::Texture2D > tex)
void SetCloudTexture (osg::ref_ptr< osg::Texture2D > tex)
osg::ref_ptr< osg::Camera > GetCamera ()

Static Public Member Functions

static void Initialize ()

Protected Attributes

osg::ref_ptr< osg::Texture2D > m_scenetex
osg::ref_ptr< osg::Texture2D > m_goodraytex
osg::ref_ptr< osg::Texture2D > m_cloudtex
osg::ref_ptr< osg::Program > sh_blur_linear
osg::ref_ptr< osg::Uniform > uniform_blur_texsize
osg::ref_ptr< osg::Uniform > uniform_avg_texsize
osg::ref_ptr< osg::Program > sh_lum
osg::ref_ptr< osg::Camera > cam_hud
osg::ref_ptr< osg::StateSet > nodessP
osg::ref_ptr< osg::Program > planeProg
osg::ref_ptr< osg::Geode > plane
int renderorder
osg::ref_ptr< osg::Texture > m_debug_tex

Static Protected Attributes

static osg::ref_ptr
< osg::Texture2D > 
fbo_lum0_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_lum1_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_lum2_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_lum3_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_lum4_texture = 0
static osg::FrameBufferObject * fbo_Lum0 = 0
static osg::FrameBufferObject * fbo_Lum1 = 0
static osg::FrameBufferObject * fbo_Lum2 = 0
static osg::FrameBufferObject * fbo_Lum3 = 0
static osg::FrameBufferObject * fbo_Lum4 = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurV1_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurV2_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurV3_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurV4_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurH1_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurH2_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurH3_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_blurH4_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_star1_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_star2_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_star3_texture = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_star4_texture = 0
static osg::FrameBufferObject * fbo_V1_blur = 0
static osg::FrameBufferObject * fbo_H1_blur = 0
static osg::FrameBufferObject * fbo_V2_blur = 0
static osg::FrameBufferObject * fbo_H2_blur = 0
static osg::FrameBufferObject * fbo_V3_blur = 0
static osg::FrameBufferObject * fbo_H3_blur = 0
static osg::FrameBufferObject * fbo_V4_blur = 0
static osg::FrameBufferObject * fbo_H4_blur = 0
static osg::ref_ptr
< osg::Texture2D > 
fbo_glare_texture

Detailed Description

Class to create a HUD texture. Mix the cloud, goodray and scene texture Convert the scene to luminance, which is used for HDR mapping. This class is parent for calculation of the average luminance, glare and star-effect as well as the final hdr mapping and color graining effect.


Constructor & Destructor Documentation

osgCloudyDay::HUD::HUD ( osg::ref_ptr< osg::Texture >  debug_tex)

Constructor

Parameters:
debug_textexture to debug the scene
osgCloudyDay::HUD::HUD ( void  )

Constructor

osgCloudyDay::HUD::~HUD ( void  )

Deconstructor


Member Function Documentation

void osgCloudyDay::HUD::CreateCamera ( )
virtual

Create the camera for the post-processing effect

Reimplemented in osgCloudyDay::PostProcess, osgCloudyDay::LuminanceCalculation, and osgCloudyDay::Blur.

void osgCloudyDay::HUD::CreateGeometry ( )

Create the geometry for rendering

osg::ref_ptr< osg::Camera > osgCloudyDay::HUD::GetCamera ( )

Returns the post-processing camera

Returns:
post-processing camera
void osgCloudyDay::HUD::Initialize ( )
static

Initialize the scene

void osgCloudyDay::HUD::SetCloudTexture ( osg::ref_ptr< osg::Texture2D >  tex)

Sets the cloud texture

Parameters:
texcloud texture
void osgCloudyDay::HUD::SetGodrayTexture ( osg::ref_ptr< osg::Texture2D >  tex)

Sets the godray texture

Parameters:
texgodray texture
void osgCloudyDay::HUD::SetSceneTexture ( osg::ref_ptr< osg::Texture2D >  tex)

Sets the scene texture

Parameters:
texscene texture
void osgCloudyDay::HUD::SetupTextures ( osg::ref_ptr< osg::StateSet >  states)
virtual

Setup the textures

Parameters:
statesstates of the geode

Reimplemented in osgCloudyDay::PostProcess, osgCloudyDay::LuminanceCalculation, and osgCloudyDay::Blur.

void osgCloudyDay::HUD::SetupUniform ( osg::ref_ptr< osg::StateSet >  states)
virtual

Setup the uniform

Parameters:
statesstates of the geode

Reimplemented in osgCloudyDay::PostProcess, osgCloudyDay::Blur, and osgCloudyDay::LuminanceCalculation.


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