158 |
|
option may be used to further define |
159 |
|
a "bin number" within each object if finer resolution is needed, and |
160 |
|
this will be applied to a "%d" format in the output file |
161 |
< |
specification if present. |
161 |
> |
specification if present. |
162 |
> |
(The final integer will be offset incrementally |
163 |
> |
if the output is a RADIANCE picture and more than one modifier has |
164 |
> |
the same format specification.)\0 |
165 |
|
The actual bin number is computed at run time based on ray direction |
166 |
|
and surface intersection, as described below. |
167 |
|
The number of bins must be specified in advance with the |
211 |
|
with a |
212 |
|
.I \-p |
213 |
|
option, which contains a list of variable names and assigned values, separated |
214 |
< |
by commas or semicolons. |
214 |
> |
by commas, colons, or semicolons. |
215 |
|
The computed bin value will be |
216 |
|
rounded to the nearest whole number. |
217 |
|
(Negative bin values will be silently ignored.)\0 |
281 |
|
replaced by the contents of the given environment variable. |
282 |
|
A command argument beginning with an at sign ('@') is immediately |
283 |
|
replaced by the contents of the given file. |
284 |
+ |
.PP |
285 |
+ |
.I Rcontrib |
286 |
+ |
supports light source contributions from photon maps generated by |
287 |
+ |
.I mkpmap(1) |
288 |
+ |
with its |
289 |
+ |
.I -apC |
290 |
+ |
option. Enabling photon mapping is described in the |
291 |
+ |
.I rtrace |
292 |
+ |
man page along with its relevant settings. In photon mapping mode, |
293 |
+ |
.I rcontrib |
294 |
+ |
only supports contributions from light sources, not arbitrary modifiers. |
295 |
+ |
The |
296 |
+ |
.I -b |
297 |
+ |
option is supported along with its associated ray variables, as |
298 |
+ |
discussed above. Ray coefficients are also supported via the |
299 |
+ |
.I \-V- |
300 |
+ |
option. Using fewer photons than there are light sources for the photon |
301 |
+ |
density estimates results in omitted contributions, thus the bandwidth |
302 |
+ |
is clamped accordingly and a warning is issued. |
303 |
|
.SH EXAMPLES |
304 |
|
To compute the proportional contributions from sources modified |
305 |
|
by "light1" vs. "light2" on a set of illuminance values: |
322 |
|
.IP "" .2i |
323 |
|
rcontrib \-I+ \-f tregenza.cal \-b tbin \-bn Ntbins \-o sky.dat \-m skyglow |
324 |
|
\-b 0 \-o ground.dat \-m groundglow @render.opt scene.oct < test.dat |
325 |
+ |
.PP |
326 |
+ |
To perform an annual simulation of 365 daily sun positions in photon mapping |
327 |
+ |
mode: |
328 |
+ |
.IP "" .2i |
329 |
+ |
rcontrib \-I+ \-h \-V \-fo \-o c_%s.dat \-M lights \-ap contrib.pm 365 |
330 |
+ |
scene.oct < test.dat, |
331 |
|
.SH ENVIRONMENT |
332 |
|
RAYPATH path to search for \-f and \-M files |
333 |
+ |
.SH BUGS |
334 |
+ |
We do not currently compute contributions or coefficients properly |
335 |
+ |
in scenes with participating media. |
336 |
+ |
A single warning will be issued if a scattering or absorbing medium |
337 |
+ |
is detected. |
338 |
|
.SH AUTHOR |
339 |
|
Greg Ward |
340 |
|
.SH "SEE ALSO" |
341 |
< |
cnt(1), genklemsamp(1), getinfo(1), pcomb(1), pfilt(1), ra_rgbe(1), |
342 |
< |
rcalc(1), rpict(1), rsensor(1), rtrace(1), total(1), vwrays(1), ximage(1) |
341 |
> |
cnt(1), genklemsamp(1), getinfo(1), mkpmap(1), pcomb(1), pfilt(1), |
342 |
> |
ra_rgbe(1), rcalc(1), rfluxmtx(1), rmtxop(1), rpict(1), rsensor(1), |
343 |
> |
rtrace(1), total(1), vwrays(1), ximage(1) |
344 |
> |
|