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

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