[Radiance-general] genBSDF

Jia Hu hujia06 at gmail.com
Thu Feb 20 11:16:54 PST 2014


Hi,

I looked at the genbsdf.pl.  It seems that genBSDF +f will generate the
Tranmission Front (defined in xml file) and genBSDF +b will generate
"Transmission Back" in xml.

 However, bsdf_m.c code prefers the "Transmission Front" data. So when
using genbsdf, is that a good pratice to add +f, which generate
"Transmission Front" that is preferred by Radiance?


if (!sdata)
return RC_FAIL;
* /**
* * Remember that front and back are reversed from WINDOW 6 orientations*
* * Favor their "Front" (incoming light) since that's more often valid*
 */
tfront = !strcasecmp(sdata, "Transmission Back");
if (!strcasecmp(sdata, "Transmission Front") ||
tfront & (sd->tf == NULL)) {
if (sd->tf != NULL)
SDfreeSpectralDF(sd->tf);
if ((sd->tf = SDnewSpectralDF(1)) == NULL)
return RC_MEMERR;
df = sd->tf;
} else if (!strcasecmp(sdata, "Reflection Front")) {
if (sd->rb != NULL) /* note back-front reversal */
SDfreeSpectralDF(sd->rb);
if ((sd->rb = SDnewSpectralDF(1)) == NULL)
return RC_MEMERR;
df = sd->rb;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20140220/55ab3530/attachment.html>


More information about the Radiance-general mailing list