Namespaces | |
VClouds | |
Classes | |
class | Controller |
Controller base class. More... | |
Enumerations | |
enum | LightingMode { LM_LDR = 0, LM_HDR = 1 } |
Lighting mode enumeration SkyX is designed for true HDR rendering, but there is a big number of applications which don't use HDR rendering, due to this fact a little exponential tone-mapping algoritm is applied to SkyX materials if LM_LDR is selected. More... | |
Functions | |
~SkyX () | |
Destructor. More... | |
class | __declspec (dllimport) SkyX |
SkyX class Create simple and beautiful skies! More... | |
const Ogre::Real & | _getTimeOffset () const |
Get time offset. More... | |
void | create () |
Create SkyX. More... | |
bool | frameStarted (const Ogre::FrameEvent &evt) |
Frame started. More... | |
AtmosphereManager * | getAtmosphereManager () |
Get atmosphere manager. More... | |
Ogre::Camera * | getCamera () |
Get current rendering camera. More... | |
bool | getCloudsEnabled () |
CloudsManager * | getCloudsManager () |
Get clouds manager. More... | |
Controller * | getController () const |
Get current controller. More... | |
const Ogre::Vector2 & | getEastDirection () const |
Get east direction. More... | |
bool | getEnabled () |
GPUManager * | getGPUManager () |
Get GPU manager. More... | |
const Ogre::Real & | getInfiniteCameraFarClipDistance () const |
Get infinite cmaera far clip distance. More... | |
const LightingMode & | getLightingMode () const |
Get lighting mode. More... | |
MeshManager * | getMeshManager () |
Get mesh manager. More... | |
Ogre::Vector3 | getMoonDirection () |
Get moon direction. More... | |
bool | getMoonEnabled () |
MoonManager * | getMoonManager () |
Get moon manager. More... | |
Ogre::Real | getMoonPhase () |
Get moon phase. More... | |
const RenderQueueGroups & | getRenderQueueGroups () const |
Get render queue groups. More... | |
Ogre::SceneManager * | getSceneManager () |
Get scene manager. More... | |
Ogre::Vector3 | getSunDirection () |
Get sun direction. More... | |
const Ogre::Vector3 & | getTime () const |
Get time. More... | |
const Ogre::Real & | getTimeMultiplier () const |
Get time multiplier. More... | |
VCloudsManager * | getVCloudsManager () |
Get volumetric clouds manager. More... | |
bool | isCreated () const |
Is SkyX created? More... | |
const bool & | isStarfieldEnabled () const |
Is the starfield enable? More... | |
const bool & | isVisible () const |
Is SkyX visible? More... | |
void | notifyCameraRender (Ogre::Camera *c) |
Notify camera render (to be invoked per camera and per frame) More... | |
void | preViewportUpdate (const Ogre::RenderTargetViewportEvent &evt) |
Fired before update a render target viewport. More... | |
void | remove () |
Remove SkyX (free resources) More... | |
void | setCloudsEnabled (bool _enabled) |
void | setController (Controller *c) |
Set controller. More... | |
void | setEastDirection (const Ogre::Vector2 &ed) |
Set eastn direction. More... | |
void | setEnabled (bool _enabled) |
void | setInfiniteCameraFarClipDistance (const Ogre::Real &d) |
Set infinite camera far clip distance. More... | |
void | setLightingMode (const LightingMode &lm) |
Set lighting mode. More... | |
void | setMoonEnabled (bool _enabled) |
void | setMoonPhase (const Ogre::Real &mp) |
Set moon phase. More... | |
void | setRenderQueueGroups (const RenderQueueGroups &rqg) |
Set render queue groups. More... | |
void | setStarfieldEnabled (const bool &Enabled) |
Set the starfield enabled/disabled. More... | |
void | setTime (const Ogre::Vector3 &t) |
Set time. More... | |
void | setTimeMultiplier (const Ogre::Real &TimeMultiplier) |
Set time multiplier. More... | |
void | setVisible (const bool &visible) |
Set visible. More... | |
SkyX (Ogre::SceneManager *sm, Controller *c) | |
Contructor. More... | |
class __declspec(dllimport) BasicController void | update (const Ogre::Real &simDeltaTime) |
Basic controller class. More... | |
Variables | |
AtmosphereManager * | mAtmosphereManager |
Atmosphere manager. More... | |
Ogre::Camera * | mCamera |
Current rendering camera. More... | |
bool | mCloudsEnabled |
True if clouds are enabled. More... | |
CloudsManager * | mCloudsManager |
Clouds manager. More... | |
Controller * | mController |
Controller. More... | |
bool | mCreated |
Is SkyX created? More... | |
Ogre::Vector2 | mEastDirection |
East direction (in X,Z world coords) More... | |
bool | mEnabled |
True if skyx is enabled. More... | |
GPUManager * | mGPUManager |
GPU manager. More... | |
Ogre::Real | mInfiniteCameraFarClipDistance |
Infinite camera far clip distance. More... | |
Ogre::Real | mLastCameraFarClipDistance |
Last camera far clip distance. More... | |
Ogre::Vector3 | mLastCameraPosition |
Last camera position. More... | |
LightingMode | mLightingMode |
Lighting mode. More... | |
MeshManager * | mMeshManager |
Mesh manager. More... | |
Ogre::Vector3 | mMoonDirection |
Moon direction. More... | |
bool | mMoonEnabled |
True if moon is enabled. More... | |
MoonManager * | mMoonManager |
Moon manager. More... | |
Ogre::Real | mMoonPhase |
Moon phase. More... | |
RenderQueueGroups | mRenderQueueGroups |
Render queue groups. More... | |
Ogre::SceneManager * | mSceneManager |
Scene manager. More... | |
bool | mStarfield |
Enable starfield? More... | |
Ogre::Vector3 | mSunDirection |
Sun direction. More... | |
Ogre::Vector3 | mTime |
Time information: x = time in [0, 24]h range, y = sunrise hour in [0, 24]h range, z = sunset hour in [0, 24] range. More... | |
Ogre::Real | mTimeMultiplier |
Time multiplier. More... | |
Ogre::Real | mTimeOffset |
Time offset. More... | |
VCloudsManager * | mVCloudsManager |
Volumetric clouds manager. More... | |
bool | mVisible |
Is SkyX visible? More... | |
Ogre::uint8 | skydome |
Skydome render queue group (Note: Moon = skydome_render_queue+1) More... | |
Ogre::uint8 | vclouds |
VClouds render queue group. More... | |
Ogre::uint8 | vcloudsLightnings |
VClouds lightnings render queue group. More... | |
enum SkyX::LightingMode |
Lighting mode enumeration SkyX is designed for true HDR rendering, but there is a big number of applications which don't use HDR rendering, due to this fact a little exponential tone-mapping algoritm is applied to SkyX materials if LM_LDR is selected.
(See: AtmosphereManager::Options::Exposure) Select LM_HDR if your app is designed for true HDR rendering. In HDR mode, we assume you're ussing a full linear rendering pipeline, so all textures are gamma corrected if needed.
Enumerator | |
---|---|
LM_LDR |
Low dynamic range. |
LM_HDR |
High dynamic range. |
SkyX::~SkyX | ( | ) |
Destructor.
class SkyX::__declspec | ( | dllimport | ) |
SkyX class Create simple and beautiful skies!
s | Skydome render queue group (Note: Moon = skydome_render_queue+1) |
vc | VClouds render queue group |
vcl | VClouds lightnings render queue group |
Atmosphere options
Inner atmosphere radius
Outer atmosphere radius
Height position, in [0, 1] range, 0=InnerRadius, 1=OuterRadius
Rayleigh multiplier
Mie multiplier
Sun intensity
WaveLength for RGB channels
Phase function
Exposure coeficient
Number of samples
Default constructor
Constructor
_InnerRadius | Inner atmosphere radius |
_OuterRadius | Outer atmosphere radius |
_HeightPosition | Height position, in [0, 1] range, 0=InnerRadius, 1=OuterRadius |
_RayleighMultiplier | Rayleigh multiplier |
_MieMultiplier | Mie multiplier |
_SunIntensity | Sun intensity |
_WaveLength | Wave length for RGB channels |
_G | Phase function |
_Exposure | Exposure |
_NumerOfSamples | Number of samples |
Constructor
s | Parent SkyX pointer |
Destructor
Set options
_Options | New options |
Get current options
Get current atmosphere color at the given direction
Direction | Normalised direction |
Update atmoshpere
NewOptions | Update only the differences between actual parameters and new ones. |
ForceToUpdateAll | Forces to upload all current parameters to skyx material. |
Shader scale funtion
cos | Cos |
uScaleDepth | Scale Depth |
SkyX parent pointer
Our options
Cloud layer options
Cloud layer height
Cloud layer scale
Wind direction
Time multiplier
Distance attenuation
Detail attenuation
Cloud layer height volume(For volumetric effects on the gpu)
Volumetric displacement(For volumetric effects on the gpu)
Default constructor
Constructor
_Height | Cloud layer height |
_Scale | Clouds scale |
_WindDirection | Clouds movement direction |
_TimeMultiplier | Time multiplier factor |
Constructor
_Height | Cloud layer height |
_Scale | Clouds scale |
_WindDirection | Clouds movement direction |
_TimeMultiplier | Time multiplier factor |
_DistanceAttenuation | Distance attenuation |
_DetailAttenuation | Detail attenuation |
_HeightVolume | Height volume(For volumetric effects on the gpu) |
_VolumetricDisplacement | Volumetric displacement(For volumetric effects on the gpu) |
Default onstructor
s | SkyX parent pointer |
Constructor
s | SkyX parent pointer |
o | Cloud layer options |
Destructor
Set options
o | New options |
Get options
Set ambient gradient
AmbientGradient | Ambient color gradient |
Get ambient color gradient
Set sun gradient
SunGradient | Sun color gradient |
Get sun color gradient
Register layer
CloudLayerPass | Pass where register the cloud layer |
Unregister cloud pass
Update internal cloud pass parameters
Update cloud pass parameters
SkyX parent pointer
Cloud layer options
Cloud layer pass
Ambient and Sun color gradients
Constructor
s | SkyX parent pointer |
Destructor
Update cloud layers
Add a cloud layer
o | Cloud layer options |
Remove the specified cloud layer
Remove all cloud layers
Register all
Unregister cloud layer
cl | Cloud layer to be unregistered |
Unregister all cloud layers
Get cloud layers
SkyX parent pointer
Cloud layers std::vector
Cloud layers iterator
Color frame type definition ColorFrame.first: Colour value ColorFrame.second: Position in the gradient [0,1] range
Constructor
Destructor
Add color frame
CFrame | Color frame |
Clear color gradient
Get color value
p | The gradient point in [0,1] range |
Check bounds
Mal formed color gradient?
Color frame vector
Gpu program enum
Constructor
s | Parent SkyX pointer |
Destructor
Add ground pass (Use for atmospheric scattering effect on the terrain)
GroundPass | Ground pass |
AtmosphereRaidus | Atmosphere radius (typically far carmera clip plane) |
SBT | Scene blend type |
Set gpu program int parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Set gpu program Ogre::Real parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Set gpu program Ogre::Vector2 parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Set gpu program Ogre::Vector3 parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Get skydome material name
Get moon material name
Update fragment program materials
Notify skydome material changed
SkyX parent pointer
Ground pass vector
Set texture HW gamma correction
n | Texture name |
g | True to enable gamma correction, false to disable it |
Skydome material
Vertex struct
Constructor
s | Parent SkyX pointer |
Destructor
Create our water mesh, geometry, entity, etc...
Remove all resources
Update geometry
cam | Camera |
Get mesh
Get sub mesh
Get entity
Get material name
Set mesh material
MaterialName | The material name |
Get hardware vertex buffer reference
Get hardware index buffer reference
Get the Ogre::SceneNode pointer where Hydrax mesh is attached
Is _createGeometry() called?
Set geometry parameters
Steps | Sphere number of steps |
Circles | Spehere number of circes |
Get number of steps
Get number of circles
Set under-horizon rendering params
UnderHorizonCircles | Number of circles of SkyX::MeshManager::mCircles reserved for the under-horizont geometry part, 0 means not under-horizon rendering |
UnderHorizonFading | true/false to fade or not the under-horizon sky |
UnderHorizonFadingExponent | Exponent of the fading, pow(vertex_angle, exp), 1=linear |
UnderHorizonFadingMultiplier | Fading multiplier, opacity = saturate(pow(opacity,fading_exp)*fading_multiplier) |
Get under-horizon circles
Get under-horizon fading
Get under-horizon exponent fading
Get under-horizon fading multiplier
Set radius multiplier
RadiusMultiplier | Radius multiplier |
Get skydome radius
c | Camera |
Create geometry
Main SkyX pointer
Has been create() already called?
Ogre::MeshPtr
Ogre::Submesh pointer
Ogre::Entity pointer
Vertex buffer
Vertices
Index buffer
Ogre::SceneNode pointer
Steps
Circles
Under-horizon rendering
Under-horizon fading
Under-horizon exponent fading (1=linear fading)
Under-horizon fading multiplier: opacity = saturate(pow(opacity,fading_exp)*fading_multiplier)
Radius multiplier
Material name
Constructor
s | Parent SkyX pointer |
Destructor
Create all resources
Remove all resources
Update moon phase
phase | Moon phase in [-1,1] range, where -1 means fully covered Moon, 0 clear Moon and 1 fully covered Moon |
Update geometry
c | Camera |
Get moon billboard
Get moon scene node
Set moon size
MoonSize | Moon size |
Get moon size
Set moon halo intensity
MoonHaloIntensity | Moon halo intensity |
Get moon halo intensity
Set moon halo strength
MoonHaloStrength | Moon halo strength (linear/exponential fading) |
Get moon halo strength
Is moon manager created?
Update moon bounds
c | Camera |
SkyX parent pointer
Moon billboard
Moon scene node
Is moon manager created?
Moon size
Moon halo intensity
Moon halo strength
Moon material
True if visible
Constructor
s | Parent SkyX pointer |
Destructor
Create all resources
radius | Volumetric cloud field radius, -1 to use current VClouds::mGeometrySettings::Radius |
Update
timeSinceLastFrame | Time since last frame |
Notify camera render, to be invoked per-camera and per-frame
c | Rendering camera |
Remove all resources
Set ambient gradient
AmbientGradient | Ambient color gradient |
Get ambient color gradient
Set sun gradient
SunGradient | Sun color gradient |
Get sun color gradient
Set height parameters
Height | x = Cloud field y-coord start, y: Field height (both in world coordinates) |
Get height parameters
Set autoupdate true if you want to update volumetric clouds wind depending of the SkyX time multiplier
Get autoupdate
Set wind speed
WindSpeed | Wind speed |
Get wind speed
Get VClouds
Is moon manager created?
Update wind speed config
Set light parameters
SkyX parent pointer
VClouds pointer
Height parameters, x = Cloud field y-coord start, y: Field height (both in world coordinates)
Wind speed
Autoupdate wind speed depending of skyx time multiplier?
Is vclouds manager created?
Current time since last frame
Ambient and Sun color gradients
Cloud layer options
Cloud layer height
Cloud layer scale
Wind direction
Time multiplier
Distance attenuation
Detail attenuation
Cloud layer height volume(For volumetric effects on the gpu)
Volumetric displacement(For volumetric effects on the gpu)
Default constructor
Constructor
_Height | Cloud layer height |
_Scale | Clouds scale |
_WindDirection | Clouds movement direction |
_TimeMultiplier | Time multiplier factor |
Constructor
_Height | Cloud layer height |
_Scale | Clouds scale |
_WindDirection | Clouds movement direction |
_TimeMultiplier | Time multiplier factor |
_DistanceAttenuation | Distance attenuation |
_DetailAttenuation | Detail attenuation |
_HeightVolume | Height volume(For volumetric effects on the gpu) |
_VolumetricDisplacement | Volumetric displacement(For volumetric effects on the gpu) |
Default onstructor
s | SkyX parent pointer |
Constructor
s | SkyX parent pointer |
o | Cloud layer options |
Destructor
Set options
o | New options |
Get options
Set ambient gradient
AmbientGradient | Ambient color gradient |
Get ambient color gradient
Set sun gradient
SunGradient | Sun color gradient |
Get sun color gradient
Register layer
CloudLayerPass | Pass where register the cloud layer |
Unregister cloud pass
Update internal cloud pass parameters
Update cloud pass parameters
SkyX parent pointer
Cloud layer options
Cloud layer pass
Ambient and Sun color gradients
Constructor
s | SkyX parent pointer |
Destructor
Update cloud layers
Add a cloud layer
o | Cloud layer options |
Remove the specified cloud layer
Remove all cloud layers
Register all
Unregister cloud layer
cl | Cloud layer to be unregistered |
Unregister all cloud layers
Get cloud layers
SkyX parent pointer
Cloud layers std::vector
Cloud layers iterator
Color frame type definition ColorFrame.first: Colour value ColorFrame.second: Position in the gradient [0,1] range
Constructor
Destructor
Add color frame
CFrame | Color frame |
Clear color gradient
Get color value
p | The gradient point in [0,1] range |
Check bounds
Mal formed color gradient?
Color frame vector
Gpu program enum
Constructor
s | Parent SkyX pointer |
Destructor
Add ground pass (Use for atmospheric scattering effect on the terrain)
GroundPass | Ground pass |
AtmosphereRaidus | Atmosphere radius (typically far carmera clip plane) |
SBT | Scene blend type |
Set gpu program int parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Set gpu program Ogre::Real parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Set gpu program Ogre::Vector2 parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Set gpu program Ogre::Vector3 parameter
GpuP | Gpu program type (Vertex/Fragment) |
Name | param name |
Value | value |
UpdateGroundPasses | true to update ground passes |
Get skydome material name
Get moon material name
Update fragment program materials
Notify skydome material changed
SkyX parent pointer
Ground pass vector
Set texture HW gamma correction
n | Texture name |
g | True to enable gamma correction, false to disable it |
Skydome material
Vertex struct
Constructor
s | Parent SkyX pointer |
Destructor
Create our water mesh, geometry, entity, etc...
Remove all resources
Update geometry
cam | Camera |
Get mesh
Get sub mesh
Get entity
Get material name
Set mesh material
MaterialName | The material name |
Get hardware vertex buffer reference
Get hardware index buffer reference
Get the Ogre::SceneNode pointer where Hydrax mesh is attached
Is _createGeometry() called?
Set geometry parameters
Steps | Sphere number of steps |
Circles | Spehere number of circes |
Get number of steps
Get number of circles
Set under-horizon rendering params
UnderHorizonCircles | Number of circles of SkyX::MeshManager::mCircles reserved for the under-horizont geometry part, 0 means not under-horizon rendering |
UnderHorizonFading | true/false to fade or not the under-horizon sky |
UnderHorizonFadingExponent | Exponent of the fading, pow(vertex_angle, exp), 1=linear |
UnderHorizonFadingMultiplier | Fading multiplier, opacity = saturate(pow(opacity,fading_exp)*fading_multiplier) |
Get under-horizon circles
Get under-horizon fading
Get under-horizon exponent fading
Get under-horizon fading multiplier
Set radius multiplier
RadiusMultiplier | Radius multiplier |
Get skydome radius
c | Camera |
Create geometry
Main SkyX pointer
Has been create() already called?
Ogre::MeshPtr
Ogre::Submesh pointer
Ogre::Entity pointer
Vertex buffer
Vertices
Index buffer
Ogre::SceneNode pointer
Steps
Circles
Under-horizon rendering
Under-horizon fading
Under-horizon exponent fading (1=linear fading)
Under-horizon fading multiplier: opacity = saturate(pow(opacity,fading_exp)*fading_multiplier)
Radius multiplier
Material name
Constructor
s | Parent SkyX pointer |
Destructor
Create all resources
Remove all resources
Update moon phase
phase | Moon phase in [-1,1] range, where -1 means fully covered Moon, 0 clear Moon and 1 fully covered Moon |
Update geometry
c | Camera |
Get moon billboard
Get moon scene node
Set moon size
MoonSize | Moon size |
Get moon size
Set moon halo intensity
MoonHaloIntensity | Moon halo intensity |
Get moon halo intensity
Set moon halo strength
MoonHaloStrength | Moon halo strength (linear/exponential fading) |
Get moon halo strength
Is moon manager created?
Update moon bounds
c | Camera |
SkyX parent pointer
Moon billboard
Moon scene node
Is moon manager created?
Moon size
Moon halo intensity
Moon halo strength
Moon material
True if visible
Constructor
s | Parent SkyX pointer |
Destructor
Create all resources
radius | Volumetric cloud field radius, -1 to use current VClouds::mGeometrySettings::Radius |
Update
timeSinceLastFrame | Time since last frame |
Notify camera render, to be invoked per-camera and per-frame
c | Rendering camera |
Remove all resources
Set ambient gradient
AmbientGradient | Ambient color gradient |
Get ambient color gradient
Set sun gradient
SunGradient | Sun color gradient |
Get sun color gradient
Set height parameters
Height | x = Cloud field y-coord start, y: Field height (both in world coordinates) |
Get height parameters
Set autoupdate true if you want to update volumetric clouds wind depending of the SkyX time multiplier
Get autoupdate
Set wind speed
WindSpeed | Wind speed |
Get wind speed
Get VClouds
Is moon manager created?
Update wind speed config
Set light parameters
SkyX parent pointer
VClouds pointer
Height parameters, x = Cloud field y-coord start, y: Field height (both in world coordinates)
Wind speed
Autoupdate wind speed depending of skyx time multiplier?
Is vclouds manager created?
Current time since last frame
Ambient and Sun color gradients
References SkyX().
|
inline |
void SkyX::create | ( | ) |
Create SkyX.
bool SkyX::frameStarted | ( | const Ogre::FrameEvent & | evt | ) |
Frame started.
evt | Frame event |
|
inline |
|
inline |
|
inline |
References mCloudsEnabled.
|
inline |
|
inline |
|
inline |
|
inline |
References mEnabled.
|
inline |
|
inline |
Get infinite cmaera far clip distance.
References mInfiniteCameraFarClipDistance.
|
inline |
|
inline |
|
inline |
|
inline |
References mMoonEnabled.
|
inline |
|
inline |
Get moon phase.
References mMoonPhase.
|
inline |
|
inline |
|
inline |
|
inline |
Get time.
References mTime.
|
inline |
|
inline |
|
inline |
|
inline |
Is the starfield enable?
References mStarfield.
|
inline |
void SkyX::notifyCameraRender | ( | Ogre::Camera * | c | ) |
Notify camera render (to be invoked per camera and per frame)
c | Camera |
void SkyX::preViewportUpdate | ( | const Ogre::RenderTargetViewportEvent & | evt | ) |
Fired before update a render target viewport.
evt | Render target viewport event |
void SkyX::remove | ( | ) |
Remove SkyX (free resources)
void SkyX::setCloudsEnabled | ( | bool | _enabled | ) |
References mCloudsEnabled, and mVCloudsManager.
Referenced by setEnabled().
|
inline |
Set controller.
c | Controller |
References SkyX::Controller::getDeleteBySkyX(), and mController.
|
inline |
Set eastn direction.
ed | East direction, in X,Y world coords (must be normalized) |
References mEastDirection, and update().
void SkyX::setEnabled | ( | bool | _enabled | ) |
References mEnabled, setCloudsEnabled(), and setMoonEnabled().
|
inline |
Set infinite camera far clip distance.
d | Infinite camera far clip distance |
References mInfiniteCameraFarClipDistance.
void SkyX::setLightingMode | ( | const LightingMode & | lm | ) |
Set lighting mode.
lm | Lighting mode |
void SkyX::setMoonEnabled | ( | bool | _enabled | ) |
References mMoonEnabled, and mMoonManager.
Referenced by setEnabled().
|
inline |
Set moon phase.
mp | Moon phase in [-1,1] range, where -1 means fully covered Moon, 0 clear Moon and 1 fully covered Moon |
References mMoonPhase.
void SkyX::setRenderQueueGroups | ( | const RenderQueueGroups & | rqg | ) |
Set render queue groups.
rqg | Render queue groups |
void SkyX::setStarfieldEnabled | ( | const bool & | Enabled | ) |
Set the starfield enabled/disabled.
Enabled | true for starfield, false for not |
|
inline |
|
inline |
Set time multiplier.
TimeMultiplier | Time multiplier |
References mTimeMultiplier, and mVCloudsManager.
void SkyX::setVisible | ( | const bool & | visible | ) |
Set visible.
visible | true to set SkyX visible, false to hide it |
SkyX::SkyX | ( | Ogre::SceneManager * | sm, |
Controller * | c | ||
) |
void SkyX::update | ( | const Ogre::Real & | simDeltaTime | ) |
Basic controller class.
Update (to be invoked per frame)
Constructor
deleteBySkyX | true to automatically destroy the controller by SkyX, false otherwiseUpdate controller |
simDeltaTime | Simulation delta time (It's not the time since last frame, it's the delta simulation time, one time the time since last frame has been multiplied by the time multiplier) |
timeSinceLastFrame | Time elapsed since last frame |
Referenced by gazebo::sensors::ForceTorqueSensor::ConnectUpdate(), gazebo::sensors::SonarSensor::ConnectUpdate(), gazebo::sensors::ForceTorqueSensor::DisconnectUpdate(), gazebo::sensors::SonarSensor::DisconnectUpdate(), setEastDirection(), and setTime().
AtmosphereManager* SkyX::mAtmosphereManager |
Atmosphere manager.
Referenced by getAtmosphereManager().
Ogre::Camera* SkyX::mCamera |
Current rendering camera.
Referenced by getCamera(), and SkyX::VClouds::VClouds::getCamera().
bool SkyX::mCloudsEnabled |
True if clouds are enabled.
Referenced by getCloudsEnabled(), and setCloudsEnabled().
CloudsManager* SkyX::mCloudsManager |
Clouds manager.
Referenced by getCloudsManager().
Controller* SkyX::mController |
Referenced by getController(), and setController().
bool SkyX::mCreated |
Ogre::Vector2 SkyX::mEastDirection |
East direction (in X,Z world coords)
Referenced by getEastDirection(), and setEastDirection().
bool SkyX::mEnabled |
True if skyx is enabled.
Referenced by getEnabled(), SkyX::VClouds::LightningManager::isEnabled(), and setEnabled().
GPUManager* SkyX::mGPUManager |
GPU manager.
Referenced by getGPUManager().
Ogre::Real SkyX::mInfiniteCameraFarClipDistance |
Infinite camera far clip distance.
Referenced by getInfiniteCameraFarClipDistance(), and setInfiniteCameraFarClipDistance().
Ogre::Real SkyX::mLastCameraFarClipDistance |
Last camera far clip distance.
Ogre::Vector3 SkyX::mLastCameraPosition |
Last camera position.
LightingMode SkyX::mLightingMode |
Lighting mode.
Referenced by getLightingMode().
MeshManager* SkyX::mMeshManager |
Mesh manager.
Referenced by getMeshManager().
Ogre::Vector3 SkyX::mMoonDirection |
Moon direction.
Referenced by getMoonDirection().
bool SkyX::mMoonEnabled |
True if moon is enabled.
Referenced by getMoonEnabled(), and setMoonEnabled().
MoonManager* SkyX::mMoonManager |
Moon manager.
Referenced by getMoonManager(), and setMoonEnabled().
Ogre::Real SkyX::mMoonPhase |
Moon phase.
Referenced by getMoonPhase(), and setMoonPhase().
RenderQueueGroups SkyX::mRenderQueueGroups |
Render queue groups.
Referenced by getRenderQueueGroups(), and SkyX::VClouds::VClouds::getRenderQueueGroups().
Ogre::SceneManager* SkyX::mSceneManager |
Scene manager.
Referenced by getSceneManager(), and SkyX::VClouds::VClouds::getSceneManager().
bool SkyX::mStarfield |
Enable starfield?
Referenced by isStarfieldEnabled().
Ogre::Vector3 SkyX::mSunDirection |
Sun direction.
Referenced by getSunDirection(), SkyX::VClouds::VClouds::getSunDirection(), and SkyX::VClouds::VClouds::setSunDirection().
Ogre::Vector3 SkyX::mTime |
Ogre::Real SkyX::mTimeMultiplier |
Time multiplier.
Referenced by getTimeMultiplier(), and setTimeMultiplier().
Ogre::Real SkyX::mTimeOffset |
Time offset.
Referenced by _getTimeOffset().
VCloudsManager* SkyX::mVCloudsManager |
Volumetric clouds manager.
Referenced by getVCloudsManager(), setCloudsEnabled(), and setTimeMultiplier().
bool SkyX::mVisible |
Is SkyX visible?
Referenced by isVisible(), and SkyX::VClouds::VClouds::isVisible().
Ogre::uint8 SkyX::skydome |
Skydome render queue group (Note: Moon = skydome_render_queue+1)
Ogre::uint8 SkyX::vclouds |
VClouds render queue group.
Ogre::uint8 SkyX::vcloudsLightnings |
VClouds lightnings render queue group.