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