[Radiance-general] Gensky question

Ehsan Vazifeh em.vazifeh at gmail.com
Mon Aug 10 06:44:29 PDT 2015


Hi Jiajie,

You can refer to the source code of GENKY. There you can see the formulas used to calculate RGB from the direct irradiance. Here is the link:
https://github.com/NREL/Radiance/blob/master/src/gen/gensky.c <https://github.com/NREL/Radiance/blob/master/src/gen/gensky.c>






if (u_solar == -1)
	solarbr /= 6e-5*sundir[2];
else if (u_solar == 0) {
	solarbr = 1.5e9/SUNEFFICACY *(1.147 - .147/(sundir[2]>.16?sundir[2]:.16));
if (skytype == S_INTER)
	solarbr *= 0.15;	/* fudge factor! */

Cheers,
Ehsan


> On 10 Aug 2015, at 15:32, Jiajie Zhu <jonathan.zhu.uk at gmail.com> wrote:
> 
> Hi everyone,
>  
> I just have a very quick question.
> I am using gensky function to generate a sky distribution with sun, here is part of the scripts.
>  
> void light solar
> 0
> 0
> 3 7.07e+006 7.07e+006 7.07e+006
>  
> I just wonder how does Radiance calculate the RGB radiance values of the sun.
>  
> Many thanks,
> Jiajie
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20150810/043c0091/attachment.html>


More information about the Radiance-general mailing list