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

Revision 2255, 2.9 KB checked in by mattausch, 18 years ago (diff)

improved scenemanager config

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
12SCENE=vienna_cropped
13SCENE_PATH=../data/vienna
14
15#SCENE=arena-high-lods
16#SCENE_PATH=../data/Arena
17
18ENVIRONMENT=gi_final.env
19
20LOG_PREFIX=../scripts/tests/gi/$SCENE-speed
21
22echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
23
24SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
25
26#######################################################
27
28USE_HEUR=true
29 METHOD=int
30 echo "$SCENE $METHOD"
31
32
33#$PROGRAM $ENVIRONMENT \
34  -scene_filename=$SCENE_FILENAME \
35  -view_cells_sampling_type=object_directional \
36  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
37  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
38  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
39  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
40  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
41  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
42  -hierarchy_construction_type=2 \
43  -hierarchy_construction_min_avg_rays_per_object=0 \
44  -hierarchy_construction_max_avg_rays_per_object=0 \
45  -bvh_use_sah=false \
46  -vsp_use_cost_heuristics=$USE_HEUR
47
48#sh movefiles.sh $LOG_PREFIX-$METHOD
49
50#######################################################
51
52NODES=60000
53#NODES=5000
54USE_HEUR=true
55#USE_HEUR=false
56 
57METHOD=seq-$NODES
58echo "$SCENE $METHOD"
59
60$PROGRAM $ENVIRONMENT \
61  -scene_filename=$SCENE_FILENAME \
62  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
63  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
64  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
65  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
66  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
67  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
68  -hierarchy_construction_type=0 \
69  -hierarchy_construction_consider_memory=false \
70  -vsp_use_cost_heuristics=$USE_HEUR \
71  -bvh_term_max_leaves=$NODES
72
73sh movefiles.sh $LOG_PREFIX-$METHOD
74
75
76#######################################################
77
78NODES=10000
79USE_HEUR=true
80#USE_HEUR=false
81 
82METHOD=seq-$NODES
83echo "$SCENE $METHOD"
84
85$PROGRAM $ENVIRONMENT \
86  -scene_filename=$SCENE_FILENAME \
87  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
88  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
89  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
90  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
91  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
92  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
93  -hierarchy_construction_type=0 \
94  -hierarchy_construction_consider_memory=false \
95  -vsp_use_cost_heuristics=$USE_HEUR \
96  -bvh_term_max_leaves=$NODES
97
98sh movefiles.sh $LOG_PREFIX-$METHOD
Note: See TracBrowser for help on using the repository browser.