\hypertarget{class_ogre_1_1_focused_shadow_camera_setup}{}\doxysection{Ogre\+::Focused\+Shadow\+Camera\+Setup Class Reference}
\label{class_ogre_1_1_focused_shadow_camera_setup}\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}


Implements the uniform shadow mapping algorithm in focused mode.  




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



Inheritance diagram for Ogre\+::Focused\+Shadow\+Camera\+Setup\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=257pt]{class_ogre_1_1_focused_shadow_camera_setup__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_ae4865745d4cdc6f7be7572a347154a18}{Focused\+Shadow\+Camera\+Setup}} (bool use\+Aggressive\+Region=true)
\item 
\mbox{\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_a3acb65f0795eb7a2393f6f26fb057b23}{$\sim$\+Focused\+Shadow\+Camera\+Setup}} ()
\item 
virtual void \mbox{\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}{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 a uniform shadow camera with a focused view. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}{get\+Use\+Aggressive\+Focus\+Region}} () const
\item 
void \mbox{\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_af57854c45cd48033da1cb28e316901dc}{set\+Use\+Aggressive\+Focus\+Region}} (bool aggressive)
\begin{DoxyCompactList}\small\item\em Sets whether or not to use the more aggressive approach to deciding on the focus region or not. \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_focused_shadow_camera_setup_a1d1a64d84fe3bd0ff8d570e7c7ab3460}{create}} (bool use\+Aggressive\+Region=true)
\begin{DoxyCompactList}\small\item\em Create an instance. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Implements the uniform shadow mapping algorithm in focused mode. 

\begin{DoxyRemark}{Remarks}
Differs from the default shadow mapping projection in that it focuses the shadow map on the visible areas of the scene. This results in better shadow map texel usage, at the expense of some \textquotesingle{}swimming\textquotesingle{} of the shadow texture on receivers as the basis is constantly being reevaluated. 
\end{DoxyRemark}
\begin{DoxyNote}{Note}
Original implementation by Matthias Fink \href{mailto:matthias.fink@web.de}{\texttt{ matthias.\+fink@web.\+de}}, 2006. 
\end{DoxyNote}


\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_ae4865745d4cdc6f7be7572a347154a18}\label{class_ogre_1_1_focused_shadow_camera_setup_ae4865745d4cdc6f7be7572a347154a18}} 
\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}!FocusedShadowCameraSetup@{FocusedShadowCameraSetup}}
\index{FocusedShadowCameraSetup@{FocusedShadowCameraSetup}!Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{FocusedShadowCameraSetup()}{FocusedShadowCameraSetup()}}
{\footnotesize\ttfamily Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::\+Focused\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}\item[{bool}]{use\+Aggressive\+Region = {\ttfamily true} }\end{DoxyParamCaption})}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000168}{Deprecated}}]use \mbox{\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_a1d1a64d84fe3bd0ff8d570e7c7ab3460}{create()}} \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_a3acb65f0795eb7a2393f6f26fb057b23}\label{class_ogre_1_1_focused_shadow_camera_setup_a3acb65f0795eb7a2393f6f26fb057b23}} 
\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}!````~FocusedShadowCameraSetup@{$\sim$FocusedShadowCameraSetup}}
\index{````~FocusedShadowCameraSetup@{$\sim$FocusedShadowCameraSetup}!Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{$\sim$FocusedShadowCameraSetup()}{~FocusedShadowCameraSetup()}}
{\footnotesize\ttfamily Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::$\sim$\+Focused\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_a1d1a64d84fe3bd0ff8d570e7c7ab3460}\label{class_ogre_1_1_focused_shadow_camera_setup_a1d1a64d84fe3bd0ff8d570e7c7ab3460}} 
\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}!create@{create}}
\index{create@{create}!Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{create()}{create()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_a139829f6abc3581ec63563543ebfff15}{Shadow\+Camera\+Setup\+Ptr}} Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::create (\begin{DoxyParamCaption}\item[{bool}]{use\+Aggressive\+Region = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Create an instance. 

There are 2 approaches that can be used to define the focus region, the more aggressive way introduced by Wimmer et al, or the original way as described in Stamminger et al. Wimmer et al\textquotesingle{}s way tends to come up with a tighter focus region but in rare cases (mostly highly glancing angles) can cause some shadow casters to be clipped incorrectly. By default the more aggressive approach is used since it leads to significantly better results in most cases, but if you experience clipping issues, you can use the less aggressive version. 
\begin{DoxyParams}{Parameters}
{\em use\+Aggressive\+Region} & True to use the more aggressive approach, false otherwise. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}\label{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}} 
\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}!getShadowCamera@{getShadowCamera}}
\index{getShadowCamera@{getShadowCamera}!Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{getShadowCamera()}{getShadowCamera()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Focused\+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 a uniform shadow camera with a focused view. 



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



Reimplemented in \mbox{\hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa19c6563c41297f7e14e8918dd89b074}{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}, and \mbox{\hyperlink{class_ogre_1_1_p_s_s_m_shadow_camera_setup_a0503ea13df793d0f8d83a30211281321}{Ogre\+::\+P\+S\+S\+M\+Shadow\+Camera\+Setup}}.

\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_af57854c45cd48033da1cb28e316901dc}\label{class_ogre_1_1_focused_shadow_camera_setup_af57854c45cd48033da1cb28e316901dc}} 
\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}!setUseAggressiveFocusRegion@{setUseAggressiveFocusRegion}}
\index{setUseAggressiveFocusRegion@{setUseAggressiveFocusRegion}!Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{setUseAggressiveFocusRegion()}{setUseAggressiveFocusRegion()}}
{\footnotesize\ttfamily void Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::set\+Use\+Aggressive\+Focus\+Region (\begin{DoxyParamCaption}\item[{bool}]{aggressive }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Sets whether or not to use the more aggressive approach to deciding on the focus region or not. 

\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}\label{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}} 
\index{Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}!getUseAggressiveFocusRegion@{getUseAggressiveFocusRegion}}
\index{getUseAggressiveFocusRegion@{getUseAggressiveFocusRegion}!Ogre::FocusedShadowCameraSetup@{Ogre::FocusedShadowCameraSetup}}
\doxysubsubsection{\texorpdfstring{getUseAggressiveFocusRegion()}{getUseAggressiveFocusRegion()}}
{\footnotesize\ttfamily bool Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::get\+Use\+Aggressive\+Focus\+Region (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



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