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

Comparing ray/doc/man/man1/rcontrib.1 (file contents):
Revision 1.8 by greg, Fri Jul 11 01:52:38 2014 UTC vs.
Revision 1.28 by greg, Thu Nov 13 20:31:53 2025 UTC

# Line 9 | Line 9 | rcontrib - compute contribution coefficients in a RADI
9   ][
10   .B \-V
11   ][
12 + .B "\-t secs"
13 + ][
14   .B "\-c count"
15   ][
16   .B \-fo
17   |
18   .B \-r
19   ][
18 .B "\-e expr"
19 ][
20 .B "\-f source"
21 ][
20   .B "\-o ospec"
21   ][
22 + .B "\-p p1=V1,p2=V2"
23 + ][
24   .B "\-b binv"
25   ][
26   .B "\-bn nbins"
# Line 41 | Line 41 | rtrace options
41   .B octree
42   .br
43   .B "rcontrib [ options ] \-defaults"
44 + .br
45 + .B "rcontrib \-features [feat1 ..]"
46   .SH DESCRIPTION
47   .I Rcontrib
48   computes ray coefficients
# Line 117 | Line 119 | Note that output flushing via zero-direction rays is d
119   .I \-c
120   set to zero.
121   .PP
122 + Output flushing at fixed intervals may be enabled with the
123 + .I \-x
124 + option, which specifies the number of records
125 + (-c accumulations) before each flush.
126 + If the
127 + .I \-y
128 + option is also set, then periodic flushing is disabled and the
129 + output size for an RGB image is the taken from the x and y dimensions.
130 + In lieu of periodic flushing, a flush may be forced as mentioned above
131 + by sending a sample with a zero direction vector, although you
132 + must still send a full record of rays before output occurs.
133 + .PP
134 + If progress reports are desired, the
135 + .I \-t
136 + option specifies a time interval in seconds for reports sent to
137 + standard error.
138 + This requires that the number of input samples is known, meaning a
139 + .I \-y
140 + parameter has been specified.
141 + .PP
142   The output of
143   .I rcontrib
144   has many potential uses.
# Line 156 | Line 178 | The
178   option may be used to further define
179   a "bin number" within each object if finer resolution is needed, and
180   this will be applied to a "%d" format in the output file
181 < specification if present.
181 > specification if present.
182 > (The final integer will be offset incrementally
183 > if the output is a RADIANCE picture and more than one modifier has
184 > the same format specification.)\0
185   The actual bin number is computed at run time based on ray direction
186   and surface intersection, as described below.
187   The number of bins must be specified in advance with the
# Line 172 | Line 197 | option.
197   Since bin numbers start from zero, the bin count is always equal to
198   the last bin plus one.
199   The most recent
200 + .I \-p,
201   .I \-b,
202   .I \-bn
203   and
204   .I \-o
205   options to the left of each
206   .I \-m
207 < setting are the ones used for that modifier.
207 > name are the ones used for that modifier.
208 > Any
209 > .I \-cs
210 > option changing the number of spectral color
211 > samples must appear before the first modifier.
212   The ordering of other options is unimportant, except for
213   .I \-x
214   and
# Line 201 | Line 231 | These parameters may be combined with definitions give
231   arguments and files read using the
232   .I \-f
233   option.
234 + Additional parameter values that apply only to this modifier may be specified
235 + with a
236 + .I \-p
237 + option, which contains a list of variable names and assigned values, separated
238 + by commas, colons, or semicolons.
239   The computed bin value will be
240   rounded to the nearest whole number.
241 + (Negative bin values will be silently ignored.)\0
242   For a single bin, you may specify
243   .I "\-b 0",
244   which is the default.
# Line 214 | Line 250 | The rules and predefined functions available for these
250   described in the
251   .I rcalc(1)
252   man page.
253 < Like
218 < .I rcalc,
253 > Like the other rendering tools,
254   .I rcontrib
255 < will search the RADIANCE library directories for each file given in a
255 > will search the
256 > .I RAYPATH
257 > library directories for each file given in a
258   .I \-f
259   option.
260 + However, a special evaluation context is set for the
261 + .I \-f
262 + and
263 + .I \-e
264 + definitions, so append a back-quote ('`') to variable and function names
265 + you wish these to apply at the global evaluation level and used by all
266 + materials and modifiers during rendering.
267   .PP
268   If no
269   .I \-o
# Line 269 | Line 313 | A command argument beginning with a dollar sign ('$')
313   replaced by the contents of the given environment variable.
314   A command argument beginning with an at sign ('@') is immediately
315   replaced by the contents of the given file.
316 + .PP
317 + .I Rcontrib
318 + supports light source contributions from photon maps generated by
319 + .I mkpmap(1)
320 + with its
321 + .I -apC
322 + option. Enabling photon mapping is described in the
323 + .I rtrace
324 + man page along with its relevant settings. In photon mapping mode,
325 + .I rcontrib
326 + only supports contributions from light sources, not arbitrary modifiers.
327 + The
328 + .I -b
329 + option is supported along with its associated ray variables, as
330 + discussed above. Ray coefficients are also supported via the
331 + .I \-V-
332 + option. Using fewer photons than there are light sources for the photon
333 + density estimates results in omitted contributions, thus the bandwidth
334 + is clamped accordingly and a warning is issued.
335   .SH EXAMPLES
336   To compute the proportional contributions from sources modified
337 < by "light1" vs. "light2" on a set of illuminance values:
337 > by "light1" vs. "light2" on a set of irradiance values:
338   .IP "" .2i
339   rcontrib \-I+ @render.opt \-o c_%s.dat \-m light1 \-m light2 scene.oct < test.dat
340   .PP
# Line 287 | Line 350 | of light1 and light2:
350   .IP "" .2i
351   pcomb \-c 100 90 75 c_light1.hdr \-c 50 55 57 c_light2.hdr > combined.hdr
352   .PP
353 < To compute an array of illuminance contributions according to a Tregenza sky:
353 > To compute an array of irradiance contributions according to a Tregenza sky:
354   .IP "" .2i
355   rcontrib \-I+ \-f tregenza.cal \-b tbin \-bn Ntbins \-o sky.dat \-m skyglow
356   \-b 0 \-o ground.dat \-m groundglow @render.opt scene.oct < test.dat
357 + .PP
358 + To perform an annual simulation of 365 daily sun positions in photon mapping
359 + mode:
360 + .IP "" .2i
361 + rcontrib \-I+ \-h \-V \-fo \-o c_%s.dat \-M lights \-ap contrib.pm 365
362 + scene.oct < test.dat,
363   .SH ENVIRONMENT
364   RAYPATH         path to search for \-f and \-M files
365 + .SH BUGS
366 + We do not currently compute contributions or coefficients properly
367 + in scenes with participating media.
368 + A single warning will be issued if a scattering or absorbing medium
369 + is detected.
370   .SH AUTHOR
371   Greg Ward
372   .SH "SEE ALSO"
373 < cnt(1), genklemsamp(1), getinfo(1), pcomb(1), pfilt(1), ra_rgbe(1),
374 < rcalc(1), rpict(1), rsensor(1), rtrace(1), total(1), vwrays(1), ximage(1)
373 > cnt(1), dctimestep(1), genklemsamp(1), getinfo(1), mkpmap(1), pcomb(1), pfilt(1),
374 > pvsum(1), ra_rgbe(1), rcalc(1), rcomb(1), rfluxmtx(1), rmtxop(1), rpict(1),
375 > rsensor(1), rtrace(1), rxfluxmtx(1), total(1), vwrays(1), ximage(1)
376 >

Diff Legend

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