BTW, the default value for -g is not printed in the manpage, but it's 20% (you can find it in gensky.c, and Axel Jacobs mentions this in his rtcontrib tutorial, I believe).
Rob Guglielmetti IESNA, LEED AP Commercial Buildings Research Group National Renewable Energy Laboratory 1617 Cole Blvd MS:RSF202 Golden, CO 80401 T. 303.275.4319 F. 303.630.2055 E. robert.guglielme...@nrel.gov On 2/9/11 11:22 AM, "Guglielmetti, Robert" <robert.guglielme...@nrel.gov> wrote: >The default rfl value for -g is used when -g is not given. That's the >definition of default, isn't it? =8-) > >Greg is saying that -g needs an argument, for the ground refl. It's not an >on/off switch. > >Rob Guglielmetti IESNA, LEED AP >Commercial Buildings Research Group >National Renewable Energy Laboratory >1617 Cole Blvd MS:RSF202 >Golden, CO 80401 >T. 303.275.4319 >F. 303.630.2055 >E. robert.guglielme...@nrel.gov > > > > > >On 2/9/11 11:05 AM, "Randolph M. Fritz" <rfr...@lbl.gov> wrote: > >>So is the default never used? Or only when -g is not given? >> >>On 2011-02-07 13:49:44 -0800, Gregory J. Ward said: >> >>> That's because -g is expecting an argument (the ground reflectance). >>> If you give "-c" after, it probably calls atof("-c") which returns 0. >>> >>> In general, Radiance doesn't have very paranoid argument checking. If >>> you don't give a legal command line, many Radiance programs just muddle >>> through (or crash if they try reading past the last argument). The >>> exceptions to this are the rendering programs and a few utilities that >>> call badarg() to check command argument types. >>> >>> -Greg >>> >>>> From: "Randolph M. Fritz" <rfr...@lbl.gov> >>>> Date: February 7, 2011 1:29:09 PM PST >>>> >>>> If -g is given as the last argument to the gensky command, a bus error >>>> or segmentation fault results. That is: >>>> gensky 3 31 10:00 -g -c >>>> works, but >>>> gensky 3 31 10:00 -c -g >>>> fails. >>>> -- >>>> Randolph M. Fritz € rfr...@lbl.gov >>>> Environmental Energy Technologies Division € Lawrence Berkeley Labs >> >> >>-- >>Randolph M. Fritz € rfr...@lbl.gov >>Environmental Energy Technologies Division € Lawrence Berkeley Labs >> >> >> >>_______________________________________________ >>Radiance-dev mailing list >>Radiance-dev@radiance-online.org >>http://www.radiance-online.org/mailman/listinfo/radiance-dev > > >_______________________________________________ >Radiance-dev mailing list >Radiance-dev@radiance-online.org >http://www.radiance-online.org/mailman/listinfo/radiance-dev _______________________________________________ Radiance-dev mailing list Radiance-dev@radiance-online.org http://www.radiance-online.org/mailman/listinfo/radiance-dev