openscenegraph
LightSpacePerspectiveShadowMap
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12 *
13 * ViewDependentShadow codes Copyright (C) 2008 Wojciech Lewandowski
14 * Thanks to to my company http://www.ai.com.pl for allowing me free this work.
15*/
16
17
18#ifndef OSGSHADOW_LIGHTSPACEPERSPECTIVESHADOWMAP
19#define OSGSHADOW_LIGHTSPACEPERSPECTIVESHADOWMAP 1
20
24
25namespace osgShadow {
26
27// Class implements
28// "Light Space Perspective Shadow Maps" algorithm by
29// Michael Wimmer, Daniel Scherzer, Werner Purgathofer
30// http://www.cg.tuwien.ac.at/research/vr/lispsm/
31
32class LispSM;
33
35{
36 public:
39
40 void operator() (
41 const osgShadow::ConvexPolyhedron* hullShadowedView,
42 const osg::Camera* cameraMain,
43 osg::Camera* cameraShadow ) const;
44
45 protected:
46 LispSM * lispsm;
47};
48
49// Optimized for draw traversal shadow bounds
71
72// Optimized for cull traversal shadow bounds
94
95// Optimized for view frustum bounds
117
119
120} // namespace osgShadow
121
122#endif
Definition ConvexPolyhedron:36
Definition LightSpacePerspectiveShadowMap:35
LispSM * lispsm
Definition LightSpacePerspectiveShadowMap:46
Definition LightSpacePerspectiveShadowMap:74
LightSpacePerspectiveShadowMapCB(const LightSpacePerspectiveShadowMapCB &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition LightSpacePerspectiveShadowMap:85
ProjectionShadowMap< MinimalCullBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > BaseClass
Definition LightSpacePerspectiveShadowMap:77
META_Object(osgShadow, LightSpacePerspectiveShadowMapCB)
LightSpacePerspectiveShadowMapCB()
Definition LightSpacePerspectiveShadowMap:80
Definition LightSpacePerspectiveShadowMap:51
LightSpacePerspectiveShadowMapDB(const LightSpacePerspectiveShadowMapDB &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition LightSpacePerspectiveShadowMap:62
ProjectionShadowMap< MinimalDrawBoundsShadowMap, LightSpacePerspectiveShadowMapAlgorithm > BaseClass
Definition LightSpacePerspectiveShadowMap:54
LightSpacePerspectiveShadowMapDB()
Definition LightSpacePerspectiveShadowMap:57
META_Object(osgShadow, LightSpacePerspectiveShadowMapDB)
Definition LightSpacePerspectiveShadowMap:97
META_Object(osgShadow, LightSpacePerspectiveShadowMapVB)
ProjectionShadowMap< MinimalShadowMap, LightSpacePerspectiveShadowMapAlgorithm > BaseClass
Definition LightSpacePerspectiveShadowMap:100
LightSpacePerspectiveShadowMapVB(const LightSpacePerspectiveShadowMapVB &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition LightSpacePerspectiveShadowMap:108
LightSpacePerspectiveShadowMapVB()
Definition LightSpacePerspectiveShadowMap:103
Definition ProjectionShadowMap:26
Definition Camera:45
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Definition ConvexPolyhedron:33
LightSpacePerspectiveShadowMapDB LightSpacePerspectiveShadowMap
Definition LightSpacePerspectiveShadowMap:118
#define OSGSHADOW_EXPORT
Definition osgShadow/Export:39