![]() |
VR-Forces Developer's Guide
|

Public Member Functions | |
| DtTritonDrawable (makVrv::DtDe &de, DtTritonManager &tritonManager) | |
| virtual void | setUpEnvironment () |
| virtual void | setUpOceanMask () |
| virtual Triton::Ocean * | ocean () |
| virtual Triton::Environment * | environment () |
| virtual void | drawImplementation (osg::RenderInfo &renderInfo) const |
| virtual bool | isInitialized () const |
| virtual void | setAllowUnderwaterEffects (bool allow) |
| virtual bool | allowUnderwaterEffects () const |
| virtual void | releaseGLObjects (osg::State *state=0) const |
| virtual void | planarReflectionCameras (std::vector< osg::ref_ptr< const DtPlanarReflectionCamera >> &planarReflectionCameras) const |
| virtual osg::ref_ptr < DtPlanarReflectionCamera > | planarReflectionCamera (osg::Camera *osgCamera) const |
| virtual const DtTritonRenderingParameters & | renderingParameters (void) const |
| virtual DtTritonRenderingParameters & | renderingParameters (void) |
| virtual void | setUnderwaterFogColor (const Vector4_32 &color) |
| virtual const Vector4_32 & | underwaterFogColor () const |
| virtual void | setUnderwaterVisibility (double visibility) |
| virtual double | underwaterVisibility () const |
| virtual osg::Group * | getTritonGeode () |
| virtual const osg::Group * | getTritonGeode () const |
Public Attributes | |
| boost::signalslib::signal< void()> | signal_postInitialize |
| boost::signalslib::signal< void()> | signal_environmentToBeDestroyed |
Protected Types | |
| typedef std::map < osg::GraphicsContext *, void * > | ContextToHandleMap |
Protected Member Functions | |
| virtual | ~DtTritonDrawable () |
| virtual void | shaderUpdateLightUniforms (osg::RenderInfo &info, const osg::Camera *osgCamera, DtTritonGroupTcsUserData *userData, double windSpeed) const |
| virtual void | slot_preObserverUpdate () |
| virtual bool | setUpOcean () |
| virtual void | cleanup (void) |
| virtual void | slot_reloadShader () |
| virtual void | applyLighting (osg::RenderInfo &info, const osg::Camera *osgCamera, DtTritonGroupTcsUserData *userData, double windSpeed) const |
| virtual bool | applyQuality () const |
| virtual void | applySpectralModel (void) const |
| virtual void | updateShader (osg::Node *node, osg::State &state) const |
| virtual void | onPostTick (void) |
| virtual void | prepEnvironmentMap (const DtOsgSkyObject *skyObject, const osg::Camera *camera, osg::State &state, DtTritonGroupTcsUserData *userData) const |
| virtual void | prepHeightMapAndBreakingWavesMaps (const DtHeightMapManager *heightMapMgr, osg::State &state, osg::RenderInfo &renderInfo, DtTritonGroupTcsUserData *userData, bool forceUpdate) const |
| virtual void | prepReflectionMap (osg::ref_ptr< DtPlanarReflectionCamera > planarReflectionCamera, const osg::State &state, double windSpeed, DtTritonGroupTcsUserData *userData) const |
| virtual void | setupTritonLightFogVisibility (const osg::Camera *camera, DtOsgSkyObject *skyObject, std::pair< bool, float > isAboveWater, bool skyEnabled, DtTritonGroupTcsUserData *userData) const |
| virtual Vector4_32 | calculateUnderWaterFogColor (Vector4_32 ambientLight, float cameraDepth) const |
| virtual std::pair< bool, float > | isCameraAboveWater (Triton::Ocean *ocean, const Triton::Environment *environment, const Triton::Camera *camera) const |
| virtual void | setUpTritonParticlesAdditiveBlend (void) const |
| virtual void | setUpGodRaysFading (const DtOsgCullVisitorParameters *params, DtTritonGroupTcsUserData *userData) const |
| virtual void | setUpZoomLevel (const DtOsgCullVisitorParameters *params, DtTritonGroupTcsUserData *userData) const |
| virtual void | setUpViewport (Triton::Camera *tritonCamera, osg::Camera *camera) const |
| virtual void | restoreOsgState (osg::State &state) const |
| virtual void | updatePlanarReflectionCamera (const Vector4_32 &fogColor, bool skyEnabled, DtTritonGroupTcsUserData *userData) const |
| virtual void | addGraphicsContextIfNecessary (osg::GraphicsContext *key) |
| virtual const osg::StateSet * | shadowTechniqueStateSet (const osg::Camera *osgCamera) const |
| virtual void | updateSunIntensity (const osg::Camera *osgCamera, DtTritonGroupTcsUserData *userData, double windSpeed) const |
| virtual void | updateLighingBasedonSensorFX (const osg::Camera *osgCamera, DtTritonGroupTcsUserData *userData) const |
| virtual void | syncHeightMapToGpu (const DtHeightMapManager *heightMapMgr, const osg::State &state, const osg::Camera *camera, DtTritonGroupTcsUserData *userData) const |
| virtual void | logTritonInitializationInfo (void) const |
| virtual void | updateBreakingWavesParametersInTriton (void) |
| virtual void | slot_hdrEnabledChanged (bool) |
Private Member Functions | |
| DtTritonDrawable ()=delete | |
| DtTritonDrawable (const DtTritonDrawable &drawable)=delete | |
| DtTritonDrawable & | operator= (const DtTritonDrawable &)=delete |
Friends | |
| class | DtTritonImGuiHelper |
|
protected |
| makVrv::DtTritonDrawable::DtTritonDrawable | ( | makVrv::DtDe & | de, |
| DtTritonManager & | tritonManager | ||
| ) |
CTOR.
|
protectedvirtual |
Destructor.
|
privatedelete |
Default Constructor not implemented.
|
privatedelete |
Copy Constructor not implemented – Copy not allowed use clone instead.
|
privatedelete |
Assignment Operator not implemented – Copy not allowed use clone.
|
virtual |
set up the environment
|
virtual |
setup the ocean mask if it has not been setup yet.
|
virtual |
Return the underlying Triton::Ocean object.
|
virtual |
Return the underlying Triton::Environment object.
|
virtual |
Perform drawing of the Ocean from the render thread.
|
virtual |
Set/get the base (unlit) fog color when underwater.
|
virtual |
Set/get the base (unlit) fog color when underwater.
|
virtual |
Set/get the visibility when underwater.
|
virtual |
Set/get the visibility when underwater.
|
virtual |
Whether Triton has been fully initialized (after its first frame.)
|
virtual |
Whether underwater fog etc. is triggered when eye goes under the water surface.
|
virtual |
Whether underwater fog is enabled.
|
virtual |
Destroy the openGL objects.
|
virtual |
Get all available ones. Used by the imgui helper.
|
virtual |
accessor for the DtPlanarReflection object for a camera. SensorFX needs access to setup the shaders correctly.
|
virtual |
accessor for the triton geode object (parent of the triton drawable)
|
virtual |
accessor for the triton geode object (parent of the triton drawable)
|
virtual |
get the rendering parameters (const)
|
virtual |
get the rendering parameters (cnon-const)
|
protectedvirtual |
update the light uniforms for a particular shader
|
protectedvirtual |
setup the IMGui and read back any information from ImGui widgets
|
protectedvirtual |
setup the triton drawable based on the render info called the first time the ocean is rendered or if the shaders are regenerated.
|
protectedvirtual |
called by the destructor or releaseGL objects to cleanup this drawable's state
|
protectedvirtual |
connected to the shared state reload shader signal in order to clean up the triton shaders
|
protectedvirtual |
setup and apply the lighting for this frame
|
protectedvirtual |
update the drawable to use the current quality setting for the triton ocean
|
protectedvirtual |
change spectral model if necessary
|
protectedvirtual |
called every time the drawable renders to check if the shader state has changed and if so it updates the shaders
|
protectedvirtual |
connected to the post tick signal and is used to call the triton ocean's post draw function
|
protectedvirtual |
setup the environment map by getting it from the sky object
|
protectedvirtual |
utility function for setting up the height map and breaking wave maps for rendering.
|
protectedvirtual |
utility function for setting up the reflection map for rendering.
|
protectedvirtual |
calculate the current fog value based on if the camera is under the water or not
|
protectedvirtual |
Calculate the final underwater fog color based on the current ambient color and depth.
|
protectedvirtual |
Check if the camera is above or below the water line. Returns true/false and the depth of the camera if it is below the water 0 otherwise Modified version of isCameraAboveWater in triton.
|
protectedvirtual |
sets up the particle blend setting in triton based on if HDR is on or off
|
protectedvirtual |
sets up the amount to fade the god rays based on the camera movement
|
protectedvirtual |
set the triton internal zoom level based on the cull params zoom level or use the triton override value if it is enabled.
|
protectedvirtual |
setup the triton camera's viewport based on the current osg camera's viewport
|
protectedvirtual |
restore the opengl state to match the expected osg opengl state
|
protectedvirtual |
update the planar refelction camera, pass it the mirror matrix and update the fog color
|
protectedvirtual |
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()
|
protectedvirtual |
get the state set for the DtOsgShadowTechnique for the passed in osg camera
|
protectedvirtual |
Update the sun intensity for triton environment based upon silverlining/skyobject & hdr.
|
protectedvirtual |
Update the directional light position and intensity if SensorFX has been enabled.
|
protectedvirtual |
sends the height map to the gpu .
|
protectedvirtual |
log once
|
protectedvirtual |
update settings in triton
|
protectedvirtual |
|
friend |
so that slot_reloadShader can be accessed
| boost::signalslib::signal<void()> makVrv::DtTritonDrawable::signal_postInitialize |
Emitted when Triton has been initialized.
| boost::signalslib::signal<void()> makVrv::DtTritonDrawable::signal_environmentToBeDestroyed |
Emitted when the Triton environment is to be destroyed.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
dereferenced
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |