17#ifndef OSGSHADOW_DEBUGSHADOWMAP
18#define OSGSHADOW_DEBUGSHADOWMAP 1
78 void setDebugDump(
const std::string & debugDumpFile ) { _debugDump = debugDumpFile; }
94 class DrawableDrawWithDepthShadowComparisonOffCallback;
193 void dump(
const std::string & filename );
#define META_ViewDependentShadowTechniqueData(ShadowTechnique, TechniqueData)
Definition ViewDependentShadowTechnique:32
Definition ConvexPolyhedron:36
Definition DebugShadowMap:42
bool getDebugDraw(void) const
Definition DebugShadowMap:72
osg::Vec2s _orthoOrigin
Definition DebugShadowMap:101
ViewDependentShadowTechnique BaseClass
Definition DebugShadowMap:57
osg::Vec2s _orthoSize
Definition DebugShadowMap:100
std::string getDebugDump(void) const
Definition DebugShadowMap:75
META_Object(osgShadow, DebugShadowMap)
bool _doDebugDraw
Definition DebugShadowMap:103
osg::Vec2s _viewportSize
Definition DebugShadowMap:98
void setDebugDump(const std::string &debugDumpFile)
Definition DebugShadowMap:78
DebugShadowMap ThisClass
Definition DebugShadowMap:55
void setDebugDraw(bool draw)
Definition DebugShadowMap:69
std::string _debugDump
Definition DebugShadowMap:104
virtual void resizeGLObjectBuffers(unsigned int maxSize)
virtual void releaseGLObjects(osg::State *=0) const
osg::Vec2s _viewportOrigin
Definition DebugShadowMap:99
DebugShadowMap(const DebugShadowMap &dsm, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
virtual ~DebugShadowMap()
osg::Vec2s _hudOrigin
Definition DebugShadowMap:97
osg::Vec2s _hudSize
Definition DebugShadowMap:96
osg::ref_ptr< osg::Shader > _depthColorFragmentShader
Definition DebugShadowMap:106
Definition ViewDependentShadowTechnique:107
Definition CullVisitor:49
Definition BoundingBox:34
@ SHALLOW_COPY
Definition CopyOp:47
Definition observer_ptr:39
Definition ConvexPolyhedron:33
#define OSGSHADOW_EXPORT
Definition osgShadow/Export:39
#define NULL
Definition osg/Export:55
Definition DebugShadowMap:129
ConvexPolyhedron _polytope
Definition DebugShadowMap:131
osg::Vec4 _colorOutline
Definition DebugShadowMap:133
osg::Vec4 _colorInside
Definition DebugShadowMap:134
Definition DebugShadowMap:109
osg::ref_ptr< osg::Camera > _cameraDebugHUD
Definition DebugShadowMap:157
std::string * getDebugDump()
Definition DebugShadowMap:160
virtual void releaseGLObjects(osg::State *=0) const
virtual void cullDebugGeometry()
osg::Matrixd _viewProjection
Definition DebugShadowMap:121
void dump(const std::string &filename)
bool getDebugDraw()
Definition DebugShadowMap:159
osg::Vec2s _hudOrigin
Definition DebugShadowMap:140
bool DebugMatrix(const osg::Matrix &m, const char *name="")
std::map< std::string, osg::BoundingBox > _boundingBoxMap
Definition DebugShadowMap:155
static void displayShadowTexelToPixelErrors(const osg::Camera *viewCam, const osg::Camera *shadowCam, const ConvexPolyhedron *hull)
osg::ref_ptr< osg::Camera > _camera
Definition DebugShadowMap:119
osg::Vec2s _orthoOrigin
Definition DebugShadowMap:144
osg::Vec2s _hudSize
Definition DebugShadowMap:139
osg::Vec2s _orthoSize
Definition DebugShadowMap:143
PolytopeGeometryMap _polytopeGeometryMap
Definition DebugShadowMap:149
osg::observer_ptr< osg::Camera > _viewCamera
Definition DebugShadowMap:122
std::map< std::string, osg::Matrix > _matrixMap
Definition DebugShadowMap:153
std::map< std::string, PolytopeGeometry > PolytopeGeometryMap
Definition DebugShadowMap:137
bool DebugBoundingBox(const osg::BoundingBox &bb, const char *name="")
std::map< std::string, osg::Polytope > _polytopeMap
Definition DebugShadowMap:154
static osg::Vec3d computeShadowTexelToPixelError(const osg::Matrix &mvpwView, const osg::Matrix &mvpwShadow, const osg::Vec3d &vWorld, const osg::Vec3d &vDelta=osg::Vec3d(0.01, 0.01, 0.01))
virtual void resizeGLObjectBuffers(unsigned int maxSize)
virtual void createDebugHUD(void)
osg::Vec2s _viewportOrigin
Definition DebugShadowMap:142
virtual void init(ThisClass *st, osgUtil::CullVisitor *cv)
bool DebugPolytope(const osg::Polytope &p, const char *name="")
osg::ref_ptr< osg::Shader > _depthColorFragmentShader
Definition DebugShadowMap:127
bool * _doDebugDrawPtr
Definition DebugShadowMap:146
std::string * _debugDumpPtr
Definition DebugShadowMap:147
void setDebugPolytope(const char *name, const ConvexPolyhedron &polytope= *(ConvexPolyhedron *)(NULL), osg::Vec4 colorOutline=osg::Vec4(0, 0, 0, 0), osg::Vec4 colorInside=osg::Vec4(0, 0, 0, 0))
osg::ref_ptr< osg::Texture > _texture
Definition DebugShadowMap:114
osg::Vec2s _viewportSize
Definition DebugShadowMap:141
virtual void updateDebugGeometry(const osg::Camera *screenCam, const osg::Camera *shadowCam)
Definition ViewDependentShadowTechnique:162