Hello,
I am new here and I hope to find someone that can guide me with the following problem.
I am trying to use rcontrib to calculate daylight coefficients for light sources at arbitrary positions.
From several tutorials I’ve learnt that I can set the light sources positioned according to Reinhart sky division with (e.g.) 2305 patches and obtain the daylight coefficients for these if I do the following:
- echo “void light solar 0 0 3 1e6 1e6 1e6” > light_sources.rad && cnt 2305 | rcalc -e MF:4 -f reinsrc.cal -e Rbin=recno -o ‘solar source sun 0 0 4 {Dx} {Dy} ${Dz} 0.533’ >> light_sources.rad
- oconv -f scene.rad lightsources.rad > scene_with_light_sources.oct
- rcontrib -I+ -ab 1 -y 1 -ad 256 -lw 1.0e-3 -dc 1 -dt 0 -dj 0 -faa -e MF:4 -f reinhart.cal -b rbin -bn Nrbins -m solar scene_with_light_sources.oct < sensor_point.pts
Now, I want to make rcontrib work with a different light_source.rad file that contains a number of light sources (e.g. Nrbin=100) at arbitrary positions on the sky. I am thinking that I need to write a new function file that can somehow generate rbin values from the ray direction (Dx, Dy, Dz), but I feel that there must be an easier solution.
Can someone please guide me a bit here?
Cheers!
Sam