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

Comparing ray/src/util/rtpict.pl (file contents):
Revision 2.31 by greg, Thu Jan 23 01:59:17 2025 UTC vs.
Revision 2.32 by greg, Sat Sep 13 16:52:28 2025 UTC

# Line 7 | Line 7
7   #       G. Ward
8   #
9   use strict;
10 + my $windoz = ($^O eq "MSWin32" or $^O eq "MSWin64");
11   # we'll run rpict if no -n or -o* option
12   my $nprocs = 1;
13   # rtrace options and the associated number of arguments
# Line 145 | Line 146 | while ($#ARGV >= 0 && "$ARGV[0]" =~ /^[-\@]/) {
146          }
147   }
148   die "Number of processes must be positive" if ($nprocs <= 0);
149 + if ($windoz && $nprocs > 1) {
150 +        print STDERR "Only one process supported under Windows\n";
151 +        $nprocs = 1;
152 + }
153   if ($specout) {
154          $specout = ($ncsamp > 3);
155   }
# Line 200 | Line 205 | if ($nprocs > 1 && $ambounce > 0 && $ambcache && defin
205   ##### Generating picture with depth buffer?
206   if (defined $outzbf) {
207          my $picvt = $specout ? 'rcomb -fc -' : "@pvalueA -df";
208 <        exec "@vwraysA -ff | @rtraceA -fff -olv @res '$oct' | " .
209 <                "rsplit -ih -iH -f -of '$outzbf' -oh -oH -of$ncsamp - | " .
210 <                $picvt . " | getinfo -a 'VIEW=$view'";
208 >        exec qq{@vwraysA -ff | @rtraceA -fff -olv @res "$oct" | } .
209 >                qq{rsplit -ih -iH -f -of "$outzbf" -oh -oH -of$ncsamp - | } .
210 >                $picvt . qq{ | getinfo -a "VIEW=$view"};
211   }
212   #####################################################################
213   ##### Base case with output picture only?
214   if (! defined $outdir) {
215 <        exec "@vwraysA -ff | @rtraceA -ffc @res '$oct' | getinfo -a 'VIEW=$view'";
215 >        exec qq{@vwraysA -ff | @rtraceA -ffc @res "$oct" | getinfo -a "VIEW=$view"};
216   }
217   #####################################################################
218   ##### Layered image output case
# Line 262 | Line 267 | foreach my $oval (split //, $outlyr) {
267          delete $rtoutC{$oval};
268   }
269                          # call rtrace + rsplit
270 < exec "@vwraysA -ff | @rtraceA -fff @res '$oct' | getinfo -a 'VIEW=$view' | @rsplitA";
270 > exec qq{@vwraysA -ff | @rtraceA -fff @res "$oct" | getinfo -a "VIEW=$view" | @rsplitA};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines