Skip to content

LightFieldSphere Example Scene

Ben Heasly edited this page Aug 21, 2015 · 8 revisions

The LightFieldSphere recipe contains a sphere rendered under light field illumination. This means the illumination in the scene varies spatially based on an input image which acts like an "illumination texture".

This example was generously contributed by Gizem Küçükoğlu.

Above, Mitsuba rendered the scene.

Description

The parent scene contains a sphere and an "environment map" light source which accepts spectral information from a "light probe" RGBE data file. The data file was generously made available by Bernhard Vogl.

The sphere uses a Ward model material. The sphere's specular reflectance varies across four conditions. So the effects of the light field illumination may be observed only subtly, or as a crisp, mirror-like reflection.

Rendering

The executive script MakeLightFieldSphere.m produced the images above. It is located at here:

(path-to-RenderToolbox3)/ExampleScenes/LightFieldSphere/MakeLightFieldSphere.m

Spectral Variant

In the above example, the RGBE light probe data were promoted to spectral representation internally by the Mitsuba renderer. Mitsuba can also accept light probe data in the form of a multi-spectral OpenEXR file. This allows fine control of illumination both spatially and spectrally.

As of writing, we don't have any good multi-spectral light probe data. But we have plenty of multi-spectral rendering outputs. We used one of these as a proof of concept, that Mitsuba really accepts multi-spectral light probe inputs.

For this "spectral" variant of the LightFieldSphere scene, the input file for the light probe was the original multi-spectral output of the LightFieldSphere rendering. So this example is curiously self-referential.

The executive script MakeDragonColorChecker.m produced the variant image below. We changed one line of the LightFieldSphereMappings.txt mappings file to specify the multi-spectral light probe.

Above, Mitsuba rendered the scene.