ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/pabopto2bsdf.c
(Generate patch)

Comparing ray/src/cv/pabopto2bsdf.c (file contents):
Revision 2.25 by greg, Fri Jun 6 00:58:22 2014 UTC vs.
Revision 2.26 by greg, Thu Aug 21 10:33:48 2014 UTC

# Line 254 | Line 254 | main(int argc, char *argv[])
254          for (n = 0; n < dsf_list->nrbf; n++) {
255                  RBFVAL  *rbf = &dsf_list->rbfa[n];
256                  ovec_from_pos(dir, rbf->gx, rbf->gy);
257 <                bsdf = eval_rbfrep(dsf_list, dir) / (output_orient*dir[2]);
257 >                bsdf = eval_rbfrep(dsf_list, dir);
258                  bsdf = log(bsdf + 1e-5) - min_log;
259                  printf("red sphere p%04d\n0\n0\n", ++n);
260                  printf("4 %.6g %.6g %.6g %.6g\n\n",
# Line 274 | Line 274 | main(int argc, char *argv[])
274          for (i = 0; i < GRIDRES; i++)
275              for (j = 0; j < GRIDRES; j++) {
276                  ovec_from_pos(dir, i, j);
277 <                bsdf = eval_rbfrep(dsf_list, dir) / (output_orient*dir[2]);
277 >                bsdf = eval_rbfrep(dsf_list, dir);
278                  bsdf = log(bsdf + 1e-5) - min_log;
279                  fprintf(pfp, "%.8e %.8e %.8e\n",
280                                  dir[0]*bsdf, dir[1]*bsdf, dir[2]*bsdf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines