\hypertarget{class_ogre_1_1_plane_optimal_shadow_camera_setup}{}\doxysection{Ogre\+::Plane\+Optimal\+Shadow\+Camera\+Setup Class Reference}
\label{class_ogre_1_1_plane_optimal_shadow_camera_setup}\index{Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}}


Implements the plane optimal shadow camera algorithm.  




{\ttfamily \#include $<$Ogre\+Shadow\+Camera\+Setup\+Plane\+Optimal.\+h$>$}



Inheritance diagram for Ogre\+::Plane\+Optimal\+Shadow\+Camera\+Setup\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=230pt]{class_ogre_1_1_plane_optimal_shadow_camera_setup__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_plane_optimal_shadow_camera_setup_a9c531d5dfdafb8b7f5927625c7f013ba}{Plane\+Optimal\+Shadow\+Camera\+Setup}} (const \mbox{\hyperlink{class_ogre_1_1_movable_plane}{Movable\+Plane}} $\ast$plane)
\item 
virtual \mbox{\hyperlink{class_ogre_1_1_plane_optimal_shadow_camera_setup_a0fdd507e53ed2fecb42080c9c9fe85ec}{$\sim$\+Plane\+Optimal\+Shadow\+Camera\+Setup}} ()
\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_plane_optimal_shadow_camera_setup_a31ef31471806bd9ddaf6d73696efc702}{get\+Shadow\+Camera}} (const \mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}} $\ast$sm, const \mbox{\hyperlink{class_ogre_1_1_camera}{Camera}} $\ast$cam, const \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} $\ast$vp, const \mbox{\hyperlink{class_ogre_1_1_light}{Light}} $\ast$light, \mbox{\hyperlink{class_ogre_1_1_camera}{Camera}} $\ast$tex\+Cam, size\+\_\+t iteration) const
\begin{DoxyCompactList}\small\item\em Returns shadow camera configured to get 1-\/1 homography between screen and shadow map when restricted to plane. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \mbox{\hyperlink{namespace_ogre_a139829f6abc3581ec63563543ebfff15}{Shadow\+Camera\+Setup\+Ptr}} \mbox{\hyperlink{class_ogre_1_1_plane_optimal_shadow_camera_setup_aaab9fdf433d40a446a78c67828291812}{create}} (const \mbox{\hyperlink{class_ogre_1_1_movable_plane}{Movable\+Plane}} $\ast$plane)
\begin{DoxyCompactList}\small\item\em Constructor -- requires a plane of interest. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Implements the plane optimal shadow camera algorithm. 

\begin{DoxyRemark}{Remarks}
Given a plane of interest, it is possible to set up the shadow camera matrix such that the mapping between screen and shadow map is the identity (when restricted to pixels that view the plane of interest). Therefore, if the shadow map resolution matches the screen space resolution (of the seen planar receiver), we can get pixel perfect shadowing on the plane. Off the plane, the shadowing is not guaranteed to be perfect and will likely exhibit the usual sampling artifacts associated with shadow mapping. 
\end{DoxyRemark}
\begin{DoxyNote}{Note}
Important\+: this routine requires double-\/precision calculations. When you are running under Direct3D, you must ensure that you set the floating point mode to \textquotesingle{}Consistent\textquotesingle{} rather than \textquotesingle{}Fastest\textquotesingle{} to ensure this precision. This does allegedly come with some performance cost but when measuring it appears to be negligible in modern systems for normal usage. 

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. 
\end{DoxyNote}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_plane_optimal_shadow_camera_setup_a9c531d5dfdafb8b7f5927625c7f013ba}\label{class_ogre_1_1_plane_optimal_shadow_camera_setup_a9c531d5dfdafb8b7f5927625c7f013ba}} 
\index{Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}!PlaneOptimalShadowCameraSetup@{PlaneOptimalShadowCameraSetup}}
\index{PlaneOptimalShadowCameraSetup@{PlaneOptimalShadowCameraSetup}!Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{PlaneOptimalShadowCameraSetup()}{PlaneOptimalShadowCameraSetup()}}
{\footnotesize\ttfamily Ogre\+::\+Plane\+Optimal\+Shadow\+Camera\+Setup\+::\+Plane\+Optimal\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_movable_plane}{Movable\+Plane}} $\ast$}]{plane }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000170}{Deprecated}}]use \mbox{\hyperlink{class_ogre_1_1_plane_optimal_shadow_camera_setup_aaab9fdf433d40a446a78c67828291812}{create()}} \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_plane_optimal_shadow_camera_setup_a0fdd507e53ed2fecb42080c9c9fe85ec}\label{class_ogre_1_1_plane_optimal_shadow_camera_setup_a0fdd507e53ed2fecb42080c9c9fe85ec}} 
\index{Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}!````~PlaneOptimalShadowCameraSetup@{$\sim$PlaneOptimalShadowCameraSetup}}
\index{````~PlaneOptimalShadowCameraSetup@{$\sim$PlaneOptimalShadowCameraSetup}!Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{$\sim$PlaneOptimalShadowCameraSetup()}{~PlaneOptimalShadowCameraSetup()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Plane\+Optimal\+Shadow\+Camera\+Setup\+::$\sim$\+Plane\+Optimal\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_plane_optimal_shadow_camera_setup_aaab9fdf433d40a446a78c67828291812}\label{class_ogre_1_1_plane_optimal_shadow_camera_setup_aaab9fdf433d40a446a78c67828291812}} 
\index{Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}!create@{create}}
\index{create@{create}!Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{create()}{create()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_a139829f6abc3581ec63563543ebfff15}{Shadow\+Camera\+Setup\+Ptr}} Ogre\+::\+Plane\+Optimal\+Shadow\+Camera\+Setup\+::create (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_movable_plane}{Movable\+Plane}} $\ast$}]{plane }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Constructor -- requires a plane of interest. 

\mbox{\Hypertarget{class_ogre_1_1_plane_optimal_shadow_camera_setup_a31ef31471806bd9ddaf6d73696efc702}\label{class_ogre_1_1_plane_optimal_shadow_camera_setup_a31ef31471806bd9ddaf6d73696efc702}} 
\index{Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}!getShadowCamera@{getShadowCamera}}
\index{getShadowCamera@{getShadowCamera}!Ogre::PlaneOptimalShadowCameraSetup@{Ogre::PlaneOptimalShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{getShadowCamera()}{getShadowCamera()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Plane\+Optimal\+Shadow\+Camera\+Setup\+::get\+Shadow\+Camera (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager}} $\ast$}]{sm,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_camera}{Camera}} $\ast$}]{cam,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_viewport}{Viewport}} $\ast$}]{vp,  }\item[{const \mbox{\hyperlink{class_ogre_1_1_light}{Light}} $\ast$}]{light,  }\item[{\mbox{\hyperlink{class_ogre_1_1_camera}{Camera}} $\ast$}]{tex\+Cam,  }\item[{size\+\_\+t}]{iteration }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Returns shadow camera configured to get 1-\/1 homography between screen and shadow map when restricted to plane. 



Implements \mbox{\hyperlink{class_ogre_1_1_shadow_camera_setup_aef69374906ff048997e187101858f856}{Ogre\+::\+Shadow\+Camera\+Setup}}.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_shadow_camera_setup_plane_optimal_8h}{Ogre\+Shadow\+Camera\+Setup\+Plane\+Optimal.\+h}}\end{DoxyCompactItemize}
