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

Revision 1456, 1.6 KB checked in by bittner, 18 years ago (diff)
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3PROGRAM=../bin/release/Preprocessor.exe
4#PROGRAM=../bin/Debug/Preprocessor.exe
5
6if [ $# -ne 3 ]
7then
8    echo "Usage:"
9        echo "preprocess_visibility scene_file.x3d viewcells_file.xml number_of_viewcells"
10    exit
11fi
12
13
14
15SCENE=$1
16VIEWCELLS=$2
17NUM_VIEWCELLS=$3
18NUM_SAMPLE_RAYS=500000
19
20LOG_PREFIX=generate_viewcells
21
22ENVIRONMENT=generate_viewcells.env
23
24
25###############################################
26
27METHOD=avs
28echo "$SCENE $METHOD"
29
30$PROGRAM $ENVIRONMENT \
31-scene_filename=$SCENE \
32-view_cells_type=vspBspTree \
33-view_cells_construction_samples=0 \
34-vsp_bsp_construction_samples=$NUM_SAMPLE_RAYS \
35-vsp_bsp_term_max_view_cells=$NUM_VIEWCELLS \
36-view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \
37-view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \
38-vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \
39-view_cells_post_process_merge=false \
40-view_cells_active=$NUM_VIEWCELLS \
41-view_cells_filename=$VIEWCELLS \
42-view_cells_export_pvs=true \
43-view_cells_export_bounding_boxes=true \
44-vsp_bsp_term_min_pvs=0 \
45-view_cells_evaluate=false \
46-vsp_bsp_use_cost_heuristics=true \
47-vsp_bsp_max_poly_candidates=0 \
48-vsp_bsp_use_split_cost_queue=true \
49-view_cells_show_visualization=true \
50-view_cells_construction_samples=0 \
51-view_cells_evaluation_samples=2000000 \
52-view_cells_evaluation_samples_per_pass=1000000
53
54
55mv debug.log $LOG_PREFIX-$METHOD-debug.log
56mv merged_view_cells.wrl $LOG_PREFIX-$METHOD-merged_view_cells.wrl
57mv merged_view_cells_pvs.wrl $LOG_PREFIX-$METHOD-merged_view_cells_pvs.wrl
58#mv final_view_cells.x3d $LOG_PREFIX-$METHOD-final_view_cells.x3d
Note: See TracBrowser for help on using the repository browser.