How to visualize a sky vector?

Hi

@moomin1 and @German_Molina

The problem with this strange patch on your visualization results from two reasons:

  1. In the reinhartb.cal file, the first patch identified by rbin is starting from 0 which is not what appears on sky dome visualizations which all start at 1 for the first sky patch (see Fig 1 on this topic:
    What is the definition for the tregenza sky model? https://discourse.radiance-online.org/t/what-is-the-definition-for-the-tregenza-sky

  2. In the list of radiance values coming out of genskyvec, the very first value is calculated for the ground patch that may be added in the scene as:

skyglow source ground
0
0
4 0 0 -1 180

Thus, to make a correct visualization of the sky model, the only correction to make in the mod_reinhartb.cal file is:

rad = select( rbin +2,

);

Raphaël