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