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