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

Revision 2543, 4.1 KB checked in by mattausch, 17 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
11EXT=obj
12
13#SCENE=vienna_cropped
14#SCENE_PATH=../data/vienna
15
16SCENE=arena-high-lods
17SCENE_PATH=../data/Arena
18
19#SCENE=PompeiiOne
20#SCENE_PATH=../data/pompeii
21
22#SCENE=soda
23#SCENE_PATH=../data/soda
24
25ENVIRONMENT=gi_final.env
26LOG_PREFIX=../scripts/tests/gi/$SCENE
27
28echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
29
30SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
31
32OBJ_WEIGHT=10
33
34
35#######################################################
36
37NODES=3000
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=60000
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#######################################################
84
85USE_HEUR=false
86
87METHOD=int-$USE_HEUR-$OBJ_WEIGHT-nosah
88
89echo "$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
107sh movefiles.sh $LOG_PREFIX-$METHOD
108
109
110#######################################################
111
112USE_HEUR=false
113
114METHOD=int-$USE_HEUR-$OBJ_WEIGHT
115
116echo "$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
134sh movefiles.sh $LOG_PREFIX-$METHOD
Note: See TracBrowser for help on using the repository browser.