17 #include <osg/ClipNode>
18 #include <osg/Texture2D>
23 class DtOsgCullVisitor;
51 virtual void accept(osg::NodeVisitor& nv);
54 virtual void enable(
bool enabled);
69 virtual void updateFogColor(
bool skyEnabled,
const osg::Vec4f& envFogColor);
81 virtual osg::Matrixd
modifyProjectionMatrix(
const osg::Matrix& sceneProjection,
const osg::Vec4d& clipPlane)
const;
109 double zNear,
double zFar,
bool useReverseZ, osg::Matrix& projection)
const;
virtual void accept(osg::NodeVisitor &nv)
Override Node::accept to intercept cull visitor traversal.
virtual void lodScaleChanged(float lodScale)
pass in a new lod scale to use for calculating the lod connected to the signal_oceanPlanarReflections...
int mySourceFormat
Definition: DtPlanarReflectionCamera.h:124
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...
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...
osg::Vec4d myClipPlane
Definition: DtPlanarReflectionCamera.h:130
virtual osg::Matrixd modifyProjectionMatrix(const osg::Matrix &sceneProjection, const osg::Vec4d &clipPlane) const
modify projection matrix based on clip plane
osg::observer_ptr< osg::Camera > mySceneCameraObserver
Definition: DtPlanarReflectionCamera.h:119
osg::Matrix myMirrorMatrix
Definition: DtPlanarReflectionCamera.h:121
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 myWidth
Definition: DtPlanarReflectionCamera.h:127
DtPlanarReflectionCamera(osg::Camera *mainCamera, DtDe &de)
CTOR.
osg::ref_ptr< osg::RefMatrix > myTextureProjectionMatrix
Definition: DtPlanarReflectionCamera.h:118
virtual void scaleFrustumAndSetProjection(double &left, double &right, double &bottom, double &top, double zNear, double zFar, bool useReverseZ, osg::Matrix &projection) const
Scales the frustum extents and sets the projection matrix. Used for FOV scaling and asymmetric frustu...
virtual void setupColorBufferTexture(int format, int sourceFormat, int sourceType)
setup the color buffer format
A camera for rendering Triton's planar reflection texture.
Definition: DtPlanarReflectionCamera.h:27
virtual bool isRenderToTextureValid()
check to see if the render to texture settings are valid
int myHeight
Definition: DtPlanarReflectionCamera.h:128
int mySourceType
Definition: DtPlanarReflectionCamera.h:125
virtual bool computeReflectionCameraProjectionMatrix(osg::Matrix &projection) const
Computes the reflection camera's projection matrix, supporting both reverse-Z and standard depth...
osg::ref_ptr< osg::Texture > myTexture
Definition: DtPlanarReflectionCamera.h:116
virtual osg::RefMatrix * textureProjectionMatrix()
Retrieve the matrix used to map this texture to the water surface.
virtual void updateReflectionTexture()
update the reflection texture settings based on the current main camera settings. ...
virtual const osg::observer_ptr< osg::Camera > & sceneCameraObserver(void) const
access
int myTexFormat
Definition: DtPlanarReflectionCamera.h:123
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
virtual void enable(bool enabled)
Enable / disable this reflection camera at runtime.
const unsigned int myNodeMask
Definition: DtPlanarReflectionCamera.h:132
DtSignalConnectionManager myConnections
Definition: DtPlanarReflectionCamera.h:114
virtual ~DtPlanarReflectionCamera()
DTOR.
Base class to provide boost signal/slot management.
virtual void updateFogColor(bool skyEnabled, const osg::Vec4f &envFogColor)
sets the clear color to match the fog color for this camera.
virtual osg::Texture * reflectionTexture()
Retrieve the reflection map texture this camera renders to.
osg::ref_ptr< osg::Texture > myDepthTexture
Definition: DtPlanarReflectionCamera.h:117
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:76
virtual void setClipPlane(const osg::Vec4d &v)
Set the clip plane for this planar reflection camera.
DtDe & myDe
Definition: DtPlanarReflectionCamera.h:113