Keywords: bundled materials

Summary

This demo gives a simple example of how bundled materials may be used in a simulation. The demo includes two simulations, both of which have the same scene from GenericMotion1. The two scenes vary only in how the materials are specified. One uses the traditional specifications in the .mat file and one uses material bundles.

Details

The two simulations in this demo are defined by w_bundles.jsim and wo_bundles.jsim, which specify the materials via bundles and via the .mat file, respectively. Each of these simulations refer to the scene file with the corresponding name. The platform and atmosphere are shared between the two simulations. The scene files are also identical, except for the material file. The w_bundles.scene file refers to bundles/w_bundles.mat and the wo_bundles.scene file refers to materials/wo_bundles.mat.

If you would like to regenerate the bundles in this demo, you can run:

> mat_bundler build wo_bundles.mat

in the materials directory.

Important Files

  • materials/demo.mat: Contains the original definition of the materials

  • bundles/*.mat.hdf: The generated material bundles from the materials icon materials/demo.mat

  • bundles/w_bundles.mat: Material file that refers to the bundles.

Setup

The demo comes with the bundles pregenerated, so the demo itself can be run with the following steps:

  1. Run the DIRSIG w_bundles.jsim and wo_bundles.jsim files.

  2. Load the resulting radiance files in the image viewer to see that they are identical.

Results

The results of this demo are identical to those of GenericMotion1, but were produced with material bundles.

demo