#include <OgreShadowCameraSetupPlaneOptimal.h>
Public Member Functions | |
| PlaneOptimalShadowCameraSetup (MovablePlane *plane) | |
| Constructor -- requires a plane of interest. | |
| virtual | ~PlaneOptimalShadowCameraSetup () |
| Destructor. | |
| virtual void | getShadowCamera (const SceneManager *sm, const Camera *cam, const Viewport *vp, const Light *light, Camera *texCam) const |
| Returns shadow camera configured to get 1-1 homography between screen and shadow map when restricted to plane. | |
Private Member Functions | |
| PlaneOptimalShadowCameraSetup () | |
| Default constructor is private. | |
| Matrix4 | computeConstrainedProjection (const Vector4 &pinhole, const std::vector< Vector4 > &fpoint, const std::vector< Vector2 > &constraint) const |
| helper function computing projection matrix given constraints | |
Private Attributes | |
| MovablePlane * | m_plane |
| pointer to plane of interest | |
Second important note: this projection also only works for lights with a finite position. Therefore you cannot use it for directional lights at this time.
Definition at line 56 of file OgreShadowCameraSetupPlaneOptimal.h.
| Ogre::PlaneOptimalShadowCameraSetup::PlaneOptimalShadowCameraSetup | ( | ) | [private] |
| Ogre::PlaneOptimalShadowCameraSetup::PlaneOptimalShadowCameraSetup | ( | MovablePlane * | plane | ) |
Constructor -- requires a plane of interest.
| virtual Ogre::PlaneOptimalShadowCameraSetup::~PlaneOptimalShadowCameraSetup | ( | ) | [virtual] |
Destructor.
| Matrix4 Ogre::PlaneOptimalShadowCameraSetup::computeConstrainedProjection | ( | const Vector4 & | pinhole, | |
| const std::vector< Vector4 > & | fpoint, | |||
| const std::vector< Vector2 > & | constraint | |||
| ) | const [private] |
helper function computing projection matrix given constraints
| virtual void Ogre::PlaneOptimalShadowCameraSetup::getShadowCamera | ( | const SceneManager * | sm, | |
| const Camera * | cam, | |||
| const Viewport * | vp, | |||
| const Light * | light, | |||
| Camera * | texCam | |||
| ) | const [virtual] |
Returns shadow camera configured to get 1-1 homography between screen and shadow map when restricted to plane.
Implements Ogre::ShadowCameraSetup.
Copyright © 2000-2005 by The OGRE Team

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Mon Jun 16 12:53:36 2008