ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/doc/man/man1/rtrace.1
(Generate patch)

Comparing ray/doc/man/man1/rtrace.1 (file contents):
Revision 1.26 by greg, Tue Feb 24 19:39:26 2015 UTC vs.
Revision 1.45 by greg, Fri Dec 5 17:51:34 2025 UTC

# Line 16 | Line 16 | rtrace - trace rays in RADIANCE scene
16   .B octree
17   .br
18   .B "rtrace [ options ] \-defaults"
19 + .br
20 + .B "rtrace \-features [feat1 ..]"
21   .SH DESCRIPTION
22   .I Rtrace
23   traces rays from the standard input through the RADIANCE scene given by
# Line 35 | Line 37 | value is one or zero.
37   This may be useful for programs that run
38   .I rtrace
39   as a separate process.
40 < In the second form, the default values
40 > .PP
41 > In the second form shown above, the default values
42   for the options (modified by those options present)
43   are printed with a brief explanation.
44   .PP
45 + In the third form, a list of supported features is sent
46 + to the standard output, one per line.
47 + If additional arguments follow, they are checked for presence in
48 + this list.
49 + If a feature includes subfeatures, these may be checked as well by
50 + specifying:
51 + .nf
52 +
53 +        rtrace -features FeatName=subfeat1,subfeat2
54 +
55 + .fi
56 + If any named feature or subfeature is missing, an error is
57 + reported and the program returns an error status.
58 + If all of the named features are present, a zero status is returned.
59 + .PP
60   Options may be given on the command line and/or read from the
61   environment and/or read from a file.
62   A command argument beginning with a dollar sign ('$') is immediately
# Line 68 | Line 86 | understands the following input and output formats:  '
86   ascii, 'f' for single-precision floating point,
87   and 'd' for double-precision floating point.
88   In addition to these three choices, the character 'c' may be used
89 < to denote 4-byte floating point (Radiance) color format
90 < for the output of values only
91 < .I (\-ov
92 < option, below).
89 > to denote 4-byte RGBE (Radiance) color format
90 > for the output of individual color values only, and the
91 > .I \-x
92 > and
93 > .I \-y
94 > options should also be specified to create a valid output picture.
95   If the output character is missing, the input format is used.
96   .IP
97   Note that there is no space between this option and its argument.
# Line 111 | Line 131 | m      modifier name
131   .IP
132   M       material name
133   .IP
134 + r       mirrored value contribution
135 + .IP
136 + x       unmirrored value contribution
137 + .IP
138 + R       mirrored ray length
139 + .IP
140 + X       unmirrored ray length
141 + .IP
142   ~       tilde (end of trace marker)
143   .IP
144   If the letter 't' appears in
# Line 178 | Line 206 | though the
206   .I \-dv
207   option (below) may be used to override this.
208   This option is especially useful in
209 < conjunction with ximage(1) for computing illuminance at scene points.
209 > conjunction with ximage(1) for computing irradiance at scene points.
210   .TP
211   .BR \-u
212   Boolean switch to control uncorrelated random sampling.
# Line 232 | Line 260 | This is mostly useful for recovering image dimensions
260   and for creating valid Radiance picture files using the color output
261   format.
262   (See the
263 < .I \-f
263 > .I \-f*
264   option, above.)
265   .TP
266   .BI -n \ nproc
# Line 253 | Line 281 | cores available on the system or the
281   .I \-x
282   setting, which forces a wait at each flush.
283   .TP
284 + .BI -f \ source
285 + Load function and variable definitions from the file
286 + .I source
287 + and assign at the global level.
288 + This may be convenient for altering material appearance on a per-run basis.
289 + The usual set of library directories is searched based on the
290 + .I RAYPATH
291 + environment variable.
292 + These file definitions will override same-named variables
293 + and functions in "rayinit.cal".
294 + .TP
295 + .BI -e \ expr
296 + Set initial definitions from
297 + .I expr,
298 + which may include constant assignments with the ':' character.
299 + .TP
300   .BI -dj \ frac
301   Set the direct jittering to
302   .I frac.
# Line 307 | Line 351 | change greater than the
351   specification will be calculated.
352   .TP
353   .BI -dr \ N
354 < Set the number of relays for secondary sources to
354 > Set the number of relays for virtual sources to
355   .I N.
356 < A value of 0 means that secondary sources will be ignored.
356 > A value of 0 means that virtual sources will be ignored.
357   A value of 1 means that sources will be made into first generation
358 < secondary sources; a value of 2 means that first generation
359 < secondary sources will also be made into second generation secondary
358 > virtual sources; a value of 2 means that first generation
359 > virtual sources will also be made into second generation virtual
360   sources, and so on.
361   .TP
362   .BI -dp \ D
363 < Set the secondary source presampling density to D.
363 > Set the virtual source presampling density to D.
364   This is the number of samples per steradian
365   that will be used to determine ahead of time whether or not
366   it is worth following shadow rays through all the reflections and/or
367 < transmissions associated with a secondary source path.
368 < A value of 0 means that the full secondary source path will always
367 > transmissions associated with a virtual source path.
368 > A value of 0 means that the full virtual source path will always
369   be tested for shadows if it is tested at all.
370   .TP
371   .BR \-dv
# Line 404 | Line 448 | Set the number of ambient bounces to
448   This is the maximum number of diffuse bounces computed by the indirect
449   calculation. A value of zero implies no indirect calculation.
450   .IP
451 < In photon mapping mode (see
451 > This value defaults to 1 in photon mapping mode (see
452   .I -ap
453 < below), a positive value implies that global photon irradiance is
410 < always computed via
453 > below), implying that global photon irradiance is always computed via
454   .I one
455 < ambient bounce. A negative value enables a preview mode that directly
456 < visualises the irradiance from the global photon map without any ambient
457 < bounces.
455 > ambient bounce; this behaviour applies to any positive number of ambient
456 > bounces, regardless of the actual value specified.  A negative value enables
457 > a preview mode that directly visualises the irradiance from the global
458 > photon map without any ambient bounces.
459   .TP
460   .BI -ar \ res
461   Set the ambient resolution to
# Line 434 | Line 478 | option on the input octree.
478   Set the ambient accuracy to
479   .I acc.
480   This value will approximately equal the error
481 < from indirect illuminance interpolation.
481 > from indirect irradiance interpolation.
482   A value of zero implies no interpolation.
483   .TP
484   .BI -ad \ N
485   Set the number of ambient divisions to
486   .I N.
487   The error in the Monte Carlo calculation of indirect
488 < illuminance will be inversely proportional to the square
488 > irradiance will be inversely proportional to the square
489   root of this number.
490   A value of zero implies no indirect calculation.
491   .TP
# Line 454 | Line 498 | show a significant change.
498   .BI -af \ fname
499   Set the ambient file to
500   .I fname.
501 < This is where indirect illuminance will be stored and retrieved.
502 < Normally, indirect illuminance values are kept in memory and
501 > This is where indirect irradiance will be stored and retrieved.
502 > Normally, indirect irradiance values are kept in memory and
503   lost when the program finishes or dies.
504 < By using a file, different invocations can share illuminance
504 > By using a file, different invocations can share irradiance
505   values, saving time in the computation.
506   The ambient file is in a machine-independent binary format
507   which can be examined with
# Line 533 | Line 577 | Global photon irradiance is evaluated as part of the a
577   above), caustic photon irradiance is evaluated at primary rays, and
578   indirect inscattering in
579   .I mist
580 < is accounted for by volume photons.
580 > is accounted for by volume photons. Contribution photons are treated as
581 > global photons by
582 > .I rtrace.
583   .IP
584   Additionally specifying
585   .I bwidth2
# Line 553 | Line 599 | Using direct photons replaces the direct calculation w
599   for debugging and validation of photon emission.      
600   .TP
601   .BI -am " frac"
602 < Coefficient for maximum search radius for photon map lookups. The search
603 < radius is automatically determined based on the average photon distance to the
604 < distribution's centre of gravity, and scaled by this coefficient. Increase this
605 < value if multiple warnings about short photon lookups are issued.
602 > Maximum search radius for photon map lookups.  Without this option, an
603 > initial maximum search radius is estimated for each photon map from the
604 > average photon distance to the distribution's centre of gravity.  It is then
605 > adapted to the photon density in subsequent lookups.  This option imposes a
606 > global fixed maximum search radius for
607 > .I all
608 > photon maps, thus defeating the automatic adaptation.  It is useful when
609 > multiple warnings about short photon lookups are issued.  Note that this
610 > option does not conflict with the bandwidth specified with the
611 > .I \-ap
612 > option; the number of photons found will not exceed the latter, but may be
613 > lower if the maximum search radius contains fewer photons, thus resulting in
614 > short lookups.  Setting this radius too large, on the other hand, may
615 > degrade performance.
616   .TP
617 + .BI -ac " pagesize"
618 + Set the photon cache page size when using out-of-core photon mapping. The
619 + photon cache reduces disk I/O incurred by on-demand loading (paging) of
620 + photons, and thus increases performance. This
621 + is expressed as a (float) multiple of the density estimate bandwidth
622 + specified with
623 + .I \-ap
624 + under the assumption that photon lookups are local to a cache page. Cache
625 + performance is sensitive to this parameter: larger pagesizes will reduce the
626 + paging frequency at the expense of higher latency when paging does occur.
627 + Sensible values are in the range 4 (default) to 16.
628 + .TP
629 + .BI -aC " cachesize"
630 + Set the total number of photons cached when using out-of-core photon
631 + mapping, taking into account the pagesize specified by
632 + .I \-ac.
633 + Note that this is approximate as the number of cache pages is rounded to
634 + the nearest prime. This allows adapting the cache to the available physical
635 + memory. In conjunction with the
636 + .I \-n
637 + option, this is the cache size
638 + .I per parallel process.
639 + Cache performance is less sensitive to this parameter,
640 + and reasonable performance can obtained with as few as 10k photons. The
641 + default is 1M. This option recognises multiplier suffixes (k = 1e3, M =
642 + 1e6), both in upper and lower case.
643 + .TP
644   .BI -me " rext gext bext"
645   Set the global medium extinction coefficient to the indicated color,
646   in units of 1/distance (distance in world coordinates).
# Line 604 | Line 687 | is zero or negative, then Russian roulette is used for
687   termination, and the
688   .I -lw
689   setting (below) must be positive.
690 < If N is a negative integer, then this sets the upper limit
691 < of reflections past which Russian roulette will be used.
690 > If N is a negative integer, then this limits the maximum
691 > number of reflections even with Russian roulette.
692   In scenes with dielectrics and total internal reflection,
693   a setting of 0 (no limit) may cause a stack overflow.
694   .TP
# Line 622 | Line 705 | continue rays with a probability equal to the ray weig
705   divided by the given
706   .I frac.
707   .TP
708 < .BR -ld
708 > .BR \-ld
709   Boolean switch to limit ray distance.
710   If this option is set, then rays will only be traced as far as the
711   magnitude of each direction vector.
712   Otherwise, vector magnitude is ignored and rays are traced to infinity.
713   .TP
714 + .BI -cs \ Ns
715 + Use
716 + .I Ns
717 + bands for spectral sampling rather than the default RGB calculation space.
718 + The maximum setting is controlled by the compiler macro MAXCSAMP, and
719 + defaults to 24.
720 + Larger values for Ns will be reduced to MAXCSAMP.
721 + .TP
722 + .BI -cw " nmA nmB"
723 + Set extrema to the given wavelengths for spectral sampling.
724 + The default is 380 and 780 nanometers.
725 + The order specified does not matter.
726 + .TP
727 + .BR \-co
728 + Boolean switch turns on spectral data output if selected.
729 + The default is to reduce spectral results to RGB, but see the related
730 + .I \-p*
731 + options, below.
732 + .TP
733 + .BI -pc " xr yr xg yg xb yb xw yw"
734 + Use the specified chromaticity pairs for output primaries and white
735 + point rather than the standard RGB color space.
736 + .TP
737 + .BR \-pRGB
738 + Output standard RGB values (the default).
739 + .TP
740 + .BR \-pXYZ
741 + Output standard CIE XYZ tristimulus values rather than RGB.
742 + .TP
743 + .BR \-pY
744 + Produce a single output channel corresponding to photopic luminance.
745 + .TP
746 + .BR \-pS
747 + Produce a single output channel corresponding to scotopic luminance.
748 + .TP
749 + .BR \-pM
750 + Produce a single output channel corresponding to melanopic luminance.
751 + .TP
752 + .BR \-pA
753 + Produce a single output channel corresponding to the total radiometric flux
754 + over the rendered spectrum.
755 + .TP
756   .BI -e \ efile
757   Send error messages and progress reports to
758   .I efile
# Line 690 | Line 815 | To compute radiance values for the rays listed in samp
815   .IP "" .2i
816   rtrace \-ov scene.oct < samples.inp > radiance.out
817   .PP
818 < To compute illuminance values at locations selected with the 't'
818 > To compute irradiance values at locations selected with the 't'
819   command of
820   .I ximage(1):
821   .IP "" .2i
# Line 705 | Line 830 | To compute an image with an unusual view mapping:
830   cnt 480 640 | rcalc \-e 'xr:640;yr:480' \-f unusual_view.cal | rtrace
831   \-x 640 \-y 480 \-fac scene.oct > unusual.hdr
832   .PP
833 < To compute ambient illuminance in photon mapping mode from a global photon
833 > To compute ambient irradiance in photon mapping mode from a global photon
834   map global.pm via one ambient bounce, and from a caustic photon map
835   caustic.pm at sensor positions in samples.inp:
836   .IP "" .2i
# Line 728 | Line 853 | option.
853   .SH AUTHOR
854   Greg Ward
855   .SH "SEE ALSO"
856 < getinfo(1), lookamb(1), mkpmap(1), oconv(1), pfilt(1), pinterp(1),
857 < pvalue(1), rpict(1), rcontrib(1), rvu(1), vwrays(1), ximage(1)
856 > dctimestep(1), getinfo(1), lookamb(1),
857 > mkpmap(1), oconv(1), pfilt(1), pinterp(1),
858 > pvalue(1), rcalc(1), rcomb(1), rcontrib(1), rcrop(1),
859 > rmtxop(1), rsplit(1),
860 > rpict(1), rtpict(1), rvu(1), vwrays(1), ximage(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)