Keywords:

Summary

This simulation demonstrates the usage of the new BackgroundSky data model to illuminate a scene.

Details

The demo_lobes.h5 file describes an ad hoc, time evolving source of background sky illumination, which is used to illuminate a test scenario containing an arrangement of boxes. The make_db.cpp file is the source code that generates demo_lobes.h5 using the BackgroundSkyData API. The introduction of the support/HDF Python bindings should deprecate the generation of background sky data files in this way. If it is ever necessary to recompile make_db.cpp however, it only needs to be linked against support/HDF.

Important Files

The demo.jsim file demonstrates how to load the demo_lobes.h5 file into a DIRSIG simulation by supplying the filename to the PositionIndependentBackground plug-in.

Setup

This section includes step-by-step instructions for running and visualizing the simulation.

To run the simulation, perform the following steps:

  1. Run scene2hdf on demo.scene to generate demo.scene.hdf.

  2. Run the DIRSIG demo.jsim file.

  3. Convert the resulting demo-t####-c####.img to PNM files for viewing.

Alternatively, run the shell script ./RenderImages.sh BINDIR with BINDIR equal to the direction of DIRSIG binary executables. This script will perform all necessary steps to render the image sequence for this demo.

Results

BackgroundSky1