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 | #PROGRAM=../bin/$TARGET/Preprocessor_itl.exe
|
---|
11 |
|
---|
12 | EXT=obj
|
---|
13 |
|
---|
14 | #SCENE=vienna_cropped
|
---|
15 | #SCENE_PATH=../data/vienna
|
---|
16 |
|
---|
17 | SCENE=arena-high-lods
|
---|
18 | SCENE_PATH=../data/Arena
|
---|
19 |
|
---|
20 | #SCENE=PompeiiOne
|
---|
21 | #SCENE_PATH=../data/pompeii
|
---|
22 |
|
---|
23 | #SCENE=soda
|
---|
24 | #SCENE_PATH=../data/soda
|
---|
25 |
|
---|
26 | ENVIRONMENT=gi_final.env
|
---|
27 | LOG_PREFIX=../scripts/tests/gi/$SCENE
|
---|
28 |
|
---|
29 | echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
|
---|
30 |
|
---|
31 | SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
|
---|
32 |
|
---|
33 | OBJ_WEIGHT=20
|
---|
34 |
|
---|
35 | #######################################################
|
---|
36 |
|
---|
37 | NODES=30000
|
---|
38 | USE_HEUR=false
|
---|
39 | METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
|
---|
40 |
|
---|
41 | echo "$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 |
|
---|
56 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
57 |
|
---|
58 |
|
---|
59 | #######################################################
|
---|
60 |
|
---|
61 | NODES=3000
|
---|
62 | USE_HEUR=false
|
---|
63 | METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
|
---|
64 |
|
---|
65 | echo "$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 |
|
---|
80 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
81 |
|
---|
82 | #######################################################
|
---|
83 |
|
---|
84 | NODES=1000
|
---|
85 | USE_HEUR=false
|
---|
86 | METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
|
---|
87 |
|
---|
88 | echo "$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 |
|
---|
103 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
104 |
|
---|
105 |
|
---|
106 | #######################################################
|
---|
107 |
|
---|
108 | USE_HEUR=false
|
---|
109 |
|
---|
110 | METHOD=int-$USE_HEUR-$OBJ_WEIGHT-nosah
|
---|
111 |
|
---|
112 | echo "$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 |
|
---|
130 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
131 |
|
---|
132 |
|
---|
133 | #######################################################
|
---|
134 |
|
---|
135 | USE_HEUR=false
|
---|
136 |
|
---|
137 | METHOD=int-$USE_HEUR-$OBJ_WEIGHT
|
---|
138 |
|
---|
139 | echo "$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 |
|
---|
157 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
158 |
|
---|
159 |
|
---|
160 | #######################################################
|
---|
161 |
|
---|
162 | NODES=60000
|
---|
163 | USE_HEUR=false
|
---|
164 | METHOD=seq-$NODES-$USE_HEUR-$OBJ_WEIGHT
|
---|
165 |
|
---|
166 | echo "$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 |
|
---|
181 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
182 |
|
---|