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


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=256pt]{class_ogre_1_1_focused_shadow_camera_setup__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_focused_shadow_camera_setup_af4fec2364b3404a7738e9b5ede0710e7}{Focused\+Shadow\+Camera\+Setup} (void)
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}{get\+Shadow\+Camera} (const \hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager} $\ast$sm, const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$cam, const \hyperlink{class_ogre_1_1_viewport}{Viewport} $\ast$vp, const \hyperlink{class_ogre_1_1_light}{Light} $\ast$light, \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 \hyperlink{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}{get\+Use\+Aggressive\+Focus\+Region} () const
\item 
void \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}


\subsection{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}{\tt matthias.\+fink@web.\+de}, 2006. 
\end{DoxyNote}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_af4fec2364b3404a7738e9b5ede0710e7}\label{class_ogre_1_1_focused_shadow_camera_setup_af4fec2364b3404a7738e9b5ede0710e7}} 
\index{Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}!Focused\+Shadow\+Camera\+Setup@{Focused\+Shadow\+Camera\+Setup}}
\index{Focused\+Shadow\+Camera\+Setup@{Focused\+Shadow\+Camera\+Setup}!Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{Focused\+Shadow\+Camera\+Setup()}{FocusedShadowCameraSetup()}}
{\footnotesize\ttfamily Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::\+Focused\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Default constructor. 

\begin{DoxyRemark}{Remarks}
Temporary frustum and camera set up here. 
\end{DoxyRemark}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}\label{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}} 
\index{Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}!get\+Shadow\+Camera@{get\+Shadow\+Camera}}
\index{get\+Shadow\+Camera@{get\+Shadow\+Camera}!Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Shadow\+Camera()}{getShadowCamera()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::get\+Shadow\+Camera (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager} $\ast$}]{sm,  }\item[{const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$}]{cam,  }\item[{const \hyperlink{class_ogre_1_1_viewport}{Viewport} $\ast$}]{vp,  }\item[{const \hyperlink{class_ogre_1_1_light}{Light} $\ast$}]{light,  }\item[{\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 \hyperlink{class_ogre_1_1_shadow_camera_setup_aef69374906ff048997e187101858f856}{Ogre\+::\+Shadow\+Camera\+Setup}.



Reimplemented in \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa19c6563c41297f7e14e8918dd89b074}{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}, and \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\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}!set\+Use\+Aggressive\+Focus\+Region@{set\+Use\+Aggressive\+Focus\+Region}}
\index{set\+Use\+Aggressive\+Focus\+Region@{set\+Use\+Aggressive\+Focus\+Region}!Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{set\+Use\+Aggressive\+Focus\+Region()}{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. 

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

\begin{DoxyParams}{Parameters}
{\em aggressive} & True to use the more aggressive approach, false otherwise. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}\label{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}} 
\index{Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}!get\+Use\+Aggressive\+Focus\+Region@{get\+Use\+Aggressive\+Focus\+Region}}
\index{get\+Use\+Aggressive\+Focus\+Region@{get\+Use\+Aggressive\+Focus\+Region}!Ogre\+::\+Focused\+Shadow\+Camera\+Setup@{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Use\+Aggressive\+Focus\+Region()}{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 
\hyperlink{_ogre_shadow_camera_setup_focused_8h}{Ogre\+Shadow\+Camera\+Setup\+Focused.\+h}\end{DoxyCompactItemize}
