diff --git a/doc/section_emitters.tex b/doc/section_emitters.tex index f4899da9..7c7c4c10 100644 --- a/doc/section_emitters.tex +++ b/doc/section_emitters.tex @@ -17,7 +17,7 @@ types is shown below: Generally, light sources are specified as children of the \code{} element; for instance, the following snippet instantiates a point light emitter that illuminates a sphere. \begin{xml} - + @@ -28,7 +28,7 @@ the following snippet instantiates a point light emitter that illuminates a sphe An exception to this are \emph{area lights}, which turn a geometric object into a light source. These are specified as children of the corresponding \code{} element. \begin{xml} - + diff --git a/doc/section_integrators.tex b/doc/section_integrators.tex index cf26a259..4b1f5089 100644 --- a/doc/section_integrators.tex +++ b/doc/section_integrators.tex @@ -134,3 +134,36 @@ enable the alpha channel in the scene's film instance (Section~\ref{sec:films}). \caption{\label{fig:hideemitters}An example application of the \code{hideEmitters} parameter together with alpha blending} } +\subsubsection*{Number of samples per pixel} +Many of the integrators in Mitsuba depend on a number of \emph{samples per pixel}, which is related +to the amount of noise in the final output. However, it is important to note that this parameter is +\emph{not} a parameter of the integrator. +Instead, it must be declared in the \code{} instantiation, which is nested inside the +\code{} element. The rationale behind this is that the sensor is responsible for performing +a measurement using a specified sampling strategy. The integrator declares the high-level strategy +for resolving scattering interactions, but does not depend on a specific number of samples. + +\begin{xml} + + + + + + + + + + + + + + + + + + + + + + +\end{xml} diff --git a/doc/section_sensors.tex b/doc/section_sensors.tex index cb5ed783..f31dabe7 100644 --- a/doc/section_sensors.tex +++ b/doc/section_sensors.tex @@ -4,8 +4,32 @@ In Mitsuba, \emph{sensors}, along with a \emph{film}, are responsible for recording radiance measurements in some usable format. This includes default choices such as perspective or orthographic cameras, as well as more specialized sensors that measure the radiance -into a given direction or the irradiance received by a certain surface. The following -section lists the available choices. +into a given direction or the irradiance received by a certain surface. This subsection +lists the available choices. + +\subsubsection*{Syntax} +In the XML scene description language, a sensor declaration looks as follows +\begin{xml} + + + + + + + + + + + + + + + +\end{xml} +In other words, the \code{} declaration is a child element of the \code{} (the particular +position in the scene file does not play a role). Nested within the sensor declaration is a +sampler instance (described in Section~\ref{sec:samplers}) and a film instance (described in +Section~\ref{sec:films}). \subsubsection*{Handedness convention} Sensors in Mitsuba are \emph{right-handed}.