ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/genBSDF.1
Revision: 1.20
Committed: Wed May 31 17:25:21 2017 UTC (8 years ago) by greg
Branch: MAIN
CVS Tags: rad5R2, rad5R1, rad5R3
Changes since 1.19: +9 -1 lines
Log Message:
Added {+|-}a option to genBSDF and bsdf2ttree to control reciprocity averaging

File Contents

# Content
1 .\" RCSid $Id: genBSDF.1,v 1.19 2016/09/16 17:54:56 greg Exp $
2 .TH GENBSDF 1 9/3/2010 RADIANCE
3 .SH NAME
4 genBSDF - generate BSDF description from Radiance or MGF input
5 .SH SYNOPSIS
6 .B genBSDF
7 [
8 .B "\-c Nsamp"
9 ][
10 .B "\-n Nproc"
11 ][
12 .B "\-r 'rcontrib opts...'"
13 ][
14 .B "\-W"
15 ][
16 .B "\-s 'x=string;y=string'"
17 ][
18 .B "\-t{3|4} Nlog2"
19 ][
20 .B "{+|-}C"
21 ][
22 .B "{+|-}a"
23 ][
24 .B "{+|-}forward"
25 ][
26 .B "{+|-}backward"
27 ][
28 .B "{+|-}mgf"
29 ][
30 .B "{+|-}geom unit"
31 ][
32 .B "\-dim Xmin Xmax Ymin Ymax Zmin Zmax"
33 ]
34 [
35 .B "geom .."
36 ]
37 .br
38 or
39 .br
40 .B genBSDF
41 .B "\-recover tempdir"
42 .SH DESCRIPTION
43 .I GenBSDF
44 computes a bidirectional scattering distribution function from
45 a Radiance or MGF scene description given on the input.
46 The program assumes the input is in Radiance format unless the
47 .I \+mgf
48 option is specified.
49 The output conforms to the LBNL Window 6 XML standard for BSDF data,
50 and will include an MGF representation of the input geometry if the
51 .I \+geom
52 option is given, followed by one of "meter," "foot," "inch,"
53 "centimeter," or "millimeter," depending on the scene units.
54 The default is to include the provided geometry,
55 which is assumed to be in meters.
56 Geometry output can be supressed with the
57 .I \-geom
58 option, which must also be followed by one of the above length units.
59 .PP
60 Normally,
61 .I genBSDF
62 computes components needed by a backwards ray-tracing process,
63 .I \+backward.
64 If both forward and backward (front and back) distributions are needed, the
65 .I \+forward
66 option may be given.
67 To turn off backward components, use the
68 .I \-backward
69 option.
70 Computing both components takes about twice as long as one component, but
71 is recommended when rays will be impinging from either side.
72 .PP
73 The
74 .I \+C
75 option specifies that the output XML should include color information,
76 which is interpreted by the rendering programs.
77 The default option
78 .I \-C
79 reduces all BSDF data to grayscale.
80 .PP
81 The
82 .I \-a
83 option turns off reciprocity averaging for tensor tree output.
84 Normally on (+a), this ensures that the tensor BRDF obeys Helmholtz reciprocity.
85 However, in certain rare cases, reciprocity averaging can cause unwanted noise in the output.
86 .PP
87 The geometry must fit a rectangular profile, whose width is along the X-axis,
88 height is in the Y-axis, and depth is in the Z-axis.
89 The positive Z-axis points into the room, and the input geometry should
90 not extend into the room.
91 (I.e., it should not contain any positive Z values, since the putative
92 emitting surface is assumed to lie at Z=0.)\0
93 The entire window system should be modeled, including sills and
94 edge geometry anticipated in the final installation, otherwise
95 accuracy will be impaired.
96 Similarly, materials in the description should be carefully measured.
97 .PP
98 Normally, the input geometry will be positioned according to its actual
99 bounding box, but this may be overridden with the
100 .I \-dim
101 option.
102 Use this in cases where the fenestration system is designed to fit a
103 smaller (or larger) opening or is offset somehow.
104 .PP
105 The variance in the results may be reduced by increasing the number of
106 samples per incident direction using the
107 .I \-c
108 option.
109 This value defaults to 2000 samples distributed over the incoming plane
110 for each of the 145 Klems hemisphere directions.
111 .PP
112 On multi-core machines, processing time may be reduced by the
113 .I \-n
114 option, which specifies the number of simultaneous
115 processes to run in
116 .I rcontrib(1).
117 The
118 .I \-r
119 option may be used to specify a set of quoted arguments to be
120 included on the
121 .I rcontrib
122 command line.
123 .PP
124 The
125 .I \-W
126 option is passed to
127 .I wrapBSDF(1)
128 to prepare the XML file for WINDOW6.
129 Any
130 .I \-s
131 parameters are passed to the
132 .I \-f
133 option of
134 .I wrapBSDF,
135 controlling XML fields such as
136 the Manufacturer (e.g., -s m=MF) and device Name (e.g, -s n=NM).
137 .PP
138 The
139 .I \-t4
140 mode computes a non-uniform BSDF represented as a rank 4 tensor tree,
141 suitable for use in the Radiance rendering tools.
142 The parameter given to this option is the log to the base 2 of the
143 sampling resolution in each dimension, and must be an integer.
144 The
145 .I \-c
146 setting should be adjusted so that an appropriate number of samples
147 lands in each region.
148 A
149 .I \-t4
150 parameter of 5 corresponds to 32x32 or 1024 output regions, so a
151 .I \-c
152 setting of 10240 would provide 10 samples per region on average.
153 Increasing the resolution to 6 corresponds to 64x64 or 4096
154 regions, so the
155 .I \-c
156 setting would need to be increased by a factor of 4 to provide
157 the same accuracy in each region.
158 .PP
159 The
160 .I \-t3
161 mode is similar to
162 .I \-t4
163 but computes a rank 3 tensor tree rather than rank 4.
164 This provides a much faster computation, but only works
165 in special circumstances.
166 Specifically, do NOT use this option if the system is not in fact isotropic.
167 I.e., only use
168 .I \-t3
169 when you are certain that the system has a high degree of radial symmetry.
170 Again, the parameter to this option sets the maximum resolution as
171 a power of 2 in each dimension, but in this case there is one less
172 dimension being sampled.
173 .PP
174 The
175 .I \-recover
176 option is available for continuing calculations that were killed by
177 the system or the user.
178 Unfortunately, genBSDF puts its temporary files in a directory
179 that is often cleaned up after reboot, so this may not always work.
180 .SH EXAMPLE
181 To create a BSDF description including geometry from a set of venetian blinds:
182 .IP "" .2i
183 genblinds blind_white blind1 .07 3 1.5 30 40 | xform -rz -90 -rx 90 > blind1.rad
184 .br
185 genBSDF -r @rtc.opt blind_white.mat glazing.rad blind1.rad > blind1.xml
186 .PP
187 To create a non-uniform, anisotropic BSDF distribution with a maximum
188 resolution of 128x128 from the same description:
189 .IP "" .2i
190 genBSDF -r @rtc.opt -t4 7 -c 160000 blind_white.mat glazing.rad blind1.rad > blind12.xml
191 .SH NOTES
192 The variable resolution (tensor tree) BSDF representation is not supported
193 by all software and applicatons, and should be used with caution.
194 It provides practical, high-resolution data for use in the
195 Radiance rendering programs, but does not work in the matrix formulation
196 of the daylight coefficient method for example.
197 Also, third party tools generally expect or require a fixed number of sample
198 directions using the Klems directions or similar.
199 .SH AUTHOR
200 Greg Ward
201 .SH "SEE ALSO"
202 dctimestep(1), gendaymtx(1), genklemsamp(1), genskyvec(1), mkillum(1),
203 pkgBSDF(1), rcontrib(1), rfluxmtx(1), rmtxop(1), rtrace(1) wrapBSDF(1)