|
| | DtTritonDrawable (makVrv::DtDe &de, const DtTritonManager &tritonManager, DtEnvironmentInfo &environmentInfo, bool geocentric, osg::TextureCubeMap *environmentMap=NULL, DtTritonManager::TritonQuality tritonQuality=DtTritonManager::TritonQuality_Good) |
| | CTOR. More...
|
| |
| virtual bool | isSameKindAs (const Object *obj) const |
| | osg overridden functions for creating a derived class More...
|
| |
| virtual Object * | cloneType () const |
| | osg overridden functions for creating a derived class More...
|
| |
| virtual Object * | clone (const osg::CopyOp ©op) const |
| | osg overridden functions for creating a derived class More...
|
| |
| virtual Triton::Ocean * | ocean () |
| | Return the underlying Triton::Ocean object. More...
|
| |
| virtual const Triton::Camera * | closestCameraTo (const DtVector &position) const |
| | Closest triton camera, to the point in question. More...
|
| |
| virtual Triton::Environment * | environment () |
| | Return the underlying Triton::Environment object. More...
|
| |
| virtual const Triton::Camera * | tritonCamera (const osg::Camera *osgCamera) const |
| | The triton camera corresponding to osg camera. More...
|
| |
| virtual void | setBeach (const osg::Vec3 &beachOrigin, const osg::Vec3 &normal) |
| | Pass info to Triton about the local ocean depth and floor slope. More...
|
| |
| virtual void | syncHeightMapToGpu (DtHeightMapManager *heightMapMgr, const osg::State *state, const osg::Camera *camera) |
| | sends the height map to the gpu . More...
|
| |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| | Perform drawing of the Ocean from the render thread. More...
|
| |
| virtual void | setPlanarReflectionsEnabled (bool enabled) |
| | Toggle use of planar reflections of local objects. More...
|
| |
| virtual bool | planarReflectionsFlag () const |
| |
| virtual void | setMaxReflectionWindSpeed (double metersPerSecond) |
| | Set the wind speed at which we blend out planar reflections (default 20 m/s) More...
|
| |
| virtual bool | isInitialized () const |
| | Whether Triton has been fully initialized (after its first frame.) More...
|
| |
| virtual void | setAllowUnderwaterEffects (bool allow) |
| | Whether underwater fog etc. More...
|
| |
| virtual bool | allowUnderwaterEffects () const |
| | Whether underwater fog is enabled. More...
|
| |
| virtual void | enableReflections (bool enabled) |
| | Temporarily enable or disable the planar reflection camera(s). More...
|
| |
| virtual void | releaseGLObjects (osg::State *state=0) const |
| | Destroy the openGL objects. More...
|
| |
| virtual void | setHeightMapChanged () |
| | Notify the drawable of an updated height map. More...
|
| |
| virtual void | setBreakingWavesMapChanged () |
| | Notify the drawable of an updated breaking waves map. More...
|
| |
virtual osg::ref_ptr
< DtPlanarReflection > | getPlanarReflection (osg::Camera *camera) |
| | accessor for the DtPlanarReflection object for a camera. More...
|
| |
| virtual DtHeightMapManager * | getOrCreateHeightMapManager (osg::RenderInfo &renderInfo) |
| | get or create the height map manager for the current camera based on the renderInfo More...
|
| |
virtual
DtTritonBreakingWavesMapManager * | getOrCreateBreakingWavesMapManager (osg::RenderInfo &renderInfo) |
| | get or create the breaking waves map manager for the current camera based on the renderInfo More...
|
| |
| virtual void | setWindSpeed (double windSpeed) |
| | set the current wind speed to use More...
|
| |
| virtual bool | geocentricFlag () |
| | get whether or not the ocean is using the geocentric coordinate sysetem or not More...
|
| |
| virtual void | setOceanMaskTextureEnabled (bool myOceanMaskTextureEnabled) |
| | set/get whether or not to enable the ocean mask used by DtTritonManager. More...
|
| |
| virtual bool | isOceanMaskTextureEnabled () const |
| |
virtual const
DtTritonRenderingParameters & | renderingParameters (void) const |
| | get the rendering parameters (const) More...
|
| |
virtual
DtTritonRenderingParameters & | renderingParameters (void) |
| | get the rendering parameters (cnon-const) More...
|
| |
|
| virtual void | setBreakingWaveAmplitude (float meters) |
| | Set/get height of breaking waves at shorelines. Set to 0 to disable. More...
|
| |
| 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! More...
|
| |
| 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. More...
|
| |
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. More...
|
| |
| virtual bool | breakingWavesMap () const |
| |
|
| virtual void | setUnderwaterFogColor (const osg::Vec4 &color) |
| | Set/get the base (unlit) fog color when underwater. More...
|
| |
| virtual const osg::Vec4 & | underwaterFogColor () const |
| |
|
| virtual void | setUnderwaterVisibility (double visibility) |
| | Set/get the visibility when underwater. More...
|
| |
| virtual double | underwaterVisibility () const |
| |
|
| virtual void | setWaterVisibility (double visibility) |
| | The visibility of the water when viewed from above (affects the transparency) More...
|
| |
| virtual double | waterVisibility () const |
| |
|
| virtual void | setSurgeDepth (float depth) |
| | The depth at which we start dampening wave displacement. More...
|
| |
| virtual float | surgeDepth () const |
| |
|
| virtual void | setHeightMapResolution (float metersPerTexel) |
| | Get/set the resolution of the height map for shallow water effects (meters per texel) More...
|
| |
| virtual float | heightMapResolution () const |
| |
|
| virtual void | setBreakingWavesMapResolution (float metersPerTexel) |
| | Get/set the resolution of the breaking waves direction map (meters per texel) More...
|
| |
| virtual float | breakingWavesMapResolution () const |
| |
|
| virtual osg::Group * | getTritonGeode () |
| | accessor for the triton geode object More...
|
| |
| virtual const osg::Group * | getTritonGeode () const |
| |
|
| virtual | ~DtTritonDrawable () |
| | Destructor. More...
|
| |
| virtual void | shaderUpdateLightUniforms (osg::RenderInfo &info, void *context, Triton::Camera *camera) const |
| | update the light uniforms for a particular shader More...
|
| |
| virtual void | updateImguiAndConstantsOffOfImgui () |
| | setup the IMGui and read back any information from ImGui widgets More...
|
| |
| virtual void | updateImguiHeightMapDebugOverlay (bool needUpdate, osg::RenderInfo &renderInfo) |
| | create the height map debug overlay More...
|
| |
| virtual bool | setup (osg::RenderInfo &renderInfo) |
| | setup the triton drawable based on the render info called the first time the ocean is rendered or if the shaders are regenerated. More...
|
| |
| virtual void | cleanup (void) |
| | called by the destructor or releaseGL objects to cleanup this drawable's state More...
|
| |
| virtual void | removePlanarReflections () |
| | tell the planar reflection manager to cleanup all its reflections More...
|
| |
| virtual void | slot_reloadShader () |
| | connected to the shared state reload shader signal in order to clean up the triton shaders More...
|
| |
| virtual void | initShaderUniformHandles (void *context, Triton::Camera *camera) const |
| | initialize the uniform handles for the current context More...
|
| |
| virtual void | applyLighting (osg::RenderInfo &info, void *context, Triton::Camera *camera) const |
| | setup and apply the lighting for this frame More...
|
| |
| virtual void | applyQuality () const |
| | update the drawable to use the current quality setting for the triton ocean More...
|
| |
| virtual void | setUpNearFarIfNecessary (void) const |
| | update clip planes if needed(e.g. if reverse z changed somehow) More...
|
| |
| virtual void | updateShader (osg::Node *node, osg::State &state, void *context, Triton::Camera *camera) const |
| | called every time the drawable renders to check if the shader state has changed and if so it updates the shaders More...
|
| |
| virtual void | slot_heightMapChanged (DtHeightMapManager &manager) |
| | Handles the signal for when a height map changes. More...
|
| |
| virtual void | slot_heightMapCameraChanged () |
| | Handles the signal for when an associated height map camera changes. More...
|
| |
| virtual void | flushInvalidCameras () |
| | check if the osg::Camera still is valid. If not then destroy the corrisponding triton camera More...
|
| |
| virtual void | onPostTick (void) |
| | connected to the post tick signal and is used to call the triton ocean's post draw function More...
|
| |
| virtual void | prepEnvironmentMap (const DtOsgSkyObject *skyObject, const osg::Camera *camera, const osg::State &state) const |
| | setup the environment map by getting it from the sky object More...
|
| |
| virtual void | prepHeightMapAndBreakingWavesMaps (DtHeightMapManager *heightMapMgr, DtTritonBreakingWavesMapManager *breakingWavesMapMgr, const osg::State &state, osg::RenderInfo &renderInfo) const |
| | utility function for setting up the height map and breaking wave maps for rendering. More...
|
| |
| virtual void | prepReflectionMap (osg::ref_ptr< DtPlanarReflection > planarReflectionCamera, const osg::State &state) const |
| | utility function for setting up the reflection map for rendering. More...
|
| |
| virtual void | setupTritonLightFogVisibility (const osg::Camera *camera, DtOsgSkyObject *skyObject, bool isAboveWater, bool skyEnabled) const |
| | calculate the current fog value based on if the camera is under the water or not More...
|
| |
| virtual void | setUpTritonParticlesAdditiveBlend (void) const |
| | sets up the particle blend setting in triton based on if HDR is on or off More...
|
| |
| virtual void | setUpGodRaysFading (const DtOsgCullVisitorParameters *params) const |
| | sets up the amount to fade the god rays based on the camera movement More...
|
| |
| virtual void | setUpZoomLevel (const DtOsgCullVisitorParameters *params) const |
| | set the triton internal zoom level based on the cull params zoom level or use the triton override value if it is enabled. More...
|
| |
| virtual void | updatePrecipitation (DtOsgSkyObject *skyObject, bool isAboveWater) const |
| | update the precipitation for the sky object based on if the camera is above or below the water. More...
|
| |
| virtual void | setUpViewport (Triton::Camera *tritonCamera, osg::Camera *camera) const |
| | setup the triton camera's viewport based on the current osg camera's viewport More...
|
| |
| virtual void | checkGlErrors (void) const |
| | check for any gl errors and if it is a debug build then print out the errors. More...
|
| |
| virtual void | restoreOsgState (osg::State &state) const |
| | restore the opengl state to match the expected osg opengl state More...
|
| |
| virtual void | updatePlanarReflectionCamera (DtPlanarReflection *planarReflection, bool skyEnabled) const |
| | update the planar refelction camera, pass it the mirror matrix and update the fog color More...
|
| |
| virtual void | slot_windowToBeDestroyed (DtWindow *window) |
| | slot for when a window is about to be destroyed so we can let triton know to clean up the VAO's More...
|
| |
| virtual void | addGraphicsContextIfNecessary (osg::GraphicsContext *key) |
| | gets the current graphics context handle and stores it in a map with the osg GraphicsContext so we can clean up VAO's correctly needs to have the osg::GraphicsContext be the current active context so it should really only be called from a drawImplemenation() More...
|
| |
| virtual void | setUpOceanMaskIfNecessary () |
| | setup the ocean mask if it has not been setup yet. More...
|
| |
| virtual const osg::StateSet * | shadowTechniqueStateSet (const osg::Camera *osgCamera) const |
| | get the state set for the DtOsgShadowTechnique for the passed in osg camera More...
|
| |
| virtual void | updateSunIntensity (void) const |
| | Update the sun intensity for triton environment based upon silverlining/skyobject & hdr. More...
|
| |
| virtual void | updateLighingBasedonSensorFX (osg::Camera *osgCamera) const |
| | Update the directional light position and intensity if SensorFX has been enabled. More...
|
| |
|
| virtual void | setSpecularThreshold (float threshold) |
| | What percent cloudiness causes the ocean not to show specular. More...
|
| |
| virtual float | specularThreshold () const |
| |
An OSG Drawable representing Triton's infinite ocean.
/ingroup vrvTriton