--- ray/src/cv/bsdf2ttree.c 2013/03/22 16:39:00 2.12 +++ ray/src/cv/bsdf2ttree.c 2013/03/23 04:14:50 2.14 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.12 2013/03/22 16:39:00 greg Exp $"; +static const char RCSid[] = "$Id: bsdf2ttree.c,v 2.14 2013/03/23 04:14:50 greg Exp $"; #endif /* * Load measured BSDF interpolant and write out as XML file with tensor tree. @@ -122,7 +122,7 @@ eval_isotropic(char *funame) /* run through directions */ for (ix = 0; ix < sqres/2; ix++) { RBFNODE *rbf = NULL; - iovec[0] = (ix+.5)/sqres - 1.; + iovec[0] = 2.*(ix+.5)/sqres - 1.; iovec[1] = .0; iovec[2] = input_orient * sqrt(1. - iovec[0]*iovec[0]); if (funame == NULL) @@ -255,10 +255,10 @@ main(int argc, char *argv[]) case 't': switch (argv[i][2]) { case '3': - single_plane_incident = 0; + single_plane_incident = 1; break; case '4': - single_plane_incident = 1; + single_plane_incident = 0; break; case '\0': pctcull = atof(argv[++i]);