1 | #!/bin/sh
|
---|
2 |
|
---|
3 | PROGRAM=../bin/release/Preprocessor.exe
|
---|
4 | #PROGRAM=../bin/Debug/Preprocessor.exe
|
---|
5 |
|
---|
6 | if [ $# -ne 3 ]
|
---|
7 | then
|
---|
8 | echo "Usage:"
|
---|
9 | echo "preprocess_visibility scene_file.x3d viewcells_file.xml number_of_viewcells"
|
---|
10 | exit
|
---|
11 | fi
|
---|
12 |
|
---|
13 |
|
---|
14 |
|
---|
15 | SCENE=$1
|
---|
16 | VIEWCELLS=$2
|
---|
17 | NUM_VIEWCELLS=$3
|
---|
18 | NUM_SAMPLE_RAYS=500000
|
---|
19 |
|
---|
20 | LOG_PREFIX=generate_viewcells
|
---|
21 |
|
---|
22 | ENVIRONMENT=generate_viewcells.env
|
---|
23 |
|
---|
24 |
|
---|
25 | ###############################################
|
---|
26 |
|
---|
27 | METHOD=avs
|
---|
28 | echo "$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 |
|
---|
55 | mv debug.log $LOG_PREFIX-$METHOD-debug.log
|
---|
56 | mv merged_view_cells.wrl $LOG_PREFIX-$METHOD-merged_view_cells.wrl
|
---|
57 | mv 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 |
---|