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 "{+|-}forward" |
21 |
+ |
][ |
22 |
+ |
.B "{+|-}backward" |
23 |
+ |
][ |
24 |
|
.B "{+|-}mgf" |
25 |
|
][ |
26 |
< |
.B "{+|-}geom |
26 |
> |
.B "{+|-}geom unit" |
27 |
|
][ |
28 |
|
.B "\-dim Xmin Xmax Ymin Ymax Zmin Zmax" |
29 |
|
] |
32 |
|
] |
33 |
|
.SH DESCRIPTION |
34 |
|
.I GenBSDF |
35 |
< |
computes a bidirectional transmittance distribution function from |
35 |
> |
computes a bidirectional scattering distribution function from |
36 |
|
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 |
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 |
< |
option is given. |
44 |
< |
(This is currently the default, and may be switche off using |
45 |
< |
.I \-geom.)\0 |
43 |
> |
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 |
|
.PP |
51 |
+ |
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 |
+ |
Computing both components takes about twice as long as one component, but |
62 |
+ |
is recommended when rays will be impinging from either side. |
63 |
+ |
.PP |
64 |
|
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 |
83 |
|
samples per incident direction using the |
84 |
|
.I \-c |
85 |
|
option. |
86 |
< |
This value defaults to 1000 samples distributed over the incoming plane |
86 |
> |
This value defaults to 2000 samples distributed over the incoming plane |
87 |
|
for each of the 145 Klems hemisphere directions. |
88 |
|
.PP |
89 |
< |
In some cases, the processing time may be reduced by the |
89 |
> |
On multi-core machines, processing time may be reduced by the |
90 |
|
.I \-n |
91 |
|
option, which specifies the number of simultaneous |
63 |
– |
.I rtrace(1) |
92 |
|
processes to run in |
93 |
< |
.I rtcontrib(1). |
93 |
> |
.I rcontrib(1). |
94 |
> |
The |
95 |
> |
.I \-r |
96 |
> |
option may be used to specify a set of quoted arguments to be |
97 |
> |
included on the |
98 |
> |
.I rcontrib |
99 |
> |
command line. |
100 |
> |
.PP |
101 |
> |
The |
102 |
> |
.I \-W |
103 |
> |
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 |
> |
.I \-f |
110 |
> |
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 |
> |
.PP |
115 |
> |
The |
116 |
> |
.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 |
> |
setting of 10240 would provide 10 samples per region on average. |
130 |
> |
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 |
|
.SH EXAMPLE |
151 |
|
To create a BSDF description including geometry from a set of venetian blinds: |
152 |
|
.IP "" .2i |
153 |
|
genblinds blind_white blind1 .07 3 1.5 30 40 | xform -rz -90 -rx 90 > blind1.rad |
154 |
|
.br |
155 |
< |
genBSDF blind_white.mat glazing.rad blind1.rad > blind1.xml |
155 |
> |
genBSDF -r @rtc.opt blind_white.mat glazing.rad blind1.rad > blind1.xml |
156 |
> |
.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 |
< |
Currently, |
163 |
< |
.I genBSDF |
164 |
< |
computes only the forward visible transmitted component, |
165 |
< |
though the XML specification provides for front and back |
166 |
< |
transmission and reflection as well. |
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 |
|
.SH AUTHOR |
170 |
|
Greg Ward |
171 |
|
.SH "SEE ALSO" |
172 |
< |
dctimestep(1), genklemsamp(1), genskyvec(1), mkillum(1), rtcontrib(1), rtrace(1) |
172 |
> |
dctimestep(1), gendaymtx(1), genklemsamp(1), genskyvec(1), mkillum(1), |
173 |
> |
pkgBSDF(1), rcontrib(1), rfluxmtx(1), rmtxop(1), rtrace(1) |