1 | ############################################################################### |
---|
2 | # ERS default configuration file |
---|
3 | # Jiri Bittner 2003 |
---|
4 | ############################################################################# |
---|
5 | |
---|
6 | Scene { |
---|
7 | |
---|
8 | filename ../data/vienna/vienna_cropped.obj |
---|
9 | } |
---|
10 | |
---|
11 | |
---|
12 | Preprocessor { |
---|
13 | samplesPerPass 500000 |
---|
14 | type vss |
---|
15 | detectEmptyViewSpace true |
---|
16 | loadMeshes false |
---|
17 | |
---|
18 | # internal raycaster: 0, intel: 1 |
---|
19 | rayCastMethod 0 |
---|
20 | |
---|
21 | exportVisibility false |
---|
22 | applyVisibilityFilter false |
---|
23 | applyVisibilitySpatialFilter false |
---|
24 | } |
---|
25 | |
---|
26 | |
---|
27 | VssTree { |
---|
28 | maxDepth 2 |
---|
29 | |
---|
30 | maxTotalMemory 50 |
---|
31 | maxStaticMemory 20 |
---|
32 | |
---|
33 | splitType regular |
---|
34 | splitUseOnlyDrivingAxis true |
---|
35 | } |
---|
36 | |
---|
37 | |
---|
38 | Limits { |
---|
39 | threshold 1e-6 |
---|
40 | small 1e-6 |
---|
41 | infinity 1e9 |
---|
42 | } |
---|
43 | |
---|
44 | |
---|
45 | KdTree { |
---|
46 | sahUseFaces true |
---|
47 | |
---|
48 | Termination { |
---|
49 | minCost 0 |
---|
50 | maxDepth 20 |
---|
51 | |
---|
52 | maxCostRatio 1.5 |
---|
53 | ct_div_ci 0.5 |
---|
54 | } |
---|
55 | |
---|
56 | splitMethod SAH |
---|
57 | splitBorder 0.01 |
---|
58 | } |
---|
59 | |
---|
60 | MeshKdTree { |
---|
61 | Termination { |
---|
62 | minCost 1 |
---|
63 | maxDepth 18 |
---|
64 | maxCostRatio 0.9 |
---|
65 | ct_div_ci 0.5 |
---|
66 | } |
---|
67 | |
---|
68 | splitMethod SAH |
---|
69 | splitBorder 0.01 |
---|
70 | } |
---|
71 | |
---|
72 | |
---|
73 | ViewCells { |
---|
74 | |
---|
75 | # samples used for view cell construction in the merge step |
---|
76 | Construction { |
---|
77 | samples 0 |
---|
78 | samplesPerPass 1000000 |
---|
79 | } |
---|
80 | |
---|
81 | # number of active view cells |
---|
82 | active 25000 |
---|
83 | maxStaticMemory 40 |
---|
84 | |
---|
85 | exportToFile true |
---|
86 | loadFromFile false |
---|
87 | |
---|
88 | #exportPvs true |
---|
89 | |
---|
90 | # type of view cells |
---|
91 | type vspOspTree |
---|
92 | |
---|
93 | #this ratio of the biggest pvs gives the threshold when a pvs is considered invalid |
---|
94 | maxPvsRatio 1.0 |
---|
95 | |
---|
96 | processOnlyValidViewCells false |
---|
97 | |
---|
98 | samplingType box |
---|
99 | |
---|
100 | PostProcess { |
---|
101 | # how much samples are used for post processing |
---|
102 | samples 0 |
---|
103 | maxMergesPerPass 5000 |
---|
104 | useRaysForMerge false |
---|
105 | refine false |
---|
106 | compress true |
---|
107 | merge false |
---|
108 | } |
---|
109 | |
---|
110 | Visualization { |
---|
111 | # how much samples we use for visualization |
---|
112 | samples 0 |
---|
113 | exportRays true |
---|
114 | exportGeometry true |
---|
115 | exportMergedViewCells false |
---|
116 | useClipPlane true |
---|
117 | clipPlaneAxis 1 |
---|
118 | clipPlanePos 0.3 |
---|
119 | maxOutput 0 |
---|
120 | } |
---|
121 | |
---|
122 | #showVisualization true |
---|
123 | showVisualization false |
---|
124 | evaluateViewCells false |
---|
125 | |
---|
126 | |
---|
127 | Evaluation { |
---|
128 | samples 80000000 |
---|
129 | samplesForStats 40000000 |
---|
130 | |
---|
131 | samplesPerPass 500000 |
---|
132 | stepSize 200 |
---|
133 | |
---|
134 | samplingType box |
---|
135 | |
---|
136 | histogram true |
---|
137 | histoStepSize 200 |
---|
138 | histoMem 60 |
---|
139 | |
---|
140 | statsPrefix ../scripts/viewCells |
---|
141 | } |
---|
142 | } |
---|
143 | |
---|
144 | |
---|
145 | ################################ |
---|
146 | # |
---|
147 | # View space partitioning kd tree |
---|
148 | # |
---|
149 | |
---|
150 | VspTree { |
---|
151 | Construction { |
---|
152 | renderCostDecreaseWeight 0.999 |
---|
153 | } |
---|
154 | |
---|
155 | Termination { |
---|
156 | minPvs 0 |
---|
157 | maxViewCells 4000 |
---|
158 | } |
---|
159 | |
---|
160 | # heuristics for computing local split planes |
---|
161 | useCostHeuristics false |
---|
162 | |
---|
163 | # maximum number of tests per node |
---|
164 | maxTests 500000 |
---|
165 | } |
---|
166 | |
---|
167 | |
---|
168 | |
---|
169 | # |
---|
170 | # The bounding volume hierarchy |
---|
171 | # |
---|
172 | |
---|
173 | BvHierarchy { |
---|
174 | |
---|
175 | Construction { |
---|
176 | renderCostDecreaseWeight 0.999 |
---|
177 | #renderCostDecreaseWeight 1.0 |
---|
178 | } |
---|
179 | |
---|
180 | Termination { |
---|
181 | maxLeaves 4000 |
---|
182 | } |
---|
183 | |
---|
184 | minRaysForVisibility 3 |
---|
185 | |
---|
186 | # heuristics for computing local split planes |
---|
187 | useCostHeuristics true |
---|
188 | # surface area or visibility based heuristics |
---|
189 | useSah false |
---|
190 | |
---|
191 | splitUseOnlyDrivingAxis false |
---|
192 | |
---|
193 | maxTests 500000 |
---|
194 | } |
---|
195 | |
---|
196 | |
---|
197 | ############################################################### |
---|
198 | # |
---|
199 | # Manages the construction of view space and object space partition |
---|
200 | # |
---|
201 | |
---|
202 | Hierarchy { |
---|
203 | # the type of object space partition: view space is always vsp (=kd) partition |
---|
204 | type bvh |
---|
205 | |
---|
206 | Construction { |
---|
207 | |
---|
208 | samples 1000000 |
---|
209 | |
---|
210 | # type 0 = sequential computation, 1 = interleaved, 2 = gradient |
---|
211 | type 2 |
---|
212 | |
---|
213 | ############################### |
---|
214 | # only for interleaved method |
---|
215 | |
---|
216 | # if dirty split candidates are reevaluated |
---|
217 | repairQueue true |
---|
218 | |
---|
219 | ################################################### |
---|
220 | |
---|
221 | # minimal steps of same domain (view /object): for interleaved mode |
---|
222 | minStepsOfSameType 100 |
---|
223 | maxStepsOfSameType 900 |
---|
224 | |
---|
225 | maxRepairs 2000 |
---|
226 | } |
---|
227 | |
---|
228 | Termination { |
---|
229 | # maximal number of leaves |
---|
230 | maxLeaves 300000 |
---|
231 | # maximal memory in MB |
---|
232 | # maxMemory 4 |
---|
233 | maxMemory 200 |
---|
234 | # minimum ratio of global cost decrease |
---|
235 | minGlobalCostRatio -1 |
---|
236 | } |
---|
237 | } |
---|