ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/rpict.1
Revision: 1.12
Committed: Tue Mar 11 02:21:45 2008 UTC (16 years, 3 months ago) by greg
Branch: MAIN
CVS Tags: rad3R9
Changes since 1.11: +11 -3 lines
Log Message:
Added planisphere view type (-vts option) as requested by Axel Jacobs

File Contents

# User Rev Content
1 greg 1.12 .\" RCSid "$Id: rpict.1,v 1.11 2007/09/04 17:36:41 greg Exp $"
2 greg 1.1 .TH RPICT 1 2/26/99 RADIANCE
3     .SH NAME
4     rpict - generate a RADIANCE picture
5     .SH SYNOPSIS
6     .B rpict
7     [
8     .B options
9     ]
10     [
11     .B $EVAR
12     ]
13     [
14     .B @file
15     ]
16     [
17     .B octree
18     ]
19     .br
20     .B "rpict [ options ] \-defaults"
21     .SH DESCRIPTION
22     .I Rpict
23     generates a picture from the RADIANCE scene given in
24     .I octree
25     and sends it to the standard output.
26     If no
27     .I octree
28     is given, the standard input is read.
29     (The octree may also be specified as the output of a command
30     enclosed in quotes and preceded by a `!'.)\0
31     Options specify the viewing parameters as well as
32     giving some control over the calculation.
33     Options may be given on the command line and/or read from the
34     environment and/or read from a file.
35     A command argument beginning with a dollar sign ('$') is immediately
36     replaced by the contents of the given environment variable.
37     A command argument beginning with an at sign ('@') is immediately
38     replaced by the contents of the given file.
39     .PP
40     In the second form shown above, the default values
41     for the options (modified by those options present)
42     are printed with a brief explanation.
43     .PP
44     Most options are followed by one or more arguments, which must be
45     separated from the option and each other by white space.
46     The exceptions to this rule are the
47     .I \-vt
48     option and the boolean options.
49     Normally, the appearance of a boolean option causes a feature to
50     be "toggled", that is switched from off to on or on to off
51     depending on its previous state.
52     Boolean options may also be set
53     explicitly by following them immediately with a '+' or '-', meaning
54     on or off, respectively.
55     Synonyms for '+' are any of the characters "yYtT1", and synonyms
56     for '-' are any of the characters "nNfF0".
57     All other characters will generate an error.
58     .TP 10n
59     .BI -vt t
60     Set view type to
61     .I t.
62     If
63     .I t
64     is 'v', a perspective view is selected.
65     If
66     .I t
67     is 'l', a parallel view is used.
68     A cylindrical panorma may be selected by setting
69     .I t
70     to the letter 'c'.
71     This view is like a standard perspective vertically, but projected
72     on a cylinder horizontally (like a soupcan's-eye view).
73 greg 1.12 Three fisheye views are provided as well; 'h' yields a hemispherical fisheye
74     view, 'a' results in angular fisheye distortion, and 's'
75     results in a planisphere (stereographic) projection.
76 greg 1.1 A hemispherical fisheye is a projection of the hemisphere onto a circle.
77     The maximum view angle for this type is 180 degrees.
78     An angular fisheye view is defined such that distance from the center of
79     the image is proportional to the angle from the central view direction.
80     An angular fisheye can display a full 360 degrees.
81 greg 1.12 A planisphere fisheye view maintains angular relationships between lines,
82     and is commonly used for sun path analysis.
83     This is more commonly known as a
84     "stereographic projection," but we avoid the term here so as not to
85     confuse it with a stereoscopic pair.
86     A planisphere fisheye can display up to (but not including) 360 degrees,
87     although distortion becomes extreme as this limit is approached.
88 greg 1.1 Note that there is no space between the view type
89     option and its single letter argument.
90     .TP
91     .BI -vp " x y z"
92     Set the view point to
93     .I "x y z".
94     This is the focal point of a perspective view or the
95     center of a parallel projection.
96     .TP
97     .BI -vd " xd yd zd"
98     Set the view direction vector to
99     .I "xd yd zd".
100 greg 1.5 The length of this vector indicates the focal distance as needed by the
101     .I \-pd
102     option, described below.
103 greg 1.1 .TP
104     .BI -vu " xd yd zd"
105     Set the view up vector (vertical direction) to
106     .I "xd yd zd".
107     .TP
108     .BI -vh \ val
109     Set the view horizontal size to
110     .I val.
111     For a perspective projection (including fisheye views),
112     .I val
113     is the horizontal field of view (in degrees).
114     For a parallel projection,
115     .I val
116     is the view width in world coordinates.
117     .TP
118     .BI -vv \ val
119     Set the view vertical size to
120     .I val.
121     .TP
122     .BI -vo \ val
123     Set the view fore clipping plane at a distance of
124     .I val
125     from the view point.
126     The plane will be perpendicular to the view direction for
127     perspective and parallel view types.
128     For fisheye view types, the clipping plane is actually a clipping
129     sphere, centered on the view point with radius
130     .I val.
131     Objects in front of this imaginary surface will not be visible.
132     This may be useful for seeing through walls (to get a longer
133     perspective from an exterior view point) or for incremental
134     rendering.
135     A value of zero implies no foreground clipping.
136     A negative value produces some interesting effects, since it creates an
137     inverted image for objects behind the viewpoint.
138     This possibility is provided mostly for the purpose of rendering
139     stereographic holograms.
140     .TP
141     .BI -va \ val
142     Set the view aft clipping plane at a distance of
143     .I val
144     from the view point.
145     Like the view fore plane, it will be perpendicular to the view
146     direction for perspective and parallel view types.
147     For fisheye view types, the clipping plane is actually a clipping
148     sphere, centered on the view point with radius
149     .I val.
150     Objects behind this imaginary surface will not be visible.
151     A value of zero means no aft clipping, and is the only way to see
152     infinitely distant objects such as the sky.
153     .TP
154     .BI -vs \ val
155     Set the view shift to
156     .I val.
157     This is the amount the actual image will be shifted to the right of
158     the specified view.
159     This is option is useful for generating skewed perspectives or
160     rendering an image a piece at a time.
161     A value of 1 means that the rendered image starts just to the right of
162     the normal view.
163 greg 1.11 A value of \-1 would be to the left.
164 greg 1.1 Larger or fractional values are permitted as well.
165     .TP
166     .BI -vl \ val
167     Set the view lift to
168     .I val.
169     This is the amount the actual image will be lifted up from the
170     specified view, similar to the
171     .I \-vs
172     option.
173     .TP
174     .BI -vf \ file
175     Get view parameters from
176     .I file,
177 greg 1.3 which may be a picture or a file created by rvu (with the "view" command).
178 greg 1.1 .TP
179     .BI -x \ res
180     Set the maximum x resolution to
181     .I res.
182     .TP
183     .BI -y \ res
184     Set the maximum y resolution to
185     .I res.
186     .TP
187     .BI -pa \ rat
188     Set the pixel aspect ratio (height over width) to
189     .I rat.
190     Either the x or the y resolution will be reduced so that the pixels have
191     this ratio for the specified view.
192     If
193     .I rat
194     is zero, then the x and y resolutions will adhere to the given maxima.
195     .TP
196     .BI -ps \ size
197     Set the pixel sample spacing to the integer
198     .I size.
199     This specifies the sample spacing (in pixels) for adaptive subdivision
200     on the image plane.
201     .TP
202     .BI -pt \ frac
203     Set the pixel sample tolerance to
204     .I frac.
205     If two samples differ by more than this amount, a third
206     sample is taken between them.
207     .TP
208     .BI -pj \ frac
209     Set the pixel sample jitter to
210     .I frac.
211     Distributed ray-tracing performs anti-aliasing by randomly sampling
212     over pixels.
213     A value of one will randomly distribute samples over full
214     pixels.
215     A value of zero samples pixel centers only.
216     A value between zero and one is usually best
217     for low-resolution images.
218     .TP
219     .BI -pm \ frac
220     Set the pixel motion blur to
221     .I frac.
222     In an animated sequence, the exact view will be blurred between the previous
223     view and the next view as though a shutter were open this fraction of a
224     frame time.
225     (See the
226     .I \-S
227     option regarding animated sequences.)\0
228     The first view will be blurred according to the difference between the
229     initial view set on the command line and the first view taken from the
230     standard input.
231     It is not advisable to use this option in combination with the
232     .I pmblur(1)
233     program, since one takes the place of the other.
234     However, it may improve results with
235     .I pmblur
236     to use a very small fraction with the
237     .I \-pm
238     option, to avoid the ghosting effect of too few time samples.
239     .TP
240 greg 1.4 .BI -pd \ dia
241     Set the pixel depth-of-field aperture to a diameter of
242     .I dia
243     (in world coordinates).
244     This will be used in conjunction with the view focal distance, indicated
245     by the length of the view direction vector given in the
246     .I \-vd
247     option.
248     It is not advisable to use this option in combination with the
249     .I pdfblur(1)
250     program, since one takes the place of the other.
251     However, it may improve results with
252     .I pdfblur
253     to use a very small fraction with the
254     .I \-pd
255     option, to avoid the ghosting effect of too few samples.
256     .TP
257 greg 1.1 .BI -dj \ frac
258     Set the direct jittering to
259     .I frac.
260     A value of zero samples each source at specific sample points
261     (see the
262     .I \-ds
263     option below), giving a smoother but somewhat less accurate
264     rendering.
265     A positive value causes rays to be distributed over each
266     source sample according to its size, resulting in more accurate
267     penumbras.
268     This option should never be greater than 1, and may even
269     cause problems (such as speckle) when the value is smaller.
270     A warning about aiming failure will issued if
271     .I frac
272     is too large.
273     It is usually wise to turn off image sampling when using
274 greg 1.11 direct jitter by setting \-ps to 1.
275 greg 1.1 .TP
276     .BI -ds \ frac
277     Set the direct sampling ratio to
278     .I frac.
279     A light source will be subdivided until
280     the width of each sample area divided by the distance
281     to the illuminated point is below this ratio.
282     This assures accuracy in regions close to large area sources
283     at a slight computational expense.
284     A value of zero turns source subdivision off, sending at most one
285     shadow ray to each light source.
286     .TP
287     .BI -dt \ frac
288     Set the direct threshold to
289     .I frac.
290     Shadow testing will stop when the potential contribution of at least
291     the next and at most all remaining light source samples is less than
292     this fraction of the accumulated value.
293     (See the
294     .I \-dc
295     option below.)\0
296     The remaining light source contributions are approximated
297     statistically.
298     A value of zero means that all light source samples will be tested for shadow.
299     .TP
300     .BI \-dc \ frac
301     Set the direct certainty to
302     .I frac.
303     A value of one guarantees that the absolute accuracy of the direct calculation
304     will be equal to or better than that given in the
305     .I \-dt
306     specification.
307     A value of zero only insures that all shadow lines resulting in a contrast
308     change greater than the
309     .I \-dt
310     specification will be calculated.
311     .TP
312     .BI -dr \ N
313     Set the number of relays for secondary sources to
314     .I N.
315     A value of 0 means that secondary sources will be ignored.
316     A value of 1 means that sources will be made into first generation
317     secondary sources; a value of 2 means that first generation
318     secondary sources will also be made into second generation secondary
319     sources, and so on.
320     .TP
321     .BI -dp \ D
322     Set the secondary source presampling density to D.
323     This is the number of samples per steradian
324     that will be used to determine ahead of time whether or not
325     it is worth following shadow rays through all the reflections and/or
326     transmissions associated with a secondary source path.
327     A value of 0 means that the full secondary source path will always
328     be tested for shadows if it is tested at all.
329     .TP
330     .BR \-dv
331     Boolean switch for light source visibility.
332     With this switch off, sources will be black when viewed directly
333     although they will still participate in the direct calculation.
334     This option may be desirable in conjunction with the
335     .I \-i
336     option so that light sources do not appear in the output.
337     .TP
338     .BI -sj \ frac
339     Set the specular sampling jitter to
340     .I frac.
341     This is the degree to which the highlights are sampled
342     for rough specular materials.
343     A value of one means that all highlights will be fully sampled
344     using distributed ray tracing.
345     A value of zero means that no jittering will take place, and all
346     reflections will appear sharp even when they should be diffuse.
347     This may be desirable when used in combination with image sampling
348     (see
349     .I \-ps
350     option above) to obtain faster renderings.
351     .TP
352     .BI -st \ frac
353     Set the specular sampling threshold to
354     .I frac.
355     This is the minimum fraction of reflection or transmission, under which
356     no specular sampling is performed.
357     A value of zero means that highlights will always be sampled by
358     tracing reflected or transmitted rays.
359     A value of one means that specular sampling is never used.
360     Highlights from light sources will always be correct, but
361     reflections from other surfaces will be approximated using an
362     ambient value.
363     A sampling threshold between zero and one offers a compromise between image
364     accuracy and rendering time.
365     .TP
366     .BR -bv
367     Boolean switch for back face visibility.
368     With this switch off, back faces of opaque objects will be invisible
369     to all rays.
370     This is dangerous unless the model was constructed such that
371     all surface normals on opaque objects face outward.
372     Although turning off back face visibility does not save much
373     computation time under most circumstances, it may be useful as a
374     tool for scene debugging, or for seeing through one-sided walls from
375     the outside.
376     This option has no effect on transparent or translucent materials.
377     .TP
378     .BI -av " red grn blu"
379     Set the ambient value to a radiance of
380     .I "red grn blu".
381     This is the final value used in place of an
382     indirect light calculation.
383     If the number of ambient bounces is one or greater and the ambient
384     value weight is non-zero (see
385     .I -aw
386     and
387     .I -ab
388     below), this value may be modified by the computed indirect values
389     to improve overall accuracy.
390     .TP
391     .BI -aw \ N
392     Set the relative weight of the ambient value given with the
393     .I -av
394     option to
395     .I N.
396     As new indirect irradiances are computed, they will modify the
397     default ambient value in a moving average, with the specified weight
398     assigned to the initial value given on the command and all other
399     weights set to 1.
400     If a value of 0 is given with this option, then the initial ambient
401     value is never modified.
402     This is the safest value for scenes with large differences in
403     indirect contributions, such as when both indoor and outdoor
404     (daylight) areas are visible.
405     .TP
406     .BI -ab \ N
407     Set the number of ambient bounces to
408     .I N.
409     This is the maximum number of diffuse bounces
410     computed by the indirect calculation.
411     A value of zero implies no indirect calculation.
412     .TP
413     .BI -ar \ res
414     Set the ambient resolution to
415     .I res.
416     This number will determine the maximum density of ambient values
417     used in interpolation.
418     Error will start to increase on surfaces spaced closer than
419     the scene size divided by the ambient resolution.
420     The maximum ambient value density is the scene size times the
421     ambient accuracy (see the
422     .I \-aa
423     option below) divided by the ambient resolution.
424     The scene size can be determined using
425     .I getinfo(1)
426     with the
427     .I \-d
428     option on the input octree.
429     A value of zero is interpreted as unlimited resolution.
430     .TP
431     .BI -aa \ acc
432     Set the ambient accuracy to
433     .I acc.
434     This value will approximately equal the error
435     from indirect illuminance interpolation.
436     A value of zero implies no interpolation.
437     .TP
438     .BI -ad \ N
439     Set the number of ambient divisions to
440     .I N.
441     The error in the Monte Carlo calculation of indirect
442     illuminance will be inversely proportional to the square
443     root of this number.
444     A value of zero implies no indirect calculation.
445     .TP
446     .BI -as \ N
447     Set the number of ambient super-samples to
448     .I N.
449     Super-samples are applied only to the ambient divisions which
450     show a significant change.
451     .TP
452     .BI -af \ fname
453     Set the ambient file to
454     .I fname.
455     This is where indirect illuminance will be stored and retrieved.
456     Normally, indirect illuminance values are kept in memory and
457     lost when the program finishes or dies.
458     By using a file, different invocations can share illuminance
459     values, saving time in the computation.
460     Also, by creating an ambient file during a low resolution rendering,
461     better results can be obtained in a second high resolution pass.
462     The ambient file is in a machine-independent binary format
463     which may be examined with
464     .I lookamb(1).
465     .IP
466     The ambient file may also be used as a means of communication and
467     data sharing between simultaneously executing processes.
468     The same file may be used by multiple processes, possibly running on
469     different machines and accessing the file via the network (ie.
470     .I nfs(4)).
471     The network lock manager
472     .I lockd(8)
473     is used to insure that this information is used consistently.
474     .IP
475     If any calculation parameters are changed or the scene
476     is modified, the old ambient file should be removed so that
477     the calculation can start over from scratch.
478     For convenience, the original ambient parameters are listed in the
479     header of the ambient file.
480     .I Getinfo(1)
481     may be used to print out this information.
482     .TP
483 greg 1.7 .BI -ae \ mod
484 greg 1.1 Append
485 greg 1.7 .I mod
486 greg 1.1 to the ambient exclude list,
487     so that it will not be considered during the indirect calculation.
488     This is a hack for speeding the indirect computation by
489     ignoring certain objects.
490     Any object having
491 greg 1.7 .I mod
492 greg 1.1 as its modifier will get the default ambient
493     level rather than a calculated value.
494 greg 1.7 Any number of excluded modifiers may be given, but each
495 greg 1.1 must appear in a separate option.
496     .TP
497 greg 1.7 .BI -ai \ mod
498 greg 1.1 Add
499 greg 1.7 .I mod
500 greg 1.1 to the ambient include list,
501     so that it will be considered during the indirect calculation.
502     The program can use either an include list or an exclude
503     list, but not both.
504     .TP
505     .BI -aE \ file
506     Same as
507     .I \-ae,
508 greg 1.7 except read modifiers to be excluded from
509 greg 1.1 .I file.
510     The RAYPATH environment variable determines which directories are
511     searched for this file.
512 greg 1.7 The modifier names are separated by white space in the file.
513 greg 1.1 .TP
514     .BI -aI \ file
515     Same as
516     .I \-ai,
517 greg 1.7 except read modifiers to be included from
518 greg 1.1 .I file.
519     .TP
520     .BI -me " rext gext bext"
521     Set the global medium extinction coefficient to the indicated color,
522     in units of 1/distance (distance in world coordinates).
523     Light will be scattered or absorbed over distance according to
524     this value.
525     The ratio of scattering to total scattering plus absorption is set
526     by the albedo parameter, described below.
527     .TP
528     .BI -ma " ralb galb balb"
529     Set the global medium albedo to the given value between 0\00\00
530     and 1\01\01.
531     A zero value means that all light not transmitted by the medium
532     is absorbed.
533     A unitary value means that all light not transmitted by the medium
534     is scattered in some new direction.
535     The isotropy of scattering is determined by the Heyney-Greenstein
536     parameter, described below.
537     .TP
538     .BI \-mg \ gecc
539     Set the medium Heyney-Greenstein eccentricity parameter to
540     .I gecc.
541     This parameter determines how strongly scattering favors the forward
542     direction.
543     A value of 0 indicates perfectly isotropic scattering.
544     As this parameter approaches 1, scattering tends to prefer the
545     forward direction.
546     .TP
547     .BI \-ms \ sampdist
548     Set the medium sampling distance to
549     .I sampdist,
550     in world coordinate units.
551     During source scattering, this will be the average distance between
552     adjacent samples.
553     A value of 0 means that only one sample will be taken per light
554     source within a given scattering volume.
555     .TP
556     .BR \-i
557     Boolean switch to compute irradiance rather than radiance values.
558     This only affects the final result, substituting a Lambertian
559     surface and multiplying the radiance by pi.
560     Glass and other transparent surfaces are ignored during this stage.
561     Light sources still appear with their original radiance values,
562     though the
563     .I \-dv
564     option (above) may be used to override this.
565     .TP
566 greg 1.10 .BR \-u
567     Boolean switch to control uncorrelated random sampling.
568 greg 1.9 When "off", a low-discrepancy sequence is used, which reduces
569     variance but can result in a brushed appearance in specular highlights.
570     When "on", pure Monte Carlo sampling is used in all calculations.
571     .TP
572 greg 1.1 .BI -lr \ N
573     Limit reflections to a maximum of
574     .I N.
575 greg 1.8 If
576     .I N
577     is zero, then Russian roulette is used for ray
578     termination, and the
579     .I -lw
580     setting (below) must be positive.
581     If N is a negative integer, then this sets the upper limit
582     of reflections past which Russian roulette will not be used.
583     In scenes with dielectrics and total internal reflection,
584     a setting of 0 (no limit) may cause a stack overflow.
585 greg 1.1 .TP
586     .BI -lw \ frac
587     Limit the weight of each ray to a minimum of
588     .I frac.
589 greg 1.8 During ray-tracing, a record is kept of the estimated contribution
590     (weight) a ray would have in the image.
591     If this weight is less than the specified minimum and the
592     .I -lr
593     setting (above) is positive, the ray is not traced.
594     Otherwise, Russian roulette is used to
595     continue rays with a probability equal to the ray weight
596     divided by the given
597     .I frac.
598 greg 1.1 .TP
599     .BI -S \ seqstart
600     Instead of generating a single picture based only on the view
601     parameters given on the command line, this option causes
602     .I rpict
603     to read view options from the standard input and for each line
604     containing a valid view specification, generate a corresponding
605     picture.
606     This option is most useful for generating animated sequences, though
607     it may also be used to control rpict from a remote process for
608     network-distributed rendering.
609     .I Seqstart
610     is a positive integer that will be associated with the first output
611     frame, and incremented for successive output frames.
612     By default, each frame is concatenated to the output stream, but it
613     is possible to change this action using the
614     .I \-o
615     option (described below).
616     Multiple frames may be later extracted from the output using
617     .I ra_rgbe(1).
618     .IP
619     Note that the octree may not be read from the standard input when
620     using this option.
621     .TP
622     .BI -o \ fspec
623     Send the picture(s) to the file(s) given by
624     .I fspec
625     instead of the standard output.
626     If this option is used in combination with
627     .I \-S
628     and
629     .I fspec
630     contains an integer field for
631     .I printf(3)
632     (eg. "%03d") then the actual output file name will include
633     the current frame number.
634     .I Rpict
635     will not allow a picture file to be clobbered (overwritten)
636     with this option.
637     If an image in a sequence already exists
638     .I (\-S
639     option),
640     .I rpict
641     will skip until it reaches an image that doesn't, or the end of
642     the sequence.
643     This is useful for running rpict on multiple machines or processors
644     to render the same sequence, as each process will skip to the next
645     frame that needs rendering.
646     .TP
647     .BI -r \ fn
648     Recover pixel information from the file
649     .I fn.
650     If the program gets killed during picture generation, the information
651     may be recovered using this option.
652     The view parameters and picture dimensions are also recovered from
653     .I fn
654     if possible.
655     The other options should be identical to those which created
656     .I fn,
657     or an inconsistent picture may result.
658     If
659     .I fn
660     is identical to the file specification given with the
661     .I \-o
662     option,
663     .I rpict
664     will rename the file prior to copying its contents.
665     This insures that the old file is not overwritten accidentally.
666     (See also the
667     .I \-ro
668     option, below.)\0
669     .IP
670     If
671     .I fn
672     is an integer and the recover option is used in combination with the
673     .I \-S
674     option, then
675     .I rpict
676     skips a number of view specifications on its input equal to the
677     difference between
678     .I fn
679     and
680     .I seqstart.
681     .I Rpict
682     then performs a recovery operation on the file constructed from the
683     frame number
684     .I fn
685     and the output file specification given with the
686     .I \-o
687     option.
688     This provides a convenient mechanism for recovering in the middle of
689     an aborted picture sequence.
690     .IP
691     The recovered file
692     will be removed if the operation is successful.
693     If the recover operation fails (due to lack of disk space)
694     and the output file and recover file specifications
695     are the same, then the original information may be left in a
696     renamed temporary file.
697     (See FILES section, below.)\0
698     .TP
699     .BI -ro \ fspec
700     This option causes pixel information to be recovered from and
701     subsequently returned to the picture file
702     .I fspec.
703     The effect is the same as specifying identical recover and output
704     file names with the
705     .I \-r
706     and
707     .I \-o
708     options.
709     .TP
710     .BI -z \ fspec
711     Write pixel distances out to the file
712     .I fspec.
713     The values are written as short floats, one per pixel in scanline order,
714     as required by
715     .I pinterp(1).
716     Similar to the
717     .I \-o
718     option, the actual file name will be constructed using
719     .I printf
720     and the frame number from the
721     .I \-S
722     option.
723     If used with the
724     .I \-r
725     option,
726     .I \-z
727     also recovers information from an aborted rendering.
728     .TP
729     .BI \-P \ pfile
730     Execute in a persistent mode, using
731     .I pfile
732     as the control file.
733     This option must be used together with
734     .I \-S,
735     and is incompatible with the recover option
736     .I (\-r).
737     Persistent execution means that after reaching end-of-file on
738     its input,
739     .I rpict
740     will fork a child process that will wait for another
741     .I rpict
742     command with the same
743     .I \-P
744     option to attach to it.
745     (Note that since the rest of the command line options will be those
746     of the original invocation, it is not necessary to give any arguments
747     besides
748     .I \-P
749     for subsequent calls.)
750     Killing the process is achieved with the
751     .I kill(1)
752     command.
753     (The process ID in the first line of
754     .I pfile
755     may be used to identify the waiting
756     .I rpict
757     process.)
758     This option may be less useful than the
759     .I \-PP
760     variation, explained below.
761     .TP
762     .BI \-PP \ pfile
763     Execute in continuous-forking persistent mode, using
764     .I pfile
765     as the control file.
766     The difference between this option and the
767     .I \-P
768     option described above is the creation of multiple duplicate
769     processes to handle any number of attaches.
770     This provides a simple and reliable mechanism of memory sharing
771     on most multiprocessing platforms, since the
772     .I fork(2)
773     system call will share memory on a copy-on-write basis.
774     This option may be used with
775     .I rpiece(1)
776     to efficiently render a single image using multiple processors
777     on the same host.
778     .TP
779     .BI -t \ sec
780     Set the time between progress reports to
781     .I sec.
782     A progress report writes the number of rays traced, the percentage
783     completed, and the CPU usage to the standard error.
784     Reports are given either automatically after the specified interval,
785 greg 1.11 or when the process receives a continue (\-CONT) signal (see
786 greg 1.1 .I kill(1)).
787     A value of zero turns automatic reporting off.
788     .TP
789     .BI -e \ efile
790     Send error messages and progress reports to
791     .I efile
792     instead of the standard error.
793     .TP
794     .BR \-w
795     Boolean switch for warning messages.
796     The default is to print warnings, so the first appearance of
797     this option turns them off.
798     .SH EXAMPLE
799 greg 1.11 rpict \-vp 10 5 3 \-vd 1 \-.5 0 scene.oct > scene.pic
800 greg 1.1 .PP
801 greg 1.11 rpict \-S 1 \-o frame%02d.pic scene.oct < keyframes.vf
802 greg 1.1 .SH ENVIRONMENT
803     RAYPATH the directories to check for auxiliary files.
804     .SH FILES
805 greg 1.6 /tmp/rtXXXXXX common header information for picture sequence
806 greg 1.1 .br
807     rfXXXXXX temporary name for recover file
808     .SH DIAGNOSTICS
809     If the program terminates from an input related error, the exit status
810     will be 1.
811     A system related error results in an exit status of 2.
812     If the program receives a signal that is caught, it will exit with a status
813     of 3.
814     In each case, an error message will be printed to the standard error, or
815     to the file designated by the
816     .I \-e
817     option.
818     .SH AUTHOR
819     Greg Ward
820     .SH "SEE ALSO"
821 greg 1.4 getinfo(1), lookamb(1), oconv(1), pdfblur(1), pfilt(1), pinterp(1), pmblur(1),
822 greg 1.3 printf(3), ra_rgbe(1), rad(1), rtrace(1), rvu(1)