- Timestamp:
- 11/13/06 21:25:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.sh
r1456 r1744 1 1 #!/bin/sh 2 2 3 PROGRAM=../bin/release/Preprocessor.exe 4 #PROGRAM=../bin/Debug/Preprocessor.exe 3 # add bin to path 4 export PATH=../bin:$PATH 5 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 6 #TARGET=debug 7 TARGET=release 12 8 9 PROGRAM=../bin/$TARGET/Preprocessor.exe 13 10 14 15 SCENE=$1 16 VIEWCELLS=$2 17 NUM_VIEWCELLS=$3 18 NUM_SAMPLE_RAYS=500000 19 20 LOG_PREFIX=generate_viewcells 21 11 SCENE=vienna_cropped 12 LOG_PREFIX=../scripts/$SCENE 22 13 ENVIRONMENT=generate_viewcells.env 23 14 15 echo "starting $TARGET mode for $SCENE scene" 24 16 25 ############################################### 17 ############################################################################ 26 18 27 METHOD=avs 28 echo "$SCENE $METHOD"19 METHOD=gradient 20 echo "$SCENE $METHOD" 29 21 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 22 $PROGRAM $ENVIRONMENT \ 23 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ 24 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 25 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ 26 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ 27 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ 28 -hierarchy_construction_type=2 \ 29 -hierarchy_construction_consider_memory=true
Note: See TracChangeset
for help on using the changeset viewer.