6 |
|
|
7 |
|
.SH SYNOPSIS |
8 |
|
pmapdump [\fB-n\fR \fInspheres1\fR] [\fB-r\fR \fIradscale1\fR] |
9 |
< |
[\fB-c\fR \fIrcol1\fR \fIgcol1\fR \fIbcol1\fR] \fIpmap1\fR |
10 |
< |
[\fB-n\fR \fInspheres2\fR] [\fB-r\fR \fIradscale2\fR] |
11 |
< |
[\fB-c\fR \fIrcol2\fR \fIgcol2\fR \fIbcol2\fR] \fIpmap2\fR ... |
9 |
> |
[\fB-f\fR | \fB-c\fR \fIrcol1\fR \fIgcol1\fR \fIbcol1\fR] \fIpmap1\fR |
10 |
> |
[\fB-n\fR \fInspheres2\fR] [\fB-r\fR \fIradscale2\fR] |
11 |
> |
[\fB-f\fR | \fB-c\fR \fIrcol2\fR \fIgcol2\fR \fIbcol2\fR] \fIpmap2\fR |
12 |
> |
... |
13 |
|
|
14 |
|
.SH DESCRIPTION |
15 |
|
\fIpmapdump\fR takes one or more photon map files generated with |
16 |
|
\fImkpmap(1)\fR as input and sends a RADIANCE scene description of their |
17 |
< |
photon distributions to the standard output. This can be visualised with |
17 |
> |
photon distributions to the standard output. Photons are represented as |
18 |
> |
spheres of material type \fIglow\fR. These can be visualised with |
19 |
|
e.g. \fIobjview(1)\fR, \fIrpict(1)\fR, or \fIrvu(1)\fR to assess the |
20 |
< |
location and local density of photons in relation to the scene geometry. |
20 |
> |
location and local density of photons in relation to the scene geometry. No |
21 |
> |
additional light sources are necessary, as the spheres representing the |
22 |
> |
photons are self-luminous. |
23 |
|
.PP |
24 |
|
An arbitrary number of photon maps can be specified on the command line and |
25 |
< |
the respective photon type is determined automagically. The different |
26 |
< |
photon types are visualised as colour coded spheres according to the |
27 |
< |
following default schema: |
25 |
> |
the respective photon type is determined automagically. Per default, the |
26 |
> |
different photon types are visualised as colour coded spheres according to |
27 |
> |
the following default schema: |
28 |
|
.IP |
29 |
|
\fIBlue\fR: global photons |
30 |
|
.br |
39 |
|
\fIYellow\fR: contribution photons |
40 |
|
.PP |
41 |
|
These colours can be overridden for individual photon maps with the \fB-c\fR |
42 |
< |
option (see below). |
42 |
> |
option (see below). Alternatively, photons can be individually coloured |
43 |
> |
according to their actual RGB flux with the \fB-f\fR option (see below); |
44 |
> |
while this makes it difficult to discern photon types, it can be used to |
45 |
> |
quantitatively analyse colour bleeding effects. |
46 |
|
|
47 |
|
.SH OPTIONS |
48 |
|
Options are effective for the photon map file immediately following on the |
69 |
|
Specifies a custom sphere colour for the next photon map. The colour is |
70 |
|
specified as an RGB triplet, with each component in the range (0..1]. |
71 |
|
Without this option, the default colour for the corresponding photon type |
72 |
< |
is used. |
72 |
> |
is used. This option is mutually exclusive with \fB-f\fR. |
73 |
|
|
74 |
+ |
.IP "\fB-f\fR" |
75 |
+ |
Boolean switch to colour each sphere according to the corresponding photon's |
76 |
+ |
RGB flux instead of a constant colour. Note that the resulting colours can |
77 |
+ |
span several orders of magnitude and may require tone mapping with |
78 |
+ |
\fIpcond(1)\fR for visualisation. This option is mutually exclusive with |
79 |
+ |
\fB-c\fR. |
80 |
+ |
|
81 |
|
.SH NOTES |
82 |
|
The output may contain many overlapping spheres in areas with high photon |
83 |
|
density, particularly in caustics. This results in inefficient and slow |
85 |
|
reducing \fInspheres\fR and/or \fIradscale\fR. |
86 |
|
|
87 |
|
.SH EXAMPLES |
88 |
< |
To visualise the distribution of global and caustic photons superimposed |
88 |
> |
Visualise the distribution of global and caustic photons superimposed |
89 |
|
on the scene geometry with 5000 pale red and 10000 pale blue spheres, |
90 |
|
respectively: |
91 |
|
.IP |
92 |
|
pmapdump -n 5k -c 1 0.4 0.4 global.pm -n 10k -c 0.4 0.4 1 caustic.pm | |
93 |
|
oconv - scene.rad > scene_pmdump.oct |
94 |
|
.PP |
95 |
< |
Alternatively, the dump may be viewed on its own by piping the output of |
96 |
< |
\fIpmapdump\fR directly into \fIobjview(1)\fR (using the default number of |
97 |
< |
spheres in this example): |
95 |
> |
Visualise the caustic photon distribution superimposed on the scene geometry |
96 |
> |
with 10000 spheres coloured according to the photons' respective RGB flux: |
97 |
> |
.IP |
98 |
> |
pmapdump -n 10k -f caustic.pm | oconv - scene.rad > scene_pmdump.oct |
99 |
> |
.PP |
100 |
> |
Dumps may also be viewed on their own by piping the output of \fIpmapdump\fR |
101 |
> |
directly into \fIobjview(1)\fR (using the default number of spheres in this |
102 |
> |
example): |
103 |
|
.IP |
104 |
|
pmapdump zombo.pm | objview |
105 |
|
|