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

Comparing ray/src/rt/virtuals.c (file contents):
Revision 1.25 by greg, Thu Aug 22 11:56:52 1991 UTC vs.
Revision 1.27 by greg, Tue Oct 1 14:29:16 1991 UTC

# Line 287 | Line 287 | register int  sn;      /* target source number */
287          getplaneq(onorm, o);
288                                  /* set number of rays to sample */
289          if (source[sn].sflags & SDISTANT) {
290 <                n = 4.*or2/(thescene.cusize*thescene.cusize)*vspretest + .5;
290 >                                        /* 32. == heuristic constant */
291 >                n = 32.*or2/(thescene.cusize*thescene.cusize)*vspretest + .5;
292                  infront = DOT(onorm, source[sn].sloc) > 0.;
293          } else {
294                  for (i = 0; i < 3; i++)
# Line 348 | Line 349 | register int  sn;      /* target source number */
349                  nok++;
350                                          /* check against obstructions */
351                  rayclear(&sr);
352 <                if (!localhit(&sr, &thescene) || sr.ro == source[sn].so)
352 >                sr.revf = raytrace;
353 >                rayvalue(&sr);
354 >                if (bright(sr.rcol) > FTINY)
355                          nhit++;
356                  if (nhit > 0 && nhit < nok) {
357   #ifdef DEBUG

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines