<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\newpage
\subsection{Films}
\label{sec:films}
A film defines how conducted measurements are stored and converted into the final
output file that is written to disk at the end of the rendering process. Mitsuba comes with a few
films that can write to high and low dynamic range image formats (OpenEXR, JPEG or PNG), as well
more scientifically oriented data formats (e.g. MATLAB or Mathematica).

In the XML scene description language, a normal film configuration might look as follows
\begin{xml}
&lt;scene version=$\MtsVer$&gt;
	&lt;!-- ... scene contents ... --&gt;

	&lt;sensor type="... sensor type ..."&gt;
		&lt;!-- ... sensor parameters ... --&gt;

		&lt;!-- Write to a high dynamic range EXR image --&gt;
		&lt;film type="hdrfilm"&gt;
			&lt;!-- Specify the desired resolution (e.g. full HD) --&gt;
			&lt;integer name="width" value="1920"/&gt;
			&lt;integer name="height" value="1080"/&gt;

			&lt;!-- Use a Gaussian reconstruction filter. For
			     details on these, refer to the next subsection --&gt;
			&lt;rfilter type="gaussian"/&gt;
		&lt;/film&gt;
	&lt;/sensor&gt;
&lt;/scene&gt;
\end{xml}
The \code{film} plugin should be instantiated nested inside a \code{sensor} declaration.
Note how the output filename is never specified---it is automatically inferred
from the scene filename and can be manually overridden by passing the configuration parameter
\code{-o} to the \code{mitsuba} executable when rendering from the command line.
</pre></body></html>