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 | EXT=obj
|
---|
12 |
|
---|
13 | #SCENE=vienna_cropped
|
---|
14 | #SCENE_PATH=../data/vienna
|
---|
15 |
|
---|
16 | SCENE=arena-high-lods
|
---|
17 | SCENE_PATH=../data/Arena
|
---|
18 |
|
---|
19 | #SCENE=PompeiiOne
|
---|
20 | #SCENE_PATH=../data/pompeii
|
---|
21 |
|
---|
22 | #SCENE=soda
|
---|
23 | #SCENE_PATH=../data/soda
|
---|
24 |
|
---|
25 | ENVIRONMENT=gi_final.env
|
---|
26 | LOG_PREFIX=../scripts/tests/gi/$SCENE
|
---|
27 |
|
---|
28 | echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
|
---|
29 |
|
---|
30 | SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
|
---|
31 |
|
---|
32 | OBJ_WEIGHT=10
|
---|
33 |
|
---|
34 |
|
---|
35 | #######################################################
|
---|
36 |
|
---|
37 | NODES=3000
|
---|
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=60000
|
---|
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 |
|
---|
85 | USE_HEUR=false
|
---|
86 |
|
---|
87 | METHOD=int-$USE_HEUR-$OBJ_WEIGHT-nosah
|
---|
88 |
|
---|
89 | echo "$SCENE $METHOD"
|
---|
90 | $PROGRAM $ENVIRONMENT \
|
---|
91 | -scene_filename=$SCENE_FILENAME \
|
---|
92 | -view_cells_sampling_type=object_directional \
|
---|
93 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
94 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
95 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
|
---|
96 | -view_cells_triangle_weight=1.0 \
|
---|
97 | -view_cells_object_weight=$OBJ_WEIGHT \
|
---|
98 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
99 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
100 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
101 | -hierarchy_construction_type=2 \
|
---|
102 | -hierarchy_construction_min_avg_rays_per_object=0 \
|
---|
103 | -hierarchy_construction_max_avg_rays_per_object=0 \
|
---|
104 | -bvh_use_sah=false \
|
---|
105 | -vsp_use_cost_heuristics=$USE_HEUR
|
---|
106 |
|
---|
107 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|
108 |
|
---|
109 |
|
---|
110 | #######################################################
|
---|
111 |
|
---|
112 | USE_HEUR=false
|
---|
113 |
|
---|
114 | METHOD=int-$USE_HEUR-$OBJ_WEIGHT
|
---|
115 |
|
---|
116 | echo "$SCENE $METHOD"
|
---|
117 | $PROGRAM $ENVIRONMENT \
|
---|
118 | -scene_filename=$SCENE_FILENAME \
|
---|
119 | -view_cells_sampling_type=object_directional \
|
---|
120 | -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
|
---|
121 | -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
|
---|
122 | -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
|
---|
123 | -view_cells_triangle_weight=1.0 \
|
---|
124 | -view_cells_object_weight=$OBJ_WEIGHT \
|
---|
125 | -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
|
---|
126 | -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
|
---|
127 | -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
|
---|
128 | -hierarchy_construction_type=2 \
|
---|
129 | -hierarchy_construction_min_avg_rays_per_object=0 \
|
---|
130 | -hierarchy_construction_max_avg_rays_per_object=0 \
|
---|
131 | -bvh_use_sah=true \
|
---|
132 | -vsp_use_cost_heuristics=$USE_HEUR
|
---|
133 |
|
---|
134 | sh movefiles.sh $LOG_PREFIX-$METHOD
|
---|