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

Comparing ray/src/rt/rpict.c (file contents):
Revision 2.76 by greg, Mon Jun 13 20:07:56 2005 UTC vs.
Revision 2.79 by schorsch, Thu Apr 24 10:28:25 2008 UTC

# Line 14 | Line 14 | static const char RCSid[] = "$Id$";
14   #include  <sys/time.h>
15   #include  <sys/resource.h>
16   #else
17 + #ifndef MINGW
18   #include  <sys/times.h>
19 + #else
20 + #include  <sys/time.h>
21 + #endif
22   #include  <unistd.h>
23   #endif
24   #endif
# Line 677 | Line 681 | pixvalue(              /* compute pixel value */
681                  return(0.0);
682          }
683          vdist = ourview.vdist;
684 <
685 <        if (rand_samp)                          /* set pixel index */
682 <                samplendx = random();
683 <        else
684 <                samplendx = pixnumber(x,y,hres,vres);
685 <
684 >                                                /* set pixel index */
685 >        samplendx = pixnumber(x,y,hres,vres);
686                                                  /* optional motion blur */
687          if (lastview.type && mblur > FTINY && (lmax = viewray(lorg, ldir,
688                                          &lastview, hpos, vpos)) >= -FTINY) {
# Line 714 | Line 714 | pixvalue(              /* compute pixel value */
714                          }
715                  } else {                        /* non-standard view case */
716                          double  dfd = PI/4.*dblur*(.5 - frandom());
717 <                        if (ourview.type != VT_ANG) {
717 >                        if (ourview.type != VT_ANG && ourview.type != VT_PLS) {
718                                  if (ourview.type != VT_CYL)
719                                          dfh /= sqrt(ourview.hn2);
720                                  dfv /= sqrt(ourview.vn2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines