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.4 by greg, Thu Jun 14 22:49:34 2012 UTC vs.
Revision 1.27 by greg, Thu Oct 23 23:34:59 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 101 | Line 103 | The
103   option tells
104   .I rcontrib
105   how many rays to accumulate for each record.
106 < The default value is 1, meaning a full record will be produced for
106 > The default value is one, meaning a full record will be produced for
107   each input ray.
108 < For values greater than 1, contributions will be averaged together
108 > For values greater than one, contributions will be averaged together
109   over the given number of input rays.
110   If set to zero, only a single record will be produced at the very
111   end, corresponding to the sum of all rays given on the input
# Line 113 | Line 115 | This is equivalent to passing all the output records t
115   to sum RGB values together, but is much more efficient.
116   Using this option, it is possible to reverse sampling, sending rays from
117   a parallel source such as the sun to a diffuse surface, for example.
118 < Note that output flushing via zero-direction rays is disabled
119 < for accumulated evaluations.
118 > Note that output flushing via zero-direction rays is disabled with
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 155 | 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 < If the number of bins is known in advance, it should be specified with the
187 > The number of bins must be specified in advance with the
188   .I \-bn
189   option, and this is critical for output files containing multiple values
190   per record.
# Line 168 | Line 194 | it has been defined via a previous
194   or
195   .I \-e
196   option.
197 < Since bin numbers start from 0, the bin count is always equal to
198 < the last bin plus 1.
173 < Set the this value to 0 if the bin count is unknown (the default).
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
215   .I \-y
216   if the
217   .I \-c
218 < is 0, when they control the resolution string
218 > is zero, when they control the resolution string
219   produced in the corresponding output.
220   .PP
221   If a
# 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.
245   This mechanism allows the user to define precise regions or directions
246   they wish to accumulate, such as the Tregenza sky discretization,
247   which would be otherwise impossible to specify
# Line 211 | Line 250 | The rules and predefined functions available for these
250   described in the
251   .I rcalc(1)
252   man page.
253 < Unlike
215 < .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 attach 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 266 | 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 284 | 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+ \-b tbin \-o sky.dat \-m skyglow \-b 0 \-o ground.dat \-m groundglow
356 < @render.opt \-f tregenza.cal scene.oct < test.dat
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)