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

Public Types | |
| enum | TritonQuality { TritonQuality_Good, TritonQuality_Better, TritonQuality_Best } |
Public Member Functions | |
| DtTritonDrawable (makVrv::DtDe &de, const DtTritonManager &tritonManager, DtEnvironmentInfo &environmentInfo, bool geocentric, osg::TextureCubeMap *cubeMap=NULL) | |
| 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 (osg::Vec3 beachOrigin, 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 (TritonQuality quality) |
| Set quality of wave simulation - "good" yields best performance but least detail, "best" favors quality over performance. | |
| virtual 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.) | |
| 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. | |
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) const |
| 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 (void) |
| void | cleanup (void) |
| osg::Node * | createMirroredWorldGraph (makVrv::DtOsgRenderer &osgRenderer, const osg::Matrix &localToWorld, const osg::Vec3 currentPos) |
| void | computeReflectionMatrix (const osg::Vec3 ¤tPosition) |
| void | GetShaderUniformHandles () const |
| void | applyLighting (osg::RenderInfo &info) const |
| void | applyQuality () const |
| void | updateShader (osg::Node *node, const osg::State &state) const |
| void | computeReflectionBlend (const osg::Vec3 ¤tPosition) |
| void | adjustDisplacementDampingDistance () |
| 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 * | cubeMap = NULL |
||
| ) |
CTOR.
Referenced by clone(), and cloneType().
|
protectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
References DtTritonDrawable(), myDe, myEnvironmentInfo, myGeocentricFlag, and myTritonManager.
|
inlinevirtual |
References DtTritonDrawable(), myDe, myEnvironmentInfo, myGeocentricFlag, and myTritonManager.
|
inlinevirtual |
Return the underlying Triton::Ocean object.
References myOcean.
|
inlinevirtual |
Return the underlying Triton::Environment object.
References myEnvironment.
|
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)
References myMaxWindForReflections.
|
inlinevirtual |
Set the base (unlit) fog color when underwater.
References myUnderwaterFogColor.
|
inlinevirtual |
References myUnderwaterFogColor.
|
inlinevirtual |
Set the visibility when underwater.
References myUnderwaterVisibility.
|
inlinevirtual |
References myUnderwaterVisibility.
|
inlinevirtual |
The visibility of the water when viewed from above (affects the transparency)
References myDefaultVisibility.
|
inlinevirtual |
References myDefaultVisibility.
|
inlinevirtual |
The depth at which we start dampening wave displacement.
References mySurgeDepth.
|
inlinevirtual |
References mySurgeDepth.
|
inlinevirtual |
Whether Triton has been fully initialized (after its first frame.)
References myInitializationComplete.
|
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.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| boost::signal<void ()> makVrv::DtTritonDrawable::signal_postInitialize |
Emitted when Triton has been initialized.
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by environment().
|
protected |
Referenced by ocean().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by clone(), and cloneType().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by setMaxReflectionWindSpeed().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by getWaterVisibility(), and setWaterVisibility().
|
protected |
Referenced by getSurgeDepth(), and setSurgeDepth().
|
protected |
Referenced by getIsInitialized().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by getUnderwaterFogColor(), and setUnderwaterFogColor().
|
protected |
Referenced by getUnderwaterVisibility(), and setUnderwaterVisibility().
|
protected |
|
protected |
Referenced by clone(), and cloneType().
|
protected |
Referenced by clone(), and cloneType().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
Referenced by clone(), and cloneType().