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.15 by greg, Sat Mar 8 01:05:00 2014 UTC vs.
Revision 2.16 by greg, Mon Mar 17 01:52:51 2014 UTC

# Line 226 | Line 226 | main(int argc, char *argv[])
226          n = 0;
227          for (i = 0; i < GRIDRES; i++)
228              for (j = 0; j < GRIDRES; j++)
229 <                if (dsf_grid[i][j].nval > 0) {
229 >                if (dsf_grid[i][j].sum.n > 0) {
230                          ovec_from_pos(dir, i, j);
231 <                        bsdf = dsf_grid[i][j].vsum /
232 <                                (dsf_grid[i][j].nval*output_orient*dir[2]);
231 >                        bsdf = dsf_grid[i][j].sum.v /
232 >                                (dsf_grid[i][j].sum.n*output_orient*dir[2]);
233                          if (bsdf <= bsdf_min*.6)
234                                  continue;
235                          bsdf = log(bsdf + 1e-5) - min_log;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines