Hi Radiance community,
I tried to test genssky with using -L option.
When I run the below command:
genssky 6 21 12 -a 35.75 -o -51.4 -m -52.5 -L 0 1 -r 256 -c 1 -p ./test_hsr -f test_hsr.hsr
I got this:
genssky 6 21 12 -a 35.75 -o -51.4 -m -52.5 -L 0 1 -r 256 -c 1 -p ./test_hsr -f test_hsr.hsr
#Cloud cover: 1
#Ground reflectance: 0.2
#Sky map resolution: 256
void spectrum sunrad
0
0
22 380 780 0.613 1.029 0.977 1.323 1.301 1.234 1.224 1.225 1.185 1.098 1.012 1.023 0.952 0.916 0.943 0.799 0.852 0.801 0.728 0.765
sunrad light solar
0
0
3 42.0 42.0 42.0
solar source sun
0
0
4 0.038267 -0.247596 0.968107 0.533
void specpict skyfunc
5 noop ./test_hsr/test_hsr.hsr_sky.hsr . ‘Atan2(Dy,Dx)/PI+1’ ‘1-Acos(Dz)/PI’
0
0
As I use 0 for dirnorm_illum in -L option, my first question is why RGB values under the “sunrad light solar” are not zero and they are 42.0
Moreover, as I use -L 0 1, so, I should receive 1 lux when measuring the lux level horizontally, but I got 1.569845
I defined the test_hsr.sky file like this:
Pre-computing…
genssky 6 21 12 -a 35.75 -o -51.4 -m -52.5 -L 0 1 -r 256 -c 1 -p ./test_hsr -f test_hsr.hsr
#Cloud cover: 1
#Ground reflectance: 0.2
#Sky map resolution: 256
void spectrum sunrad
0
0
22 380 780 0.613 1.029 0.977 1.323 1.301 1.234 1.224 1.225 1.185 1.098 1.012 1.023 0.952 0.916 0.943 0.799 0.852 0.801 0.728 0.765
sunrad light solar
0
0
3 42.0 42.0 42.0
solar source sun
0
0
4 0.038267 -0.247596 0.968107 0.533
void specpict skyfunc
5 noop ./test_hsr/test_hsr.hsr_sky.hsr . ‘Atan2(Dy,Dx)/PI+1’ ‘1-Acos(Dz)/PI’
0
0
skyfunc glow sky_mat
0
0
4 1 1 1 0
sky_mat source sky
0
0
4 0 0 1 180
Then, run the following commands:
oconv test_hsr.sky > test_hsr.oct
@echo 0 0 0 0 0 1 | rtrace -I -h -ab 1 -ad 8192 -as 8192 -pY -av 0 0 0 test_hsr.oct
and I got 1.569845e+00
As I defined the dirnorm_illum= 0 and difhor_illum=1, I should got a value around 1.0
Am I right, or did I make a mistake?
Best regards,
Majid