[1633] | 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 |
|
---|
[1654] | 13 | #SCENE=vsposp_typical
|
---|
[1673] | 14 | #SCENE=soda5_vsposp
|
---|
[1679] | 15 | #SCENE=soda_vsposp
|
---|
| 16 | SCENE=vienna_vsposp
|
---|
[1660] | 17 | #SCENE=arena_vsposp
|
---|
| 18 | #SCENE=vsposp_citymodel
|
---|
[1633] | 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 |
|
---|
[1654] | 31 | METHOD=interleaved_full
|
---|
| 32 | echo "$SCENE $METHOD"
|
---|
[1633] | 33 |
|
---|
[1642] | 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
|
---|
[1633] | 42 |
|
---|
[1654] | 43 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
[1640] | 44 |
|
---|
[1654] | 45 | ###########################################################################
|
---|
[1640] | 46 |
|
---|
[1654] | 47 | METHOD=interleaved
|
---|
| 48 | echo "$SCENE $METHOD"
|
---|
[1640] | 49 |
|
---|
[1642] | 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
|
---|
[1640] | 58 |
|
---|
[1654] | 59 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
[1640] | 60 |
|
---|
[1654] | 61 | ##################################################################################
|
---|
[1679] | 62 | MEMCONST=1.0
|
---|
| 63 | METHOD=gradient-mem2-$MEMCONST
|
---|
[1676] | 64 | echo "$SCENE $METHOD"
|
---|
[1640] | 65 |
|
---|
[1676] | 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 \
|
---|
[1679] | 73 | -hierarchy_construction_consider_memory2=true \
|
---|
[1676] | 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
|
---|
[1679] | 85 | METHOD=gradient-mem2-$MEMCONST
|
---|
[1654] | 86 | echo "$SCENE $METHOD"
|
---|
[1640] | 87 |
|
---|
[1667] | 88 | $PROGRAM $ENVIRONMENT \
|
---|
[1660] | 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 \
|
---|
[1679] | 95 | -hierarchy_construction_consider_memory2=true \
|
---|
[1673] | 96 | -bvh_construction_render_cost_decrease_weight=0.99 \
|
---|
| 97 | -vsp_construction_render_cost_decrease_weight=0.99 \
|
---|
[1660] | 98 | -hierarchy_construction_multilevel=false \
|
---|
[1676] | 99 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
[1660] | 100 | -hierarchy_construction_recompute_split_on_repair=true
|
---|
[1640] | 101 |
|
---|
[1654] | 102 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
[1642] | 103 |
|
---|
[1676] | 104 | ##################################################################################
|
---|
| 105 | MEMCONST=0.2
|
---|
[1679] | 106 | METHOD=gradient-mem2-$MEMCONST
|
---|
[1676] | 107 | echo "$SCENE $METHOD"
|
---|
[1643] | 108 |
|
---|
[1676] | 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 \
|
---|
[1679] | 116 | -hierarchy_construction_consider_memory2=true \
|
---|
[1676] | 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 |
|
---|
[1654] | 127 | ############################################################################
|
---|
[1679] | 128 | NODES=10000
|
---|
[1643] | 129 |
|
---|
[1654] | 130 | METHOD=sequential-$NODES
|
---|
| 131 | echo "$SCENE $METHOD"
|
---|
[1643] | 132 |
|
---|
[1679] | 133 | $PROGRAM $ENVIRONMENT \
|
---|
[1660] | 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
|
---|
[1643] | 141 |
|
---|
[1654] | 142 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
[1643] | 143 |
|
---|
[1654] | 144 | ############################################################################
|
---|
[1643] | 145 |
|
---|
[1679] | 146 | NODES=70000
|
---|
[1642] | 147 |
|
---|
[1654] | 148 | METHOD=sequential-$NODES
|
---|
| 149 | echo "$SCENE $METHOD"
|
---|
| 150 |
|
---|
[1679] | 151 | $PROGRAM $ENVIRONMENT \
|
---|
[1660] | 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
|
---|
[1658] | 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 |
|
---|
[1679] | 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
|
---|
[1642] | 178 |
|
---|
[1654] | 179 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
| 180 |
|
---|
| 181 |
|
---|
[1679] | 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 |
|
---|
[1664] | 224 | ###############################################################
|
---|
[1666] | 225 | MEMCONST=1.0
|
---|
| 226 | METHOD=gradient-$MEMCONST
|
---|
| 227 | echo ********" $SCENE $METHOD ************"
|
---|
[1664] | 228 |
|
---|
[1667] | 229 | # $PROGRAM $ENVIRONMENT \
|
---|
[1666] | 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
|
---|
[1664] | 250 | echo ********" $SCENE $METHOD ************"
|
---|
| 251 |
|
---|
[1667] | 252 | #$PROGRAM $ENVIRONMENT \
|
---|
[1664] | 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 \
|
---|
[1666] | 262 | -hierarchy_term_memory_const=$MEMCONST \
|
---|
[1664] | 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 |
|
---|
[1654] | 270 | ########################################################################
|
---|
| 271 |
|
---|
[1662] | 272 | METHOD=gradient_simplesplit
|
---|
| 273 | echo "$SCENE $METHOD"
|
---|
[1654] | 274 |
|
---|
[1667] | 275 | #$PROGRAM $ENVIRONMENT \
|
---|
[1662] | 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
|
---|
[1654] | 285 |
|
---|
| 286 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
[1660] | 287 |
|
---|
[1662] | 288 | ##########################################################
|
---|
| 289 | METHOD=gradient-500
|
---|
| 290 | echo "$SCENE $METHOD"
|
---|
| 291 |
|
---|
[1663] | 292 | # $PROGRAM $ENVIRONMENT \
|
---|
[1662] | 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 |
|
---|