![]() |
VR-Forces 4.6 Class Documentation
|
An OSG Drawable representing Triton's infinite ocean. More...

Public Member Functions | |
| DtTritonDrawable (makVrv::DtDe &de, const DtTritonManager &tritonManager, DtEnvironmentInfo &environmentInfo, bool geocentric, osg::TextureCubeMap *environmentMap=NULL, DtTritonManager::TritonQuality tritonQuality=DtTritonManager::TritonQuality_Good) | |
| CTOR. | |
| virtual bool | isSameKindAs (const Object *obj) const |
| virtual Object * | cloneType () const |
| virtual Object * | clone (const osg::CopyOp ©op) const |
| virtual Triton::Ocean * | ocean () |
| Return the underlying Triton::Ocean object. | |
| virtual Triton::Environment * | environment () |
| Return the underlying Triton::Environment object. | |
| virtual void | setBeach (const osg::Vec3 &beachOrigin, const osg::Vec3 &normal) |
| Pass info to Triton about the local ocean depth and floor slope. | |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| Perform drawing of the Ocean from the render thread. | |
| virtual void | setPlanarReflections (bool enabled) |
| Toggle use of planar reflections of local objects. | |
| virtual bool | planarReflections () const |
| virtual void | setBreakingWaveAmplitude (float meters) |
| Set height of breaking waves at shorelines. Set to 0 to disable. | |
| virtual float | getBreakingWaveAmplitude () const |
| virtual void | setHeightMap (bool enabled) |
| Toggle use of automatically generated height maps for coastal effects Only enable if you have bathymetry and no sea-level ocean polygons in the database! | |
| virtual bool | heightMap () const |
| virtual void | setQuality (DtTritonManager::TritonQuality quality) |
| Set quality of wave simulation - "good" yields best performance but least detail, "best" favors quality over performance. | |
| virtual DtTritonManager::TritonQuality | getQuality () const |
| virtual void | setBreakingWavesMap (bool enabled) |
| Toggle use of shapefile-based breaking wave areas and directions If off, breaking waves will be everywhere and direction determined from bathymetry. | |
| virtual bool | breakingWavesMap () const |
| virtual void | setWaveDampingDistance (float meters) |
| Sets distance at which waves go away to fight aliasing. | |
| virtual float | waveDampingDistance () const |
| virtual void | setMaxReflectionWindSpeed (double metersPerSecond) |
| Set the wind speed at which we blend out planar reflections (default 20 m/s) | |
| virtual void | setUnderwaterFogColor (const osg::Vec4 &color) |
| Set the base (unlit) fog color when underwater. | |
| virtual const osg::Vec4 & | getUnderwaterFogColor () const |
| virtual void | setUnderwaterVisibility (double visibility) |
| Set the visibility when underwater. | |
| virtual double | getUnderwaterVisibility () const |
| virtual void | setWaterVisibility (double visibility) |
| The visibility of the water when viewed from above (affects the transparency) | |
| virtual double | getWaterVisibility () const |
| virtual void | setSurgeDepth (float depth) |
| The depth at which we start dampening wave displacement. | |
| virtual float | getSurgeDepth () const |
| virtual bool | getIsInitialized () const |
| Whether Triton has been fully initialized (after its first frame.) | |
| void | setAllowUnderwaterEffects (bool allow) |
| Whether underwater fog etc. | |
| bool | getAllowUnderwaterEffects () const |
| Whether underwater fog is enabled. | |
| virtual void | setHeightMapResolution (float metersPerTexel) |
| Get/set the resolution of the height map for shallow water effects (meters per texel) | |
| virtual float | getHeightMapResolution () const |
| virtual void | setBreakingWavesMapResolution (float metersPerTexel) |
| Get/set the resolution of the breaking waves direction map (meters per texel) | |
| virtual float | getBreakingWavesMapResolution () const |
| virtual void | enableReflections (bool enabled) |
| Temporarily enable or disable the planar reflection camera(s). | |
| virtual void | releaseGLObjects (osg::State *state=0) const |
| Destroy the openGL objects. | |
| void | heightMapChanged () |
| Notify the drawable of an updated height map. | |
| void | breakingWavesMapChanged () |
| Notify the drawable of an updated breaking waves map. | |
| osg::ref_ptr< DtPlanarReflection > | getPlanarReflection (osg::Camera *camera) |
| accessor for the DtPlanarReflection object for a camera. | |
| osg::Group * | getTritonGeode () |
| accessor for the triton geode object | |
| const osg::Group * | getTritonGeode () const |
Public Attributes | |
| boost::signal< void()> | signal_postInitialize |
| Emitted when Triton has been initialized. | |
Protected Member Functions | |
| void | shaderUpdateLightUniforms (osg::RenderInfo &info, osg::State &state, GLint shader, int shaderType) const |
| void | shaderUpdateViewMatrices (osg::State &state, GLint shader, int shaderType, const Matrix4_32 &view_matrix_32, const Matrix4_32 &view_inverse_transpose_matrix_32) const |
| void | updateCloudShadows (osg::State &state, GLint shader, int shaderType, GLboolean bIsCloudShadowActive, unsigned int cloudshadowTextureUnit, unsigned int cloudshadowTextureIndex, osg::Matrixf textureViewProjMatrix, unsigned int cloudshadowTextureUnit2, unsigned int cloudshadowTextureIndex2, osg::Matrixf textureViewProjMatrix2) const |
| void | updateOcean (double simTime) |
| void | GetShaderUniformHandles (GLint shader, int shaderType) const |
| osg::ref_ptr< DtPlanarReflection > | getOrCreatePlanarReflection (osg::RenderInfo &renderInfo) |
| osg::ref_ptr< DtPlanarReflection > | setupPlanarReflections (osg::RenderInfo &renderInfo) |
| DtTritonHeightMapManager * | getOrCreateHeightMapManager (osg::RenderInfo &renderInfo) |
| DtTritonBreakingWavesMapManager * | getOrCreateBreakingWavesMapManager (osg::RenderInfo &renderInfo) |
| void | setup (osg::RenderInfo &renderInfo) |
| void | cleanup (void) |
| void | removePlanarReflections () |
| osg::Node * | createReflectionWorldGraph (makVrv::DtOsgRenderer &osgRenderer, const osg::Matrix &localToWorld, const osg::Vec3 ¤tPos) |
| void | slot_reloadShader () |
| void | computeReflectionMatrix (const osg::Vec3 ¤tPosition) |
| void | GetShaderUniformHandles () const |
| void | applyLighting (osg::RenderInfo &info) const |
| void | applyQuality () const |
| void | updateShader (osg::Node *node, osg::State &state) const |
| void | computeReflectionBlend (const osg::Vec3 ¤tPosition) |
| void | adjustDisplacementDampingDistance (float viewMag) |
| void | updateReflectionCamFogColor (osg::Camera *reflectionCam, bool skyEnabled) const |
| slot for the fog color changing so we can set the clear color on the reflection maps to match | |
| void | setSpecularThreshold (float threshold) |
| What percent cloudiness causes the ocean not to show specular. | |
| float | specularThreshold () const |
| virtual | ~DtTritonDrawable () |
An OSG Drawable representing Triton's infinite ocean.
| makVrv::DtTritonDrawable::DtTritonDrawable | ( | makVrv::DtDe & | de, |
| const DtTritonManager & | tritonManager, | ||
| DtEnvironmentInfo & | environmentInfo, | ||
| bool | geocentric, | ||
| osg::TextureCubeMap * | environmentMap = NULL, |
||
| DtTritonManager::TritonQuality | tritonQuality = DtTritonManager::TritonQuality_Good |
||
| ) |
CTOR.
|
protectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Return the underlying Triton::Ocean object.
|
inlinevirtual |
Return the underlying Triton::Environment object.
|
virtual |
Pass info to Triton about the local ocean depth and floor slope.
|
virtual |
Perform drawing of the Ocean from the render thread.
|
virtual |
Toggle use of planar reflections of local objects.
|
virtual |
|
virtual |
Set height of breaking waves at shorelines. Set to 0 to disable.
|
virtual |
|
virtual |
Toggle use of automatically generated height maps for coastal effects Only enable if you have bathymetry and no sea-level ocean polygons in the database!
|
virtual |
|
virtual |
Set quality of wave simulation - "good" yields best performance but least detail, "best" favors quality over performance.
Default is good.
|
virtual |
|
virtual |
Toggle use of shapefile-based breaking wave areas and directions If off, breaking waves will be everywhere and direction determined from bathymetry.
|
virtual |
|
virtual |
Sets distance at which waves go away to fight aliasing.
|
virtual |
|
inlinevirtual |
Set the wind speed at which we blend out planar reflections (default 20 m/s)
|
inlinevirtual |
Set the base (unlit) fog color when underwater.
|
inlinevirtual |
|
inlinevirtual |
Set the visibility when underwater.
|
inlinevirtual |
|
inlinevirtual |
The visibility of the water when viewed from above (affects the transparency)
|
inlinevirtual |
|
inlinevirtual |
The depth at which we start dampening wave displacement.
|
inlinevirtual |
|
inlinevirtual |
Whether Triton has been fully initialized (after its first frame.)
|
inline |
Whether underwater fog etc.
is triggered when eye goes under the water surface
|
inline |
Whether underwater fog is enabled.
|
virtual |
Get/set the resolution of the height map for shallow water effects (meters per texel)
|
virtual |
|
virtual |
Get/set the resolution of the breaking waves direction map (meters per texel)
|
virtual |
|
virtual |
Temporarily enable or disable the planar reflection camera(s).
|
virtual |
Destroy the openGL objects.
| void makVrv::DtTritonDrawable::heightMapChanged | ( | ) |
Notify the drawable of an updated height map.
| void makVrv::DtTritonDrawable::breakingWavesMapChanged | ( | ) |
Notify the drawable of an updated breaking waves map.
| osg::ref_ptr<DtPlanarReflection> makVrv::DtTritonDrawable::getPlanarReflection | ( | osg::Camera * | camera | ) |
accessor for the DtPlanarReflection object for a camera.
SensorFX needs access to setup the shaders correctly.
| osg::Group* makVrv::DtTritonDrawable::getTritonGeode | ( | ) |
accessor for the triton geode object
| const osg::Group* makVrv::DtTritonDrawable::getTritonGeode | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
slot for the fog color changing so we can set the clear color on the reflection maps to match
|
protected |
What percent cloudiness causes the ocean not to show specular.
|
protected |
| boost::signal<void ()> makVrv::DtTritonDrawable::signal_postInitialize |
Emitted when Triton has been initialized.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |