I am following Sarith tutorial on matrix-based methods, and trying to get images from ‘direct sun only’ by using
part of the scripts on 5PM. But not sure why the images come all black(the model is a room with a south facing window and the rendered images through 2PM does show the sun patches in the room)
(OS is Windows)
The rendered image by rvu shows that the oct file I guess has correct geometry of the model and the suns.
cnt 145 | rcalc -e MF:1 -f reinsrc.cal -e Rbin=recno -o solar.txt > suns.rad
oconv room.rad suns.rad > roomSuns.oct
rcontrib -w- -ab 1 -ad 256 -lw 1.0e-3 -dc 1 -dt 0 -dj 0 -ffc -n 8 -x 600 -y 600 -ld- -o “\Matrices\d\hdr\img%03d.hdr” -e MF:1 -f reinhart.cal -b rbin -bn Nrbins -m solar roomSuns.oct < “view.rays”
gendaymtx -d -m 1 “USA_NY_New.York-Central.Park.725033_TMY3m-0.wea” > “USA_NY_New.York-Central.Park.725033_TMY3m-d.smx”
dctimestep -o “Images\d\hdr\img%04d.hdr” “\Matrices\d\hdr\img%03d.hdr” “USA_NY_New.York-Central.Park.725033_TMY3m-d.smx”
suns.rad content is like this:
void light solar 0 0 3 1e6 1e6 1e6
solar source sun 0 0 4 0 0.994522 0.104528 0.533
solar source sun 0 0 4 0.206773 0.972789 0.104528 0.533
…
solar source sun 0 0 4 -0 -1.60812e-16 1 0.533