| 29 |
|
to interactively explore the photon map. |
| 30 |
|
.PP |
| 31 |
|
An arbitrary number of photon maps can be specified on the command line and |
| 32 |
< |
the respective photon type is determined automagically.Per default, the |
| 32 |
> |
the respective photon type is determined automagically. Per default, the |
| 33 |
|
different photon types are visualised as colour coded spheres/points |
| 34 |
|
according to the following default schema: |
| 35 |
|
.IP |
| 54 |
|
.SH OPTIONS |
| 55 |
|
Options are effective for the photon map file immediately following on the |
| 56 |
|
command line, and are reset to their defaults after completion of each dump. |
| 57 |
< |
As such they may be set individually for each photon map. |
| 57 |
> |
As such they must be set individually for each photon map. |
| 58 |
|
|
| 59 |
|
.IP "\fB-a\fR" |
| 60 |
|
Boolean switch to output photons as a point list in ASCII (text) format |
| 61 |
|
instead of a RADIANCE scene. |
| 62 |
|
Each output line consists of 6 tab-separated floating point values: the |
| 63 |
|
X, Y, Z coordinates of the photon's position, and the R, G, B colour |
| 64 |
< |
channels of its flux. These values. notably the flux, may be expressed |
| 65 |
< |
in scientific notation to accommodate their high dynamic range. |
| 64 |
> |
channels of its flux. These values. notably the flux, are expressed in |
| 65 |
> |
scientific notation if necessary to accommodate their high dynamic range. |
| 66 |
|
|
| 67 |
< |
.IP "\fB-f\fR" |
| 68 |
< |
Boolean switch to colour each sphere/point according to the corresponding |
| 69 |
< |
photon's RGB flux instead of a constant colour. Note that no exposure is |
| 70 |
< |
applied, and as such the resulting colours can span several orders of |
| 71 |
< |
magnitude and may require tone mapping with \fIpcond(1)\fR for |
| 72 |
< |
visualisation. This option is mutually exclusive with \fB-c\fR. |
| 67 |
> |
.IP |
| 68 |
> |
As \fIpmapdump\fR groups its options per photon map, this option must be |
| 69 |
> |
specified per photon map for consistent output. This prevents erroneously |
| 70 |
> |
dumping RADIANCE scene descriptions along with point lists, which will |
| 71 |
> |
fail to load in the 3D point cloud viewer. |
| 72 |
|
|
| 73 |
|
.IP "\fB-c\fR \fIrcol\fR \fIgcol\fR \fIbcol\fR" |
| 74 |
|
Specifies a custom sphere/point colour for the next photon map. The colour |
| 76 |
|
Without this option, the default colour for the corresponding photon type |
| 77 |
|
is used. This option is mutually exclusive with \fB-f\fR. |
| 78 |
|
|
| 79 |
+ |
.IP "\fB-f\fR" |
| 80 |
+ |
Boolean switch to colour each sphere/point according to the corresponding |
| 81 |
+ |
photon's RGB flux instead of a constant colour. The flux is adjusted for |
| 82 |
+ |
the fraction of dumped photons to maintain the total flux contained in the |
| 83 |
+ |
dumped photon map. Note that no exposure is applied, and as such the |
| 84 |
+ |
resulting colours can span several orders of magnitude and may require tone |
| 85 |
+ |
mapping with \fIpcond(1)\fR for visualisation. This option is mutually |
| 86 |
+ |
exclusive with \fB-c\fR. |
| 87 |
+ |
|
| 88 |
|
.IP "\fB-n \fInum\fR" |
| 89 |
|
Specifies the number of spheres or points to dump for the next photon map. |
| 90 |
|
The dump is performed by random sampling with \fInum\fR as target count, |
| 122 |
|
.IP |
| 123 |
|
pmapdump -n 10k -f caustic.pm | oconv - scene.rad > scene_pm.oct |
| 124 |
|
.PP |
| 125 |
+ |
But Capt. B wants 'em bigger: |
| 126 |
+ |
.IP |
| 127 |
+ |
pmapdump -r 4.0 bonzo.pm > bonzo_bigballz.rad |
| 128 |
+ |
.PP |
| 129 |
|
RADIANCE scene dumps may also be viewed on their own by simply piping the |
| 130 |
|
output of \fIpmapdump\fR directly into \fIobjview(1)\fR (using the default |
| 131 |
|
number of spheres in this example): |
| 132 |
|
.IP |
| 133 |
|
pmapdump zombo.pm | objview |
| 134 |
|
.PP |
| 135 |
< |
Dump photons as a (really long) point list to an ASCII file for import in |
| 136 |
< |
a 3D point cloud viewer: |
| 135 |
> |
Instead of a RADIANCE scene, dump photons as a (really long) point list to |
| 136 |
> |
an ASCII file for import into a 3D point cloud viewer: |
| 137 |
|
.IP |
| 138 |
< |
pmapdump -a -f -n 1m lotsa.pm > lotsa-pointz.txt |
| 127 |
< |
.PP |
| 128 |
< |
Capt. B. wants 'em bigger: |
| 129 |
< |
.IP |
| 130 |
< |
pmapdump -r 4.0 bonzo.pm > bigbonzo-pm.rad |
| 138 |
> |
pmapdump -a -f -n 1m lotsa.pm > lotsa_pointz.txt |
| 139 |
|
|
| 140 |
|
.SH AUTHOR |
| 141 |
|
Roland Schregle (roland.schregle@{hslu.ch,gmail.com}) |
| 147 |
|
.SH ACKNOWLEDGEMENT |
| 148 |
|
Development of the RADIANCE photon mapping extension was sponsored by the |
| 149 |
|
German Research Foundation (DFG) and the Swiss National Science Foundation |
| 150 |
< |
(SNF). |
| 150 |
> |
(SNF). Greetz to Capt. B! |
| 151 |
|
|
| 152 |
|
.SH "SEE ALSO" |
| 153 |
|
mkpmap(1), objview(1), oconv(1), rpict(1), rvu(1), |