source: GTP/trunk/Lib/Vis/Preprocessing/scripts/gi_final.sh @ 2381

Revision 2381, 5.8 KB checked in by mattausch, 18 years ago (diff)
Line 
1#!/bin/sh
2
3# add bin to path
4export PATH=../bin:$PATH
5
6#TARGET=debug
7TARGET=release
8
9PROGRAM=../bin/$TARGET/Preprocessor.exe
10#PROGRAM=../bin/$TARGET/Preprocessor_itl.exe
11
12EXT=obj
13
14#SCENE=vienna_cropped
15#SCENE_PATH=../data/vienna
16
17SCENE=arena-high-lods
18SCENE_PATH=../data/Arena
19
20#SCENE=PompeiiOne
21#SCENE_PATH=../data/pompeii
22
23#SCENE=soda
24#SCENE_PATH=../data/soda
25
26ENVIRONMENT=gi_final.env
27LOG_PREFIX=../scripts/tests/gi/$SCENE
28
29echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
30
31SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
32
33OBJ_WEIGHT=20
34
35#######################################################
36
37NODES=30000
38USE_HEUR=false
39METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
40 
41echo "$SCENE $METHOD"
42$PROGRAM $ENVIRONMENT \
43 -scene_filename=$SCENE_FILENAME \
44 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
45 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
46 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
47 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
48 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
49 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
50 -hierarchy_construction_type=0 \
51 -view_cells_triangle_weight=1.0 \
52 -view_cells_object_weight=$OBJ_WEIGHT \
53 -vsp_use_cost_heuristics=$USE_HEUR \
54 -bvh_term_max_leaves=$NODES
55
56sh movefiles.sh $LOG_PREFIX-$METHOD
57
58
59#######################################################
60
61NODES=3000
62USE_HEUR=false
63METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
64 
65echo "$SCENE $METHOD"
66$PROGRAM $ENVIRONMENT \
67 -scene_filename=$SCENE_FILENAME \
68 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
69 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
70 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
71 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
72 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
73 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
74 -hierarchy_construction_type=0 \
75 -view_cells_triangle_weight=1.0 \
76 -view_cells_object_weight=$OBJ_WEIGHT \
77 -vsp_use_cost_heuristics=$USE_HEUR \
78 -bvh_term_max_leaves=$NODES
79
80sh movefiles.sh $LOG_PREFIX-$METHOD
81
82#######################################################
83
84NODES=1000
85USE_HEUR=false
86METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
87 
88echo "$SCENE $METHOD"
89$PROGRAM $ENVIRONMENT \
90 -scene_filename=$SCENE_FILENAME \
91 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
92 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
93 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
94 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
95 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
96 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
97 -hierarchy_construction_type=0 \
98 -view_cells_triangle_weight=1.0 \
99 -view_cells_object_weight=$OBJ_WEIGHT \
100 -vsp_use_cost_heuristics=$USE_HEUR \
101 -bvh_term_max_leaves=$NODES
102
103sh movefiles.sh $LOG_PREFIX-$METHOD
104
105
106#######################################################
107
108USE_HEUR=false
109
110METHOD=int-$USE_HEUR-$OBJ_WEIGHT-nosah
111
112echo "$SCENE $METHOD"
113$PROGRAM $ENVIRONMENT \
114  -scene_filename=$SCENE_FILENAME \
115  -view_cells_sampling_type=object_directional \
116  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
117  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
118  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
119  -view_cells_triangle_weight=1.0 \
120  -view_cells_object_weight=$OBJ_WEIGHT \
121  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
122  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
123  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
124  -hierarchy_construction_type=2 \
125  -hierarchy_construction_min_avg_rays_per_object=0 \
126  -hierarchy_construction_max_avg_rays_per_object=0 \
127  -bvh_use_sah=false \
128  -vsp_use_cost_heuristics=$USE_HEUR
129
130sh movefiles.sh $LOG_PREFIX-$METHOD
131
132
133#######################################################
134
135USE_HEUR=false
136
137METHOD=int-$USE_HEUR-$OBJ_WEIGHT
138
139echo "$SCENE $METHOD"
140$PROGRAM $ENVIRONMENT \
141  -scene_filename=$SCENE_FILENAME \
142  -view_cells_sampling_type=object_directional \
143  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
144  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
145  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
146  -view_cells_triangle_weight=1.0 \
147  -view_cells_object_weight=$OBJ_WEIGHT \
148  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
149  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
150  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
151  -hierarchy_construction_type=2 \
152  -hierarchy_construction_min_avg_rays_per_object=0 \
153  -hierarchy_construction_max_avg_rays_per_object=0 \
154  -bvh_use_sah=true \
155  -vsp_use_cost_heuristics=$USE_HEUR
156
157sh movefiles.sh $LOG_PREFIX-$METHOD
158
159
160#######################################################
161
162NODES=60000
163USE_HEUR=false
164METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
165 
166echo "$SCENE $METHOD"
167$PROGRAM $ENVIRONMENT \
168 -scene_filename=$SCENE_FILENAME \
169 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
170 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
171 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
172 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
173 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
174 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
175 -hierarchy_construction_type=0 \
176 -view_cells_triangle_weight=1.0 \
177 -view_cells_object_weight=$OBJ_WEIGHT \
178 -vsp_use_cost_heuristics=$USE_HEUR \
179 -bvh_term_max_leaves=$NODES
180
181sh movefiles.sh $LOG_PREFIX-$METHOD
182
Note: See TracBrowser for help on using the repository browser.