5 |
|
.SH SYNOPSIS |
6 |
|
.B bsdf2ttree |
7 |
|
[ |
8 |
+ |
.B "\-pC" |
9 |
+ |
][ |
10 |
|
.B "\-g Nlog2" |
11 |
|
][ |
12 |
< |
.B "\-t pctcull |
12 |
> |
.B "\-t pctcull" |
13 |
> |
][ |
14 |
> |
.B "\-l maxlobes" |
15 |
|
] |
16 |
|
[ |
17 |
|
.B "bsdf.sir .." |
22 |
|
.B bsdf2ttree |
23 |
|
.B "\-t{3|4}" |
24 |
|
[ |
25 |
+ |
.B "\-pC" |
26 |
+ |
][ |
27 |
|
.B "\-g Nlog2" |
28 |
|
][ |
29 |
< |
.B "\-t pctcull |
29 |
> |
.B "\-t pctcull" |
30 |
|
][ |
31 |
|
.B "{+|-}forward" |
32 |
|
][ |
33 |
|
.B "{+|-}backward" |
34 |
|
][ |
35 |
< |
.B "\-e expr |
35 |
> |
.B "\-e expr" |
36 |
|
][ |
37 |
< |
.B "\-f file |
37 |
> |
.B "\-f file" |
38 |
|
] |
39 |
|
.B bsdf_func |
40 |
|
.SH DESCRIPTION |
46 |
|
A complete XML description is written to the standard output, |
47 |
|
which is normally redirected to a file. |
48 |
|
.PP |
49 |
+ |
The |
50 |
+ |
.I \-p |
51 |
+ |
option by itself turns off the progress bar, whose length may be set |
52 |
+ |
by an immediately following integer argument. |
53 |
+ |
(The default progress bar length is 79 characters.)\0 |
54 |
+ |
.PP |
55 |
|
The maximum resolution of the tensor tree may be controlled by the |
56 |
|
.I \-g |
57 |
|
option, which defaults to a value of 6. |
76 |
|
the four components, and if the first component |
77 |
|
is isotropic, all components must be isotropic. |
78 |
|
A similar rule holds for anisotropic inputs. |
79 |
+ |
The |
80 |
+ |
.I \-l |
81 |
+ |
option may be used to specify the maximum number of lobes in any |
82 |
+ |
interpolated radial basis function. |
83 |
+ |
The default value is 15000, which generally keeps the interpolation tractable. |
84 |
+ |
Setting the value to 0 turns off this limit. |
85 |
|
.PP |
86 |
|
In the second invocation form, |
87 |
|
.I bsdf2ttree |
88 |
|
takes a functional specification of a BSDF. |
89 |
< |
The named function must accept 6 parameters corresponding to the |
89 |
> |
The named function should accept 6 parameters corresponding to the |
90 |
|
normalized incident and exiting vectors, respectively. |
91 |
|
By convention, these vectors point away from the surface, and a positive |
92 |
|
Z-component corresponds to the front side. |
93 |
|
The Y-component corresponds to the "up" orientation of the surface, |
94 |
|
as specified in the eventual scene description that references the XML |
95 |
|
output. |
96 |
+ |
If the function only takes 3 parameters, then the variables "Dx", "Dy", |
97 |
+ |
and "Dz" will be assigned to the reverse of the outgoing direction at |
98 |
+ |
each evaluation. |
99 |
+ |
(I.e., the vector will point into the surface and |
100 |
+ |
Dz will be negative on the front side.)\0 |
101 |
+ |
This simplifies conversion of functional BSDF specifications using the |
102 |
+ |
legacy material primitives "plasfunc", "metfunc", and "transfunc". |
103 |
|
.PP |
104 |
|
The function is defined by one or more |
105 |
|
.I \-e |