Dear all;
I want to make a couple of render test at sunrise/sunset using the recently developped sky model from Prague team.
The second version is provided for a simplified integration in rendering plateform such as Radiance.
A C source code file is provided and it works like this:
- You have to initialize a structure (state).
- This structure is loading in background the data file containing the necessary information for the sky model
- Then you have 3 functions to request the models passing this initialized structure
// Computes sky radiance arriving at view point.
double arpragueskymodelground_sky_radiance(
const ArPragueSkyModelGroundState * state,
const double theta,
const double gamma,
const double shadow,
const double wavelength
);
// Computes solar radiance arriving at view point (i.e. including transmittance trough the atmosphere).
double arpragueskymodelground_solar_radiance(
const ArPragueSkyModelGroundState * state,
const double theta,
const double wavelength
);
// Computes transmittance along a ray segment of a given length going from view point along view direction. Could be used e.g. for computing attenuation of radiance coming from the nearest intersection with scene geometry or of radiance coming outside of the atmoshere (just use huge value for the distance parameter, it's how it is internally done for the solar radiance).
double arpragueskymodelground_transmittance(
const ArPragueSkyModelGroundState * state,
const double theta,
const double wavelength,
const double distance
I don’t truly know how to integrate this correctly in Radiance…
We can do the same as gendaylit and generate a kind of perezlum.cal file. But the problem is how to instanciate this C state object and handle correctly the data file (looks not to be doable in .cal files).
I’m a bit a newbie with Radiance so I possibly missed something…
Do you have any suggestions to help me?