1 | #!/bin/sh
|
---|
2 |
|
---|
3 | # add bin to path
|
---|
4 | export PATH=../bin:$PATH
|
---|
5 |
|
---|
6 | #TARGET=debug
|
---|
7 | TARGET=release
|
---|
8 |
|
---|
9 | PROGRAM=../bin/$TARGET/Preprocessor.exe
|
---|
10 |
|
---|
11 | echo "starting $TARGET mode"
|
---|
12 |
|
---|
13 | #SCENE=vsposp_typical
|
---|
14 | #SCENE=soda5_vsposp
|
---|
15 | #SCENE=soda_vsposp
|
---|
16 | SCENE=vienna_vsposp
|
---|
17 | #SCENE=arena_vsposp
|
---|
18 | #SCENE=vsposp_citymodel
|
---|
19 | #SCENE=soda5
|
---|
20 | #SCENE=cube
|
---|
21 | #SCENE=atlanta
|
---|
22 | #SCENE=vienna
|
---|
23 |
|
---|
24 | LOG_PREFIX=../scripts/tests/i3d/$SCENE
|
---|
25 |
|
---|
26 | ENVIRONMENT=$SCENE.env
|
---|
27 |
|
---|
28 | #######################################################
|
---|
29 |
|
---|
30 |
|
---|
31 | METHOD=interleaved_full
|
---|
32 | echo "$SCENE $METHOD"
|
---|
33 |
|
---|
34 | # $PROGRAM $ENVIRONMENT \
|
---|
35 | # -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
36 | # -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
37 | # -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
38 | # -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
39 | # -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
40 | # -hierarchy_construction_type=1 \
|
---|
41 | # -hierarchy_construction_recompute_split_on_repair=true
|
---|
42 |
|
---|
43 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
44 |
|
---|
45 | ###########################################################################
|
---|
46 |
|
---|
47 | METHOD=interleaved
|
---|
48 | echo "$SCENE $METHOD"
|
---|
49 |
|
---|
50 | # $PROGRAM $ENVIRONMENT \
|
---|
51 | # -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
52 | # -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
53 | # -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
54 | # -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
55 | # -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
56 | # -hierarchy_construction_type=1 \
|
---|
57 | # -hierarchy_construction_recompute_split_on_repair=false
|
---|
58 |
|
---|
59 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
60 |
|
---|
61 | ##################################################################################
|
---|
62 | MEMCONST=1.0
|
---|
63 | METHOD=gradient-mem2-$MEMCONST
|
---|
64 | echo "$SCENE $METHOD"
|
---|
65 |
|
---|
66 | $PROGRAM $ENVIRONMENT \
|
---|
67 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
68 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
69 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
70 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
71 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
72 | -hierarchy_construction_type=2 \
|
---|
73 | -hierarchy_construction_consider_memory2=true \
|
---|
74 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
75 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
76 | -hierarchy_construction_multilevel=false \
|
---|
77 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
78 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
79 |
|
---|
80 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
81 |
|
---|
82 |
|
---|
83 | ##################################################################################
|
---|
84 | MEMCONST=0.5
|
---|
85 | METHOD=gradient-mem2-$MEMCONST
|
---|
86 | echo "$SCENE $METHOD"
|
---|
87 |
|
---|
88 | $PROGRAM $ENVIRONMENT \
|
---|
89 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
90 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
91 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
92 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
93 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
94 | -hierarchy_construction_type=2 \
|
---|
95 | -hierarchy_construction_consider_memory2=true \
|
---|
96 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
97 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
98 | -hierarchy_construction_multilevel=false \
|
---|
99 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
100 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
101 |
|
---|
102 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
103 |
|
---|
104 | ##################################################################################
|
---|
105 | MEMCONST=0.2
|
---|
106 | METHOD=gradient-mem2-$MEMCONST
|
---|
107 | echo "$SCENE $METHOD"
|
---|
108 |
|
---|
109 | $PROGRAM $ENVIRONMENT \
|
---|
110 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
111 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
112 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
113 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
114 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
115 | -hierarchy_construction_type=2 \
|
---|
116 | -hierarchy_construction_consider_memory2=true \
|
---|
117 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
118 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
119 | -hierarchy_construction_multilevel=false \
|
---|
120 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
121 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
122 |
|
---|
123 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
124 |
|
---|
125 |
|
---|
126 |
|
---|
127 | ############################################################################
|
---|
128 | NODES=10000
|
---|
129 |
|
---|
130 | METHOD=sequential-$NODES
|
---|
131 | echo "$SCENE $METHOD"
|
---|
132 |
|
---|
133 | $PROGRAM $ENVIRONMENT \
|
---|
134 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
135 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
136 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
137 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
138 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
139 | -hierarchy_construction_type=0 \
|
---|
140 | -bvh_term_max_leaves=$NODES
|
---|
141 |
|
---|
142 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
143 |
|
---|
144 | ############################################################################
|
---|
145 |
|
---|
146 | NODES=70000
|
---|
147 |
|
---|
148 | METHOD=sequential-$NODES
|
---|
149 | echo "$SCENE $METHOD"
|
---|
150 |
|
---|
151 | $PROGRAM $ENVIRONMENT \
|
---|
152 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
153 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
154 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
155 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
156 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
157 | -hierarchy_construction_type=0 \
|
---|
158 | -bvh_term_max_leaves=$NODES
|
---|
159 |
|
---|
160 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
161 |
|
---|
162 |
|
---|
163 | ############################################################################
|
---|
164 |
|
---|
165 | NODES=30000
|
---|
166 |
|
---|
167 | METHOD=sequential-$NODES
|
---|
168 | echo "$SCENE $METHOD"
|
---|
169 |
|
---|
170 | $PROGRAM $ENVIRONMENT \
|
---|
171 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
172 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
173 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
174 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
175 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
176 | -hierarchy_construction_type=0 \
|
---|
177 | -bvh_term_max_leaves=$NODES
|
---|
178 |
|
---|
179 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
180 |
|
---|
181 |
|
---|
182 | ############################################################################
|
---|
183 |
|
---|
184 | NODES=100000
|
---|
185 |
|
---|
186 | METHOD=sequential-$NODES
|
---|
187 | echo "$SCENE $METHOD"
|
---|
188 |
|
---|
189 | $PROGRAM $ENVIRONMENT \
|
---|
190 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
191 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
192 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
193 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
194 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
195 | -hierarchy_construction_type=0 \
|
---|
196 | -bvh_term_max_leaves=$NODES
|
---|
197 |
|
---|
198 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
199 |
|
---|
200 |
|
---|
201 | ##################################################################################
|
---|
202 | MEMCONST=1.0
|
---|
203 | METHOD=gradient-multi-$MEMCONST
|
---|
204 | echo "$SCENE $METHOD"
|
---|
205 |
|
---|
206 | $PROGRAM $ENVIRONMENT \
|
---|
207 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
208 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
209 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
210 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
211 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
212 | -hierarchy_construction_type=2 \
|
---|
213 | -hierarchy_construction_consider_memory2=true \
|
---|
214 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
215 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
216 | -hierarchy_construction_multilevel=true \
|
---|
217 | -hierarchy_construction_levels=4 \
|
---|
218 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
219 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
220 |
|
---|
221 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
222 |
|
---|
223 |
|
---|
224 | ###############################################################
|
---|
225 | MEMCONST=1.0
|
---|
226 | METHOD=gradient-$MEMCONST
|
---|
227 | echo ********" $SCENE $METHOD ************"
|
---|
228 |
|
---|
229 | # $PROGRAM $ENVIRONMENT \
|
---|
230 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
231 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
232 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
233 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
234 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
235 | -hierarchy_construction_type=2 \
|
---|
236 | -hierarchy_construction_multilevel=false \
|
---|
237 | -hierarchy_construction_levels=4 \
|
---|
238 | -hierarchy_construction_consider_memory=true \
|
---|
239 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
240 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
241 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
242 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
243 |
|
---|
244 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
245 |
|
---|
246 | #########################################################################
|
---|
247 |
|
---|
248 | MEMCONST=0.1
|
---|
249 | METHOD=gradient-$MEMCONST
|
---|
250 | echo ********" $SCENE $METHOD ************"
|
---|
251 |
|
---|
252 | #$PROGRAM $ENVIRONMENT \
|
---|
253 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
254 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
255 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
256 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
257 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
258 | -hierarchy_construction_type=2 \
|
---|
259 | -hierarchy_construction_multilevel=false \
|
---|
260 | -hierarchy_construction_levels=4 \
|
---|
261 | -hierarchy_construction_consider_memory=true \
|
---|
262 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
263 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
264 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
265 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
266 |
|
---|
267 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
268 |
|
---|
269 |
|
---|
270 | ########################################################################
|
---|
271 |
|
---|
272 | METHOD=gradient_simplesplit
|
---|
273 | echo "$SCENE $METHOD"
|
---|
274 |
|
---|
275 | #$PROGRAM $ENVIRONMENT \
|
---|
276 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
277 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
278 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
279 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
280 | -bvh_use_sah=true \
|
---|
281 | -vsp_use_cost_heuristics=true \
|
---|
282 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
283 | -hierarchy_construction_type=2 \
|
---|
284 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
285 |
|
---|
286 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
287 |
|
---|
288 | ##########################################################
|
---|
289 | METHOD=gradient-500
|
---|
290 | echo "$SCENE $METHOD"
|
---|
291 |
|
---|
292 | # $PROGRAM $ENVIRONMENT \
|
---|
293 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
294 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
295 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
296 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
297 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
298 | -hierarchy_construction_type=2 \
|
---|
299 | -hierarchy_construction_consider_memory=false \
|
---|
300 | -hierarchy_construction_min_steps_same_type=500 \
|
---|
301 | -hierarchy_construction_multilevel=false \
|
---|
302 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
303 |
|
---|
304 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
305 |
|
---|
306 |
|
---|
307 | ############################################################################
|
---|
308 |
|
---|