Ignore:
Timestamp:
11/13/06 21:25:40 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.sh

    r1456 r1744  
    11#!/bin/sh 
    22 
    3 PROGRAM=../bin/release/Preprocessor.exe 
    4 #PROGRAM=../bin/Debug/Preprocessor.exe 
     3# add bin to path 
     4export PATH=../bin:$PATH 
    55 
    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 
     7TARGET=release 
    128 
     9PROGRAM=../bin/$TARGET/Preprocessor.exe 
    1310 
    14  
    15 SCENE=$1 
    16 VIEWCELLS=$2 
    17 NUM_VIEWCELLS=$3 
    18 NUM_SAMPLE_RAYS=500000 
    19  
    20 LOG_PREFIX=generate_viewcells 
    21  
     11SCENE=vienna_cropped 
     12LOG_PREFIX=../scripts/$SCENE 
    2213ENVIRONMENT=generate_viewcells.env 
    2314 
     15echo "starting $TARGET mode for $SCENE scene" 
    2416 
    25 ############################################### 
     17############################################################################ 
    2618 
    27 METHOD=avs 
    28 echo "$SCENE $METHOD" 
     19 METHOD=gradient 
     20 echo "$SCENE $METHOD" 
    2921 
    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.