405 |
|
.BI -ab \ N |
406 |
|
Set the number of ambient bounces to |
407 |
|
.I N. |
408 |
< |
This is the maximum number of diffuse bounces |
409 |
< |
computed by the indirect calculation. |
410 |
< |
A value of zero implies no indirect calculation. |
408 |
> |
This is the maximum number of diffuse bounces computed by the indirect |
409 |
> |
calculation. A value of zero implies no indirect calculation. |
410 |
> |
.IP |
411 |
> |
This value defaults to 1 in photon mapping mode (see |
412 |
> |
.I -ap |
413 |
> |
below), implying that global photon irradiance is always computed via |
414 |
> |
.I one |
415 |
> |
ambient bounce; this behaviour applies to any positive number of ambient |
416 |
> |
bounces, regardless of the actual value specified. A negative value enables |
417 |
> |
a preview mode that directly visualises the irradiance from the global |
418 |
> |
photon map without any ambient bounces. |
419 |
|
.TP |
420 |
|
.BI -ar \ res |
421 |
|
Set the ambient resolution to |
524 |
|
except read modifiers to be included from |
525 |
|
.I file. |
526 |
|
.TP |
527 |
+ |
.BI -ap " file [bwidth1 [bwidth2]]" |
528 |
+ |
Enable photon mapping mode. Loads a photon map generated with |
529 |
+ |
.I mkpmap(1) |
530 |
+ |
from |
531 |
+ |
.I file, |
532 |
+ |
and evaluates the indirect irradiance depending on the photon type |
533 |
+ |
(automagically detected) using density estimates with a bandwidth of |
534 |
+ |
.I bwidth1 |
535 |
+ |
photons, or the default bandwidth if none is specified (a warning will be |
536 |
+ |
issued in this case). |
537 |
+ |
.IP |
538 |
+ |
Global photon irradiance is evaluated as part of the ambient calculation (see |
539 |
+ |
.I \-ab |
540 |
+ |
above), caustic photon irradiance is evaluated at primary rays, and |
541 |
+ |
indirect inscattering in |
542 |
+ |
.I mist |
543 |
+ |
is accounted for by volume photons. |
544 |
+ |
.IP |
545 |
+ |
Additionally specifying |
546 |
+ |
.I bwidth2 |
547 |
+ |
enables bias compensation for the density estimates with a |
548 |
+ |
minimum and maximum bandwidth of |
549 |
+ |
.I bwidth1 |
550 |
+ |
and |
551 |
+ |
.I bwidth2, |
552 |
+ |
respectively. |
553 |
+ |
.IP |
554 |
+ |
Global photon irradiance may be optionally precomputed by |
555 |
+ |
.I mkpmap(1), |
556 |
+ |
in which case the bandwidth, if specified, is ignored, as the nearest photon |
557 |
+ |
is invariably looked up. |
558 |
+ |
.IP |
559 |
+ |
Using direct photons replaces the direct calculation with density estimates |
560 |
+ |
for debugging and validation of photon emission. |
561 |
+ |
.TP |
562 |
+ |
.BI -am " frac" |
563 |
+ |
Maximum search radius for photon map lookups. Without this option, an |
564 |
+ |
initial maximum search radius is estimated for each photon map from the |
565 |
+ |
average photon distance to the distribution's centre of gravity. It is then |
566 |
+ |
adapted to the photon density in subsequent lookups. This option imposes a |
567 |
+ |
global fixed maximum search radius for |
568 |
+ |
.I all |
569 |
+ |
photon maps, thus defeating the automatic adaptation. It is useful when |
570 |
+ |
multiple warnings about short photon lookups are issued. Note that this |
571 |
+ |
option does not conflict with the bandwidth specified with the |
572 |
+ |
.I \-ap |
573 |
+ |
option; the number of photons found will not exceed the latter, but may be |
574 |
+ |
lower if the maximum search radius contains fewer photons, thus resulting in |
575 |
+ |
short lookups. Setting this radius too large, on the other hand, may |
576 |
+ |
degrade performance. |
577 |
+ |
.TP |
578 |
|
.BI -me " rext gext bext" |
579 |
|
Set the global medium extinction coefficient to the indicated color, |
580 |
|
in units of 1/distance (distance in world coordinates). |
624 |
|
.BR \-u |
625 |
|
Boolean switch to control uncorrelated random sampling. |
626 |
|
When "off", a low-discrepancy sequence is used, which reduces |
627 |
< |
variance but can result in a brushed appearance in specular highlights. |
627 |
> |
variance but can result in a dithered appearance in specular highlights. |
628 |
|
When "on", pure Monte Carlo sampling is used in all calculations. |
629 |
|
.TP |
630 |
|
.BI -lr \ N |
858 |
|
rpict \-vp 10 5 3 \-vd 1 \-.5 0 scene.oct > scene.hdr |
859 |
|
.PP |
860 |
|
rpict \-S 1 \-o frame%02d.hdr scene.oct < keyframes.vf |
861 |
+ |
.PP |
862 |
+ |
To render ambient illuminance in photon mapping mode from a global photon |
863 |
+ |
map global.pm via one ambient bounce, and from a caustic photon map |
864 |
+ |
caustic.pm: |
865 |
+ |
.IP "" .2i |
866 |
+ |
rpict -ab 1 -ap global.pm 50 -ap caustic.pm 50 -vf scene.vf scene.oct > |
867 |
+ |
scene.hdr |
868 |
|
.SH ENVIRONMENT |
869 |
|
RAYPATH the directories to check for auxiliary files. |
870 |
|
.SH FILES |
884 |
|
.SH AUTHOR |
885 |
|
Greg Ward |
886 |
|
.SH "SEE ALSO" |
887 |
< |
getinfo(1), lookamb(1), oconv(1), pdfblur(1), pfilt(1), pinterp(1), pmblur(1), |
888 |
< |
printf(3), ra_rgbe(1), rad(1), rtrace(1), rvu(1) |
887 |
> |
getinfo(1), lookamb(1), mkpmap(1), oconv(1), pdfblur(1), pfilt(1), |
888 |
> |
pinterp(1), pmblur(1), printf(3), ra_rgbe(1), rad(1), rtrace(1), rvu(1) |