ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/genBSDF.1
Revision: 1.15
Committed: Fri Mar 27 00:08:49 2015 UTC (10 years, 1 month ago) by greg
Branch: MAIN
Changes since 1.14: +12 -7 lines
Log Message:
Fixed overloaded -f option, renaming to -s

File Contents

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