source: GTP/trunk/Lib/Vis/Preprocessing/scripts/egsr_test_script @ 736

Revision 736, 8.1 KB checked in by mattausch, 19 years ago (diff)

completed histogram

Line 
1#!/bin/sh
2PROGRAM=../bin/release/Preprocessor.exe
3
4#SCENE=$1
5SCENE=soda
6#SCENE=soda5
7#SCENE=atlanta
8#SCENE=vienna
9
10LOG_PREFIX=../scripts/tests/egsr06/$SCENE
11
12ENVIRONMENT=$SCENE.env
13
14
15################################################################
16#                         vspbsptree                           #
17################################################################
18
19#
20# our method with full subdivision
21#
22
23METHOD=vspbsp
24
25echo "$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
38mv 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
51METHOD=onlysubdiv
52
53echo "$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
65mv 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
80METHOD=bsp
81
82echo "$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
93mv 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
106METHOD=nirenstein
107
108echo "$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
128mv 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
140METHOD=kd
141
142echo "$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
170METHOD=octree
171
172echo "$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
189mv 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
207METHOD=vsp-good-merge
208
209echo "$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
220mv 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
233METHOD=vsp-few-samples
234
235echo "$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
248mv 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
261METHOD=vsp-many-samples
262
263echo "$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
276mv 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
288METHOD=vsp-many-samples-no-split-queue
289
290echo "$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
304mv debug.log $LOG_PREFIX-$METHOD-debug.log
Note: See TracBrowser for help on using the repository browser.