#!/bin/sh # add bin to path export PATH=../bin:$PATH #TARGET=debug TARGET=release PROGRAM=../bin/$TARGET/Preprocessor.exe EXT=obj SCENE=vienna_cropped SCENE_PATH=../data/vienna #SCENE=arena-high-lods #SCENE_PATH=../data/Arena ENVIRONMENT=gi_final.env LOG_PREFIX=../scripts/tests/gi/$SCENE-speed echo "starting $TARGET mode for $SCENE scene ($PROGRAM)" SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT ####################################################### USE_HEUR=true METHOD=int echo "$SCENE $METHOD" $PROGRAM $ENVIRONMENT \ -scene_filename=$SCENE_FILENAME \ -view_cells_sampling_type=object_directional \ -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ -hierarchy_construction_type=2 \ -hierarchy_construction_min_avg_rays_per_object=0 \ -hierarchy_construction_max_avg_rays_per_object=0 \ -bvh_use_sah=false \ -vsp_use_cost_heuristics=$USE_HEUR sh movefiles.sh $LOG_PREFIX-$METHOD ####################################################### USE_HEUR=true METHOD=int-2 echo "$SCENE $METHOD" $PROGRAM $ENVIRONMENT \ -scene_filename=$SCENE_FILENAME \ -view_cells_sampling_type=object_directional \ -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ -hierarchy_construction_type=2 \ -hierarchy_construction_min_avg_rays_per_object=1 \ -hierarchy_construction_max_avg_rays_per_object=10 \ -bvh_use_sah=false \ -vsp_use_cost_heuristics=$USE_HEUR sh movefiles.sh $LOG_PREFIX-$METHOD ####################################################### NODES=60000 #NODES=5000 USE_HEUR=true #USE_HEUR=false METHOD=seq-$NODES echo "$SCENE $METHOD" #$PROGRAM $ENVIRONMENT \ -scene_filename=$SCENE_FILENAME \ -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ -hierarchy_construction_type=0 \ -hierarchy_construction_consider_memory=false \ -vsp_use_cost_heuristics=$USE_HEUR \ -bvh_term_max_leaves=$NODES #sh movefiles.sh $LOG_PREFIX-$METHOD ####################################################### NODES=10000 USE_HEUR=true #USE_HEUR=false METHOD=seq-$NODES echo "$SCENE $METHOD" #$PROGRAM $ENVIRONMENT \ -scene_filename=$SCENE_FILENAME \ -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ -hierarchy_construction_type=0 \ -hierarchy_construction_consider_memory=false \ -vsp_use_cost_heuristics=$USE_HEUR \ -bvh_term_max_leaves=$NODES #sh movefiles.sh $LOG_PREFIX-$METHOD