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

#include <Scene.h>

List of all members.

Public Member Functions

 Scene (int width, int height)
 ~Scene (void)

Static Public Member Functions

static void CreateViewCamera ()
static void CreateLightCamera ()
static void CreateViewDepthCamera ()
static osg::Matrix & GetViewMatrix_View ()
static osg::Matrix & GetProjectionMatrix_View ()
static osg::Matrix & GetProjectionMatrix_Light ()
static osg::ref_ptr< osg::Camera > GetLightCamera ()
static osg::ref_ptr< osg::Camera > GetViewCamera ()
static osg::ref_ptr< osg::Camera > GetViewCamera2 ()
static osg::ref_ptr< osg::Camera > GetViewDepthCamera ()
static void SetLightCamera (osg::ref_ptr< osg::Camera > c)
static void SetViewCamera (osg::ref_ptr< osg::Camera > c)
static osg::ref_ptr< osg::Program > GetShadowProgram ()
static osg::ref_ptr< osg::Program > GetShadingProgram ()
static osg::ref_ptr< osg::Program > GetDebugProgram ()
static int GetWidth ()
static int GetHeight ()
static osg::ref_ptr
< osg::Texture2D > 
GetShadowTexture ()
static osg::ref_ptr
< osg::Texture2D > 
GetShadowDepthTexture ()
static osg::ref_ptr
< osg::Texture2D > 
GetSceneDepthTexture ()
static osg::ref_ptr
< osg::Texture2D > 
GetSceneTexture ()
static osg::ref_ptr
< osg::Texture2D > 
GetGoodRayTexture ()
static osg::ref_ptr
< osg::Texture2D > 
GetHUDTexture ()
static osg::ref_ptr
< osg::Texture2D > 
GetBlurTexture ()

Static Public Attributes

static osgCloudyDay::Skydomem_skydome
static osg::FrameBufferObject * fbo_vert_linear_blur2
static osg::FrameBufferObject * fbo_hori_linear_blur2
static osg::FrameBufferObject * fbo_scene_viewer

Static Protected Attributes

static osg::ref_ptr
< osg::Texture2D > 
fbo_light_texture2
static osg::ref_ptr
< osg::Texture2D > 
fbo_goodrays
static osg::ref_ptr
< osg::Texture2D > 
fbo_scene_depth
static osg::ref_ptr
< osg::Texture2D > 
fbo_scene_texture
static osg::ref_ptr
< osg::Texture2D > 
fbo_hud_texture
static osg::ref_ptr
< osg::Texture2D > 
fbo_blur_texture
static osg::ref_ptr
< osg::Texture2D > 
fbo_light_depth
static int m_width = 800
static int m_height = 600
static osg::ref_ptr< osg::Program > shadowProg
static osg::ref_ptr< osg::Program > lightningProg
static osg::ref_ptr< osg::Program > debugProg
static osg::ref_ptr< osg::Camera > m_ViewCameraDepthOnly
static osg::ref_ptr< osg::Camera > m_ViewCamera
static osg::ref_ptr< osg::Camera > m_LightCamera
static osg::ref_ptr< osg::Camera > m_ViewDepthCamera

Detailed Description

Class to manage the whole scene


Constructor & Destructor Documentation

osgCloudyDay::Scene::Scene ( int  width,
int  height 
)

Constructor of scene

Parameters:
widthwindow width
heightwindow height
osgCloudyDay::Scene::~Scene ( void  )

Deconstructor


Member Function Documentation

void osgCloudyDay::Scene::CreateLightCamera ( )
static

Create shadow camera

void osgCloudyDay::Scene::CreateViewCamera ( )
static

Create viewer camera

void osgCloudyDay::Scene::CreateViewDepthCamera ( )
static

Create viewer depth camera

osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetBlurTexture ( )
static

MEthod returns a helper texture for blurring

Returns:
helper texture
osg::ref_ptr< osg::Program > osgCloudyDay::Scene::GetDebugProgram ( )
static

This method returns the debug shader

Returns:
debug shader
osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetGoodRayTexture ( )
static

Method returns lightshaft texture

Returns:
lightshafts texture
int osgCloudyDay::Scene::GetHeight ( )
static

This method returns the height of the window

Returns:
height of the window
osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetHUDTexture ( )
static

Method returns HUD texture

Returns:
HUD texture
osg::ref_ptr< osg::Camera > osgCloudyDay::Scene::GetLightCamera ( )
static

Return shadow camera

Returns:
shadow camera
osg::Matrix & osgCloudyDay::Scene::GetProjectionMatrix_Light ( )
static

Returns projection matrix of shadow

Returns:
projection matrix
osg::Matrix & osgCloudyDay::Scene::GetProjectionMatrix_View ( )
static

Returns projection matrix of viewer

Returns:
projection matrix
osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetSceneDepthTexture ( )
static

Method returns the depth map from the viewer

Returns:
depth map from viewer
osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetSceneTexture ( )
static

Method returns scene rendererd from viewer

Returns:
scene from viewer
osg::ref_ptr< osg::Program > osgCloudyDay::Scene::GetShadingProgram ( )
static

This method returns the shading shader

Returns:
shading shader
osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetShadowDepthTexture ( )
static

Method returns the depth map from the light

Returns:
depth map from light
osg::ref_ptr< osg::Program > osgCloudyDay::Scene::GetShadowProgram ( )
static

This method returns the shadowing shader

Returns:
shadow shader
osg::ref_ptr< osg::Texture2D > osgCloudyDay::Scene::GetShadowTexture ( )
static

Method returns the variance shadow map

Returns:
variance shadow map
osg::ref_ptr< osg::Camera > osgCloudyDay::Scene::GetViewCamera ( )
static

Return viewer camera

Returns:
viewer camera
osg::ref_ptr< osg::Camera > osgCloudyDay::Scene::GetViewCamera2 ( )
static

Return viewer camera

Returns:
viewer camera
osg::ref_ptr< osg::Camera > osgCloudyDay::Scene::GetViewDepthCamera ( )
static

Return viewer depth camera

Returns:
viewer depth camera
osg::Matrix & osgCloudyDay::Scene::GetViewMatrix_View ( )
static

Returns view matrix of viewer

Returns:
view matrix
int osgCloudyDay::Scene::GetWidth ( )
static

This method returns the width of the window

Returns:
width of the window
void osgCloudyDay::Scene::SetLightCamera ( osg::ref_ptr< osg::Camera >  c)
static

Set shadow camera

Parameters:
cshadow camera
void osgCloudyDay::Scene::SetViewCamera ( osg::ref_ptr< osg::Camera >  c)
static

Set viewer camera

Parameters:
cviewer camera

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