List of all members.
Public Member Functions |
|
| CloudyDay (osgCloudyDay::TerrainConfig *config, bool add_rain=false, bool add_forest=false, bool add_grass=false, bool bloom=false, bool star=false) |
| | ~CloudyDay (void) |
|
void | Initialize (int width, int size, osgCloudyDay::CloudState *&clouds, std::vector< osgCloudyDay::Cloud2DState > cloud2dstates, std::vector< int > m_ids, std::vector< std::string > reflection_models, std::vector< std::string > reflection_tex, osgCloudyDay::Fog *fog, std::vector< std::string > luds) |
| int | GetNumberOfReflectionObjects () |
| osg::Camera **& | GetReflectionCamerasAt (int id) |
| void | UpdateLightForClouds () |
| osg::ref_ptr< osg::Camera > | GetHUD () |
| osg::ref_ptr< osg::Camera > | GetBlurProcess () |
| osg::ref_ptr< osg::Camera > | GetBlur2Process () |
| osg::ref_ptr< osg::Camera > | GetPostProcess () |
|
osg::ref_ptr< osg::Node > | GetObjectModel (int) |
| osg::ref_ptr< osg::Camera > | GetLightCamera () |
| osg::ref_ptr< osg::Camera > | GetLightCloudCamera () |
| osg::ref_ptr< osg::Node > | GetScene () |
| osg::ref_ptr< osg::Camera > | GetViewCamera () |
| osg::ref_ptr< osg::Camera > | GetViewCamera2 () |
| osg::ref_ptr< osg::Camera > | GetViewDepthCamera () |
| void | CreateAtmosphere () |
| void | CreateTerrain () |
| void | CreateNight () |
| void | CreateForest () |
| void | CreateGrass () |
| void | CreateRain () |
| void | Create2DClouds (std::vector< osgCloudyDay::Cloud2DState > cloud2dstates) |
| void | CreatePostProcessing (std::vector< std::string > luds, int hdr_mapping, bool use_avglum) |
| void | CreateClouds (osgCloudyDay::CloudState *&clouds) |
| osg::ref_ptr< osg::Camera > | GetLuminanceCalculation () |
| osg::ref_ptr< osg::Camera > | GetBlurShadowMapCamera () |
| bool | UseBloom () |
| bool | UseStar () |
Constructor & Destructor Documentation
| osgCloudyDay::CloudyDay::~CloudyDay |
( |
void |
| ) |
|
Member Function Documentation
Create 2D clouds
- Parameters:
-
| cloud2dstates | 2D cloud configuration |
| void osgCloudyDay::CloudyDay::CreateAtmosphere |
( |
| ) |
|
Create 3D clouds
- Parameters:
-
| clouds | 3D cloud configuration |
| void osgCloudyDay::CloudyDay::CreateForest |
( |
| ) |
|
Create forst objects. Not used now.
| void osgCloudyDay::CloudyDay::CreateGrass |
( |
| ) |
|
Create grasst objects. Not used now.
| void osgCloudyDay::CloudyDay::CreateNight |
( |
| ) |
|
Create night objects. Not used now.
| void osgCloudyDay::CloudyDay::CreatePostProcessing |
( |
std::vector< std::string > |
luds, |
|
|
int |
hdr_mapping, |
|
|
bool |
use_avglum |
|
) |
| |
Create post-processing effects
- Parameters:
-
| luds | luds for color graining |
| hdr_mapping | hdr mapping algorithm |
| use_avglum | should the average luminance be calculated |
| void osgCloudyDay::CloudyDay::CreateRain |
( |
| ) |
|
| void osgCloudyDay::CloudyDay::CreateTerrain |
( |
| ) |
|
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetBlur2Process |
( |
| ) |
|
Return the camera for vertical glare & star blur
- Returns:
- camera
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetBlurProcess |
( |
| ) |
|
Return the camera for horizontal glare & star blur
- Returns:
- camera
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetBlurShadowMapCamera |
( |
| ) |
|
Create camera for shadow map blurring
- Returns:
- camera
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetHUD |
( |
| ) |
|
Return the camera for the HUD
- Returns:
- camera
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetLightCamera |
( |
| ) |
|
Returns the camera from the light source
- Returns:
- camera from light soucxre
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetLightCloudCamera |
( |
| ) |
|
Returns the cloud camera
- Returns:
- camera for cloud
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetLightshaftCamera |
( |
| ) |
|
|
static |
Returns camera for lightshaft camera (Bruneton approach, maybe an error)
- Returns:
- camera
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetLuminanceCalculation |
( |
| ) |
|
Create luminance calcuation camera
- Returns:
- camera
| int osgCloudyDay::CloudyDay::GetNumberOfReflectionObjects |
( |
| ) |
|
Returns the number of reflected objects
- Returns:
- reflected objects
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetPostProcess |
( |
| ) |
|
Return the camera for post-processing effect
- Returns:
- camera
| osg::Camera **& osgCloudyDay::CloudyDay::GetReflectionCamerasAt |
( |
int |
id | ) |
|
Return the camera for reflection objects
- Parameters:
-
- Returns:
- camera
| osg::ref_ptr< osg::Node > osgCloudyDay::CloudyDay::GetScene |
( |
| ) |
|
Returns scene node
- Returns:
- scene node
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetViewCamera |
( |
| ) |
|
Returns camera from viewer
- Returns:
- viewer camear
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetViewCamera2 |
( |
| ) |
|
Returns camera from viewer
- Returns:
- viewer camear
| osg::ref_ptr< osg::Camera > osgCloudyDay::CloudyDay::GetViewDepthCamera |
( |
| ) |
|
Returns camera from viewer (render depth)
- Returns:
- viewer camear
| void osgCloudyDay::CloudyDay::UpdateLightForClouds |
( |
| ) |
|
Update light position for clouds
| bool osgCloudyDay::CloudyDay::UseBloom |
( |
| ) |
|
Should the bloom effect be calculated?
- Returns:
- true, if the bloom effect should be created
| bool osgCloudyDay::CloudyDay::UseStar |
( |
| ) |
|
Should the star effect be calculated?
- Returns:
- true, if the star effect should be created
The documentation for this class was generated from the following files: