Output - PearCoding/PearRay GitHub Wiki

All output is generated in the output directory. The output images is always in the OpenEXR (.exr) format. The reason for this restriction is the multiple channel support which PearRay also supports and the high dynamic range needed in radiometric and photometric simulation. An optional raw spectral file format is also produced. The raw spectral file (.spec) is readable with the python API.

Directory Structure:

  • Root/
    • *.log Log Files
    • results/
      • *.exr Image files defined by scene description file
      • *.spec Raw spectral files

Raw spectral file Specification:

The very simple raw spectral file is only a zLib compressed file with the decompressed little endian binary specification:

Offset (Byte) Size (Byte) Name Description
0 4 (char) Magic Field 'PR42'
4 4 (uint32) Sampling Count (should be 81, but may change in the future)
8 4 (uint32) Width X Resolution of render
12 4 (uint32) Height Y Resolution of render
16 Sampling Count * Width * Height * 4 (float) Content raw float elements