ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rtpict.pl
(Generate patch)

Comparing ray/src/util/rtpict.pl (file contents):
Revision 2.22 by greg, Mon Apr 11 04:03:36 2022 UTC vs.
Revision 2.24 by greg, Mon Apr 11 18:08:19 2022 UTC

# Line 154 | Line 154 | my @res = split(/\s/, `@vwraysA -d`);
154   if ($nprocs > 1 && $ambounce > 0 && $ambcache && defined($ambfile)) {
155          if (!defined($outzbf) && !defined($outdir)) {
156                  # Straight picture output, so just randomize sample order
157 <                system "cnt $res[1] $res[3] | sort -R > /tmp/ord$$.txt";
158 <                die "sort error\n" if ( $? );
157 >                system "cnt -s $res[1] $res[3] > /tmp/ord$$.txt";
158 >                die "cnt error\n" if ( $? );
159                  system "@vwraysA -ff -i < /tmp/ord$$.txt " .
160                          "| @rtraceA -ffa -ov '$oct' > /tmp/pix$$.txt";
161                  die "Error running rtrace\n" if ( $? );
162 <                system "( getinfo < /tmp/pix$$.txt ; getinfo - < /tmp/pix$$.txt " .
163 <                        "| rlam /tmp/ord$$.txt - | sort -k2rn -k1n ) " .
164 <                        "| pvalue -r -Y $res[3] +X $res[1] | getinfo -a 'VIEW=$view'";
162 >                system "( getinfo < /tmp/pix$$.txt | getinfo -a 'VIEW=$view'; " .
163 >                        "getinfo - < /tmp/pix$$.txt | rlam /tmp/ord$$.txt - " .
164 >                        "| sort -k2rn -k1n ) | pvalue -r -Y $res[3] +X $res[1]";
165                  die "rlam error\n" if ( $? );
166                  unlink ("/tmp/ord$$.txt", "/tmp/pix$$.txt");
167                  exit 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines