[Radiance-general] Rtcontrib inside of script

Guglielmetti, Robert Robert.Guglielmetti at nrel.gov
Wed Aug 18 14:45:39 PDT 2010


Greetings from inside the octree.

I'm trying to make a script that will as one of its steps call rtcontrib and
compute a set of daylight coefficient images, based on Axel Jacobs'
tutorial. 

>From a BASH prompt, if I set up some view options (in $vw) and render
options (in a file called rtc.opt), the following command...

vwrays -ff $vw | rtcontrib @rtc.opt -fo -ffc $(vwrays -d $vw) -f
tregenza.cal -b tbin -o images/patches/treg%03d.hdr -m sky_glow model_dc.oct

...works. I get treg[000-145].hdr in my images/patches directory. This is
good. 

But if I try to put the same construct into a Ruby script (note slightly
different variable names), the following command...

vwrays -ff #{vw} | rtcontrib #{rtc} -n 15 -ffc $(vwrays -d #{vw}) -fo -f
tregenza.cal -b tbin -o #{Dir.pwd}/output/dc/test/treg%03d.hdr -m sky_glow
model_dc.oct"

...does not work. Fail. Boo. What I end up with is just a single
treg000.hdr. Any ideas why? I have a feeling the system doesn't like the
vwrays call inside of the rtcontrib call. Anyone know how to pass this
through from Ruby without a problem?




More information about the Radiance-general mailing list