1 | #!/bin/sh |
---|
2 | PROGRAM=../bin/release/Preprocessor.exe |
---|
3 | |
---|
4 | SCENE=soda5 |
---|
5 | #SCENE=soda |
---|
6 | #SCENE=atlanta |
---|
7 | #SCENE=vienna |
---|
8 | |
---|
9 | LOG_PREFIX=../scripts/tests/egsr06/$SCENE |
---|
10 | |
---|
11 | ENVIRONMENT=$SCENE.env |
---|
12 | |
---|
13 | |
---|
14 | ################################################################ |
---|
15 | # vspbsptree # |
---|
16 | ################################################################ |
---|
17 | |
---|
18 | # |
---|
19 | # our method with full subdivision |
---|
20 | # |
---|
21 | |
---|
22 | METHOD=vspbsp |
---|
23 | |
---|
24 | echo "$SCENE $METHOD" |
---|
25 | |
---|
26 | |
---|
27 | $PROGRAM $ENVIRONMENT \ |
---|
28 | -view_cells_type=vspBspTree \ |
---|
29 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
30 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
31 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
32 | -view_cells_post_process_merge=true \ |
---|
33 | -vsp_bsp_term_min_pvs=0 \ |
---|
34 | -view_cells_evaluation_samples=1000000 \ |
---|
35 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
36 | |
---|
37 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | ################################################################ |
---|
42 | # vspbsptree (only subdivision) # |
---|
43 | ################################################################ |
---|
44 | |
---|
45 | # |
---|
46 | # only view space subdivision, no merge |
---|
47 | # |
---|
48 | |
---|
49 | |
---|
50 | METHOD=onlysubdiv |
---|
51 | |
---|
52 | echo "$SCENE $METHOD" |
---|
53 | |
---|
54 | $PROGRAM $ENVIRONMENT \ |
---|
55 | -view_cells_type=vspBspTree \ |
---|
56 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
57 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
58 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
59 | -view_cells_post_process_merge=false \ |
---|
60 | -vsp_bsp_term_min_pvs=0 \ |
---|
61 | -view_cells_evaluation_samples=1000000 \ |
---|
62 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
63 | |
---|
64 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | ################################################################ |
---|
71 | # bsptree # |
---|
72 | ################################################################ |
---|
73 | |
---|
74 | # |
---|
75 | # teller bsp, i.e. largest polygons are prefered |
---|
76 | # |
---|
77 | |
---|
78 | |
---|
79 | METHOD=bsp |
---|
80 | |
---|
81 | echo "$SCENE $METHOD" |
---|
82 | |
---|
83 | $PROGRAM $ENVIRONMENT \ |
---|
84 | -view_cells_type=bspTree \ |
---|
85 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
86 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
87 | -bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
88 | -view_cells_post_process_merge=false \ |
---|
89 | -view_cells_construction_samples=0 \ |
---|
90 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
91 | |
---|
92 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
93 | |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | ################################################################ |
---|
98 | # nirenstein # |
---|
99 | ################################################################ |
---|
100 | |
---|
101 | # |
---|
102 | # driving axis kd-splits and termination on max depth and pvs size |
---|
103 | # |
---|
104 | |
---|
105 | METHOD=nirenstein |
---|
106 | |
---|
107 | echo "$SCENE $METHOD" |
---|
108 | |
---|
109 | $PROGRAM $ENVIRONMENT \ |
---|
110 | -view_cells_type=vspBspTree \ |
---|
111 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
112 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
113 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
114 | -view_cells_post_process_merge=false \ |
---|
115 | -vsp_bsp_split_only_driving_axis=true \ |
---|
116 | -vsp_bsp_use_cost_heuristics=false \ |
---|
117 | -vsp_bsp_max_poly_candidates=0 \ |
---|
118 | -vsp_bsp_breath_first_splits=true \ |
---|
119 | -vsp_bsp_term_min_pvs=50 \ |
---|
120 | -view_cells_construction_samples=0 \ |
---|
121 | -vsp_bsp_use_split_cost_queue=false \ |
---|
122 | -vsp_bsp_term_max_depth=19 \ |
---|
123 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
124 | |
---|
125 | #-vsp_bsp_term_max_view_cells=50000 |
---|
126 | |
---|
127 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
128 | |
---|
129 | |
---|
130 | |
---|
131 | ################################################################ |
---|
132 | # kdtree # |
---|
133 | ################################################################ |
---|
134 | |
---|
135 | # |
---|
136 | # only driving axis and breath-first split (similar to grid) |
---|
137 | # |
---|
138 | |
---|
139 | METHOD=kd |
---|
140 | |
---|
141 | echo "$SCENE $METHOD" |
---|
142 | |
---|
143 | $PROGRAM $ENVIRONMENT \ |
---|
144 | -view_cells_type=vspBspTree \ |
---|
145 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
146 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
147 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
148 | -view_cells_construction_samples=0 \ |
---|
149 | -view_cells_post_process_merge=false \ |
---|
150 | -vsp_bsp_split_only_driving_axis=true \ |
---|
151 | -vsp_bsp_use_cost_heuristics=false \ |
---|
152 | -vsp_bsp_max_poly_candidates=0 \ |
---|
153 | -vsp_bsp_use_split_cost_queue=false \ |
---|
154 | -vsp_bsp_breath_first_splits=true \ |
---|
155 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
156 | |
---|
157 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
158 | |
---|
159 | |
---|
160 | |
---|
161 | ################################################################ |
---|
162 | # octree # |
---|
163 | ################################################################ |
---|
164 | |
---|
165 | # |
---|
166 | # octree with breath first subdivison |
---|
167 | # |
---|
168 | |
---|
169 | METHOD=octree |
---|
170 | |
---|
171 | echo "$SCENE $METHOD" |
---|
172 | |
---|
173 | $PROGRAM $ENVIRONMENT \ |
---|
174 | -view_cells_type=vspBspTree \ |
---|
175 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
176 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
177 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
178 | -view_cells_post_process_merge=false \ |
---|
179 | -vsp_bsp_split_only_driving_axis=false \ |
---|
180 | -vsp_bsp_use_cost_heuristics=false \ |
---|
181 | -vsp_bsp_max_poly_candidates=0 \ |
---|
182 | -vsp_bsp_breath_first_splits=true \ |
---|
183 | -view_cells_construction_samples=0 \ |
---|
184 | -vsp_bsp_simulate_octree=true \ |
---|
185 | -vsp_bsp_use_split_cost_queue=false \ |
---|
186 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
187 | |
---|
188 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
189 | |
---|
190 | |
---|
191 | |
---|
192 | # |
---|
193 | # for internal testing only |
---|
194 | # |
---|
195 | |
---|
196 | |
---|
197 | |
---|
198 | ################################################################ |
---|
199 | # vspbsptree - good merge # |
---|
200 | ################################################################ |
---|
201 | |
---|
202 | # |
---|
203 | # use many samples for merge |
---|
204 | # |
---|
205 | |
---|
206 | METHOD=vsp-good-merge |
---|
207 | |
---|
208 | echo "$SCENE $METHOD" |
---|
209 | |
---|
210 | $PROGRAM $ENVIRONMENT \ |
---|
211 | -view_cells_type=vspBspTree \ |
---|
212 | -view_cells_construction_samples=8000000 \ |
---|
213 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
214 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
215 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
216 | -view_cells_post_process_merge=true \ |
---|
217 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
218 | |
---|
219 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
220 | |
---|
221 | |
---|
222 | |
---|
223 | |
---|
224 | ################################################################ |
---|
225 | # vspbsptree - few samples # |
---|
226 | ################################################################ |
---|
227 | |
---|
228 | # |
---|
229 | # use few samples for initial subdivision |
---|
230 | # |
---|
231 | |
---|
232 | METHOD=vsp-few-samples |
---|
233 | |
---|
234 | echo "$SCENE $METHOD" |
---|
235 | |
---|
236 | $PROGRAM $ENVIRONMENT \ |
---|
237 | -view_cells_type=vspBspTree \ |
---|
238 | -vsp_bsp_term_max_view_cells=2500 \ |
---|
239 | -vsp_bsp_construction_samples=50000 \ |
---|
240 | -view_cells_construction_samples=0 \ |
---|
241 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
242 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
243 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
244 | -view_cells_post_process_merge=false \ |
---|
245 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
246 | |
---|
247 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
248 | |
---|
249 | |
---|
250 | |
---|
251 | |
---|
252 | ################################################################ |
---|
253 | # vspbsptree - many samples # |
---|
254 | ################################################################ |
---|
255 | |
---|
256 | # |
---|
257 | # use many samples for initial subdivision |
---|
258 | # |
---|
259 | |
---|
260 | METHOD=vsp-many-samples |
---|
261 | |
---|
262 | echo "$SCENE $METHOD" |
---|
263 | |
---|
264 | $PROGRAM $ENVIRONMENT \ |
---|
265 | -view_cells_type=vspBspTree \ |
---|
266 | -vsp_bsp_term_max_view_cells=2500 \ |
---|
267 | -vsp_bsp_construction_samples=2500000 \ |
---|
268 | -view_cells_construction_samples=0 \ |
---|
269 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
270 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
271 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
272 | -view_cells_post_process_merge=false \ |
---|
273 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
274 | |
---|
275 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|
276 | |
---|
277 | |
---|
278 | |
---|
279 | ################################################################ |
---|
280 | # vspbsptree - many samples - no queue # |
---|
281 | ################################################################ |
---|
282 | |
---|
283 | # |
---|
284 | # use many samples for initial subdivision but don't use split cost queue |
---|
285 | # |
---|
286 | |
---|
287 | METHOD=vsp-many-samples-no-split-queue |
---|
288 | |
---|
289 | echo "$SCENE $METHOD" |
---|
290 | |
---|
291 | $PROGRAM $ENVIRONMENT \ |
---|
292 | -view_cells_type=vspBspTree \ |
---|
293 | -vsp_bsp_term_max_view_cells=2500 \ |
---|
294 | -vsp_bsp_construction_samples=2500000 \ |
---|
295 | -view_cells_construction_samples=0 \ |
---|
296 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ |
---|
297 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ |
---|
298 | -vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ |
---|
299 | -view_cells_post_process_merge=false \ |
---|
300 | -vsp_bsp_use_split_cost_queue=false \ |
---|
301 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewCells.x3d |
---|
302 | |
---|
303 | mv debug.log $LOG_PREFIX-$METHOD-debug.log |
---|