source: GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.sh @ 2633

Revision 2633, 1.4 KB checked in by mattausch, 17 years ago (diff)

revived hash pvs

  • Property svn:executable set to *
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
11
12EXT=obj
13
14SCENE=vienna_cropped
15SCENE_PATH=../data/vienna
16
17SCENE=arena-high-lods
18SCENE_PATH=../data/Arena
19
20SCENE=PompeiiTen
21SCENE_PATH=../data/pompeii
22
23
24ENVIRONMENT=generate_viewcells.env
25LOG_PREFIX=$SCENE
26
27echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
28
29SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT
30
31
32#######################################################
33
34NODES=4000
35VIEWCELLS=5000
36
37USE_HEUR=false
38OBJ_WEIGHT=20
39
40SAMPLES=1000000
41
42METHOD=$VIEWCELLS
43 
44echo "$SCENE $METHOD"
45$PROGRAM $ENVIRONMENT \
46 -scene_filename=$SCENE_FILENAME \
47 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
48 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
49 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \
50 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \
51 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \
52 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \
53 -hierarchy_construction_type=0 \
54 -view_cells_triangle_weight=1.0 \
55 -view_cells_object_weight=$OBJ_WEIGHT \
56 -vsp_use_cost_heuristics=$USE_HEUR \
57 -bvh_term_max_leaves=$NODES \
58 -vsp_term_max_view_cells=$VIEWCELLS \
59 -hierarchy_construction_samples=$SAMPLES
60
61sh movefiles.sh $LOG_PREFIX-$METHOD
62
Note: See TracBrowser for help on using the repository browser.