#include <OgreShadowCameraSetupFocused.h>
Inheritance diagram for Ogre::FocusedShadowCameraSetup:
Public Member Functions | |
FocusedShadowCameraSetup (void) | |
Default constructor. | |
virtual | ~FocusedShadowCameraSetup (void) |
Default destructor. | |
virtual void | getShadowCamera (const SceneManager *sm, const Camera *cam, const Viewport *vp, const Light *light, Camera *texCam, size_t iteration) const |
Returns a uniform shadow camera with a focused view. | |
void | setUseAggressiveFocusRegion (bool aggressive) |
Sets whether or not to use the more aggressive approach to deciding on the focus region or not. | |
bool | getUseAggressiveFocusRegion () const |
AllocatedObject () | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
Protected Member Functions | |
void | calculateShadowMappingMatrix (const SceneManager &sm, const Camera &cam, const Light &light, Matrix4 *out_view, Matrix4 *out_proj, Camera *out_cam) const |
Calculates the standard shadow mapping matrix. | |
void | calculateB (const SceneManager &sm, const Camera &cam, const Light &light, const AxisAlignedBox &sceneBB, PointListBody *out_bodyB) const |
Calculates the intersection bodyB. | |
void | calculateLVS (const SceneManager &sm, const Camera &cam, const Light &light, const AxisAlignedBox &sceneBB, PointListBody *out_LVS) const |
Calculates the bodyLVS. | |
Vector3 | getLSProjViewDir (const Matrix4 &lightSpace, const Camera &cam, const PointListBody &bodyLVS) const |
Returns the projection view direction. | |
Vector3 | getNearCameraPoint_ws (const Matrix4 &viewMatrix, const PointListBody &bodyLVS) const |
Returns a valid near-point seen by the camera. | |
Matrix4 | transformToUnitCube (const Matrix4 &m, const PointListBody &body) const |
Transforms a given body to the unit cube (-1,-1,-1) / (+1,+1,+1) with a specific shadow matrix enabled. | |
Matrix4 | buildViewMatrix (const Vector3 &pos, const Vector3 &dir, const Vector3 &up) const |
Builds a view matrix. | |
Protected Attributes | |
Frustum * | mTempFrustum |
Temporary preallocated frustum to set up a projection matrix in ::calculateShadowMappingMatrix(). | |
Camera * | mLightFrustumCamera |
Temporary preallocated camera to set up a light frustum for clipping in ::calculateB. | |
bool | mLightFrustumCameraCalculated |
bool | mUseAggressiveRegion |
Use tighter focus region? | |
ConvexBody | mBodyB |
PointListBody | mPointListBodyB |
PointListBody | mPointListBodyLVS |
Static Protected Attributes | |
static const Matrix4 | msNormalToLightSpace |
Transform to or from light space as defined by Wimmer et al. | |
static const Matrix4 | msLightSpaceToNormal |
Classes | |
class | PointListBody |
Internal class holding a point list representation of a convex body. More... |
Definition at line 52 of file OgreShadowCameraSetupFocused.h.
|
Default constructor.
|
|
Default destructor.
|
|
Definition at line 55 of file OgreMemoryAllocatedObject.h. |
|
Builds a view matrix.
|
|
Calculates the intersection bodyB.
|
|
Calculates the bodyLVS.
|
|
Calculates the standard shadow mapping matrix.
|
|
Returns the projection view direction.
|
|
Returns a valid near-point seen by the camera.
|
|
Returns a uniform shadow camera with a focused view.
Implements Ogre::ShadowCameraSetup. Reimplemented in Ogre::LiSPSMShadowCameraSetup. |
|
Definition at line 274 of file OgreShadowCameraSetupFocused.h. |
|
Definition at line 101 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 95 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 89 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 112 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 106 of file OgreMemoryAllocatedObject.h. |
|
placement operator new
Definition at line 73 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 67 of file OgreMemoryAllocatedObject.h. |
|
operator new, with debug line info
Definition at line 62 of file OgreMemoryAllocatedObject.h. |
|
Definition at line 84 of file OgreMemoryAllocatedObject.h. |
|
array operator new, with debug line info
Definition at line 79 of file OgreMemoryAllocatedObject.h. |
|
Sets whether or not to use the more aggressive approach to deciding on the focus region or not.
Definition at line 272 of file OgreShadowCameraSetupFocused.h. |
|
Transforms a given body to the unit cube (-1,-1,-1) / (+1,+1,+1) with a specific shadow matrix enabled.
|
|
Definition at line 139 of file OgreShadowCameraSetupFocused.h. |
|
Temporary preallocated camera to set up a light frustum for clipping in ::calculateB.
Definition at line 72 of file OgreShadowCameraSetupFocused.h. |
|
Definition at line 73 of file OgreShadowCameraSetupFocused.h. |
|
Definition at line 140 of file OgreShadowCameraSetupFocused.h. |
|
Definition at line 141 of file OgreShadowCameraSetupFocused.h. |
|
Definition at line 63 of file OgreShadowCameraSetupFocused.h. |
|
Transform to or from light space as defined by Wimmer et al.
Definition at line 62 of file OgreShadowCameraSetupFocused.h. |
|
Temporary preallocated frustum to set up a projection matrix in ::calculateShadowMappingMatrix().
Definition at line 68 of file OgreShadowCameraSetupFocused.h. |
|
Use tighter focus region?
Definition at line 76 of file OgreShadowCameraSetupFocused.h. |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sat Apr 11 13:54:12 2009