17 #include <osg/ClipNode>
18 #include <osg/Texture2D>
23 class DtOsgCullVisitor;
45 virtual void accept(osg::NodeVisitor& nv);
48 virtual void enable(
bool enabled);
53 #ifdef USE_OBLIQUE_CLIP_PLANE
54 virtual void setClipPlane(
const osg::Vec4d& v);
65 virtual void updateFogColor(
bool skyEnabled,
const osg::Vec4f& envFogColor);
74 virtual osg::Matrixd
modifyProjectionMatrix(
const osg::Matrix& sceneProjection,
const osg::Vec4d& clipPlane)
const;
101 #ifdef USE_OBLIQUE_CLIP_PLANE
102 osg::Vec4d myClipPlane;
virtual void setupColorBufferTexture(int format, int sourceFormat, int sourceType)
setup the color buffer format
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
DtDe & myDe
Definition: DtPlanarReflection.h:87
virtual osg::RefMatrix * getTextureProjectionMatrix()
Retrieve the matrix used to map this texture to the water surface.
osg::observer_ptr< osg::Camera > mySceneCameraObserver
Definition: DtPlanarReflection.h:93
int mySourceType
Definition: DtPlanarReflection.h:99
osg::ref_ptr< osg::Texture > myTexture
Definition: DtPlanarReflection.h:90
virtual void accept(osg::NodeVisitor &nv)
Override Node::accept to intercept cull visitor traversal.
A camera for rendering Triton's planar reflection texture.
Definition: DtPlanarReflection.h:27
virtual void updateFogColor(bool skyEnabled, const osg::Vec4f &envFogColor)
sets the clear color to match the fog color for this camera.
virtual osg::Texture * allocateRenderTexture(int width, int height)
allocate a render texture and set it's size, the function will handle creating Texture2DArray if need...
int mySourceFormat
Definition: DtPlanarReflection.h:98
osg::ref_ptr< osg::Texture > myDepthTexture
Definition: DtPlanarReflection.h:91
virtual ~DtPlanarReflection()
DTOR.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
virtual osg::Matrixd modifyProjectionMatrix(const osg::Matrix &sceneProjection, const osg::Vec4d &clipPlane) const
only used if USE_OBLIQUE_CLIP_PLANE is enabled
virtual void enable(bool enabled)
Enable / disable this reflection camera at runtime.
virtual osg::Texture * getTexture()
Retrieve the reflection map texture this camera renders to.
virtual void updateReflectionTexture()
update the reflection texture settings based on the current main camera settings. ...
DtPlanarReflection(osg::Camera *mainCamera, DtDe &de)
CTOR.
virtual bool isRenderToTextureValid()
check to see if the render to texture settings are valid
int myTexFormat
Definition: DtPlanarReflection.h:97
osg::Matrix myMirrorMatrix
Definition: DtPlanarReflection.h:95
DtSignalConnectionManager myConnections
Definition: DtPlanarReflection.h:88
Base class to provide boost signal/slot management.
osg::ref_ptr< osg::RefMatrix > myTextureProjectionMatrix
Definition: DtPlanarReflection.h:92
virtual void releaseGLObjects(osg::State *state=0) const
Called when a graphic context is destroyed or when this object needs to cleanup its opengl objects...
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
virtual void lodScaleChanged(float lodScale)
pass in a new lod scale to use for calculating the lod connected to the signal_oceanPlanarReflections...
virtual void setMirrorMatrix(const osg::Matrix &mirror)
set the mirror matrix for this planar reflection, used to mirror the scene for the reflection pass re...