[Radiance-general] 答复: Render tregenza sky patches by rcontrib and pcomb
Wang Clarence
wangjuncwz at hotmail.com
Wed Oct 11 20:15:46 PDT 2017
Thanks for the advice.
I have tried, but the "result.hdr" was not a format of picture, which meant that the rendering was failed.
#gensky 3 21 10 +s -a 22 -o 114 | genskyvec -m 1 -c 1 1 1 > tmp_skydist.dat
#vwrays -ff $vw |rcontrib @rtc1.opt -ffc $(vwrays -d $vw) -V+ -f tregenza.cal -b tbin -bn Ntbins -o first_tre_p%d.hdr -m skyglow test_sky_sun.oct
#dctimestep first_tre_p%d.hdr tmp_skydist.dat > combine.hdr
Or, any parameters should be needed in the third line?
Best,
Clarence
________________________________
发件人: Greg Ward <gregoryjward at gmail.com>
发送时间: 2017年10月11日 18:09
收件人: Radiance general discussion
主题: Re: [Radiance-general] Render tregenza sky patches by rcontrib and pcomb
Hi Clarence,
Rather than trying to fix Axel's old script, it's better to use the simpler and more efficient dctimestep method:
dctimestep first_tre_p%d.hdr skydist.dat > result.hdr
You can also simplify the rcontrib step using the rfluxmtx program, but what you have is fine.
Cheers,
-Greg
From: Wang Clarence <wangjuncwz at hotmail.com<mailto:wangjuncwz at hotmail.com>>
Date: October 11, 2017 6:27:45 AM PDT
Dear all,
I've been trying to render the Tregenza sky patches by using rcontrib. Each patch was rendered successfully, but when I use "pcomb" which contains "tregsamp.bash" by Axel Jacobs to combine them, the "combined.hdr" was a black picture.
#vwrays -ff $vw |rcontrib @rtc1.opt -ffc $(vwrays -d $vw) -V+ -f tregenza.cal -b tbin -bn Ntbins -o first_tre_p%d.hdr -m skyglow test_sky_sun.oct
#pcomb -h $(bash apply_tregsamp_1.bash) > combine_1.hdr
#the original bash script below by Axel Jacobs was changed in order to be consistent with my code.
# Path to the patch images
imgpath="image_fisheye/patches_tre/first_tre"
for i in $imgpath_*.hdr; do
# Scan patch number from file name
patch=$(ls $i \
|rcalc -i "$imgpath_p\${pnum}.hdr" \
-e "\$1=pnum")
# Get multiplier from dat file, based on record number
multi=$(cat tmp_skydist.dat \
|rcalc -e "diff=$patch-recno+1;absdiff=if(diff,diff,-1*diff);
\$1=if(absdiff,0,\$1);" |total)
echo " -s $multi $i"
done
#EOF
Thanks,
Clarence
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20171012/045faf9c/attachment.html>
More information about the Radiance-general
mailing list