Changeset 2075


Ignore:
Timestamp:
02/02/07 11:31:53 (17 years ago)
Author:
bittner
Message:

preprocess visibility scripts update

Location:
GTP/trunk/Lib/Vis/Preprocessing/scripts
Files:
1 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/arena.env

    r1919 r2075  
    1313#       filename ../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d 
    1414#       filename ../data/vienna/vienna-buildings_vienna-roofs_vienna-roads_vienna-plane_cropped.obj 
    15         filename ../data/vienna/vienna_cropped.obj 
     15#       filename ../data/vienna/vienna_cropped.obj 
    1616#       filename ../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d;../data/vienna/vienna-plane.x3d 
    1717#       filename ../data/vienna/viewcells-25-sel.x3d 
     
    2222#       filename ../data/grandcanyon1_RotXmin90.obj 
    2323#       filename ../data/CityModel.obj 
    24         filename ../data/arena/arena-high-lods.obj 
     24        filename ../data/Arena/arena-high-lods.obj 
    2525} 
    2626 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells

    r1404 r2075  
    1212SCENE=generate_viewcells 
    1313 
    14 LOG_PREFIX=../scripts/vienna 
     14LOG_PREFIX=../scripts/soda 
    1515 
    1616ENVIRONMENT=$SCENE.env 
     
    2323 
    2424$PROGRAM $ENVIRONMENT \ 
    25 -view_cells_type=vspBspTree \ 
     25-view_cells_type=vspOspTree \ 
    2626-view_cells_construction_samples=0 \ 
    2727-vsp_bsp_construction_samples=500000 \ 
     
    3131-vsp_bsp_subdivision_stats=$LOG_PREFIX-$METHOD-subdivisionStats.log \ 
    3232-view_cells_post_process_merge=false \ 
    33 -view_cells_active=1000 \ 
    34 -view_cells_filename=$LOG_PREFIX-visibility.xml.zip \ 
     33-view_cells_active=5000 \ 
     34-view_cells_filename=$LOG_PREFIX-viewcells.xml.gz \ 
    3535-view_cells_export_pvs=true \ 
    3636-view_cells_export_bounding_boxes=true \ 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/preprocess_visibility.env

    r1927 r2075  
    55 
    66Scene { 
    7  
    87filename ../data/vienna/vienna_cropped.obj 
    9 #filename ../data/soda/soda.dat 
    10 #filename ../data/soda/soda5.dat 
    11 } 
     8} 
     9 
    1210 
    1311Preprocessor { 
     12        totalSamples 100000000 
     13#       totalSamples 2000000 
     14        samplesPerPass 250000 
     15        samplesPerEvaluation 5000000 
     16 
     17#       initialSamples 2000000 
     18 
     19        exportObj false 
    1420        delayVisibilityComputation false 
    1521        # stored sample rays 
    1622        samplesFilename rays.out 
    17         #useGlRenderer true 
    1823        useGlRenderer false 
    1924        useGlDebugger false 
    20  
    21         # 0 = INTERNAL  1 = MLRT 
     25# 0 = INTERNAL          1 = MLRT 
    2226        rayCastMethod 0 
    2327         
    24 #       type sampling 
    25 #       type vss 
    26         type rss 
    27 #       type render 
     28        type combined 
    2829        detectEmptyViewSpace true 
    2930        pvsRenderErrorSamples 0 
    3031        quitOnFinish true 
    3132        computeVisibility true 
     33 
     34        evaluateFilter false 
    3235        applyVisibilityFilter false 
    3336        applyVisibilitySpatialFilter false 
     37 
    3438        visibilityFilterWidth   0.01 
    3539        exportVisibility true 
     
    3842        loadKdTree      false 
    3943        exportKdTree false 
     44 
     45        histogram { 
     46                intervals 20 
     47                maxValue  600000 
     48            file        histogram.log 
     49        } 
     50        Export { 
     51                rays false 
     52                numRays 5000 
     53        } 
     54 
    4055} 
    4156 
     
    4459} 
    4560 
    46 RenderSampler { 
    47         samples 10000 
    48 } 
    49  
    50  
    51 SamplingPreprocessor { 
    52         totalSamples 100000000 
    53         samplesPerPass 1000000 
    54 } 
     61 
    5562 
    5663RssPreprocessor { 
    57         samplesPerPass 1000 
    58         initialSamples 2000000 
    59         vssSamples 100000000 
    60 #       vssSamples 1000000 
    61         vssSamplesPerPass 3000000 
     64 
     65        distributions mutation+spatial+object_direction 
     66#       distributions rss+object_direction 
     67#       distributions object_direction 
     68 
    6269        useImportanceSampling true 
    63  
    64         directionalSampling false 
    65         objectBasedSampling false 
    6670 
    6771        Export { 
     
    7478        loadInitialSamples false 
    7579        storeInitialSamples false 
    76 } 
    77  
    78 RssTree { 
    79         epsilon         1e-6 
    80         perObjectTree false 
    81  
    82         maxDepth        60 
    83         minPvs          1 
    84 # before vienna test it was: 
    85 #       minRays 50 
    86 #       splitType heuristic 
    87  
    88         minRays         100 
    89         minSize         0.001 
    90         maxCostRatio 1.0 
    91         maxRayContribution 1.0 
    92         maxRays         3000000 
    93         maxTotalMemory  200 
    94         maxStaticMemory 100 
    95  
    96 #       splitType regular 
    97 #       splitType heuristic 
    98         splitType hybrid 
    99         hybridDepth             10 
    100         splitUseOnlyDrivingAxis false 
    101 #false 
    102         importanceBasedCost false 
    103  
    104         interleaveDirSplits     true 
    105     dirSplitDepth 0 
    106  
    107         ct_div_ci       0.0 
    108 } 
     80 
     81        useRssTree true 
     82} 
     83 
     84 
    10985 
    11086Limits { 
     
    124100                minCost 1 
    125101                maxDepth 30 
    126                 maxCostRatio 1.0 
     102                maxCostRatio 0.98 
    127103                ct_div_ci 0.5 
    128                 maxNodes 500000  
     104                maxNodes 100000 
     105#500000  
    129106        } 
    130107 
     
    134111} 
    135112 
     113 
    136114MeshKdTree { 
    137115        Termination { 
    138                 minCost 8 
     116                minCost 150 
    139117                maxDepth 18 
    140118                maxCostRatio 0.9 
     
    147125} 
    148126 
    149  
    150127ViewCells { 
     128        importRandomViewCells false 
     129 
     130        useKdPvs true 
     131        useKdPvsAfterFiltering true 
    151132        # samples used for view cell construction 
    152133        Construction { 
     
    156137 
    157138        #number of active view cells 
    158         active 20000 
    159         maxViewCells 20000 
     139        active 200000 
     140        maxViewCells 200000 
    160141 
    161142        maxStaticMemory 40 
     
    167148        #type vspKdTree 
    168149        #type bspTree 
    169         #type vspBspTree 
    170         type vspOspTree 
     150        type vspBspTree 
     151        #type vspOspTree 
    171152        #type sceneDependent 
    172153         
     
    176157        maxPvsRatio 1.0 
    177158                 
    178         processOnlyValidViewCells false 
     159        processOnlyValidViewCells true 
    179160 
    180161        #stats viewCellStats.log 
     
    224205        } 
    225206 
     207#filename ../data/Arena/viewcells-20000.xml 
     208 
     209 
    226210        filename ../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 
    227 } 
    228  
     211 
     212} 
    229213 
    230214 
     
    235219        moveSpeed 0.0001 
    236220} 
     221 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/preprocess_visibility.sh

    r1926 r2075  
    1515NUM_SAMPLE_RAYS=5000000 
    1616 
    17 $PREPROCESSOR -rss_vss_samples=$NUM_SAMPLE_RAYS \ 
     17$PREPROCESSOR -total_samples=$NUM_SAMPLE_RAYS \ 
    1818-scene_filename=$1 -view_cells_filename=$2 -preprocessor_visibility_file=$3 preprocess_visibility.env  
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/preprocessor-debug.sh

    r1747 r2075  
    1 #!/bin/sh 
    2 export PATH=$PATH:../bin 
     1#!/bin/bash 
     2export PATH="../bin:$PATH" 
    33../bin/debug/preprocessor.exe $* 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/preprocessor.sh

    r1455 r2075  
    1 #!/bin/sh 
     1#!sh 
    22export PATH=$PATH:../bin 
    33../bin/release/preprocessor.exe $* 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/vienna_cropped.sh

    r1922 r2075  
     1<<<<<<< .mine 
    12#!/bin/sh 
    23 
     
    3839####################################################### 
    3940 
     41NODES=50000 
     42USE_HEUR=true 
     43 
     44  METHOD=sequential-$NODES-$USE_HEUR 
     45  echo "$SCENE $METHOD" 
     46 
     47$PROGRAM $ENVIRONMENT \ 
     48  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 
     49 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 
     50 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ 
     51 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ 
     52 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ 
     53 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ 
     54 -hierarchy_construction_type=0 \ 
     55 -vsp_use_cost_heuristics=$USE_HEUR \ 
     56 -bvh_term_max_leaves=$NODES 
     57 
     58sh movefiles.sh $LOG_PREFIX-$METHOD 
     59 
     60 
     61####################################################### 
     62 
    4063NODES=10000 
    4164USE_HEUR=true 
     
    79102 
    80103sh movefiles.sh $LOG_PREFIX-$METHOD 
     104======= 
     105#!/bin/sh 
     106 
     107# add bin to path 
     108export PATH=../bin:$PATH 
     109 
     110#TARGET=debug 
     111TARGET=release 
     112 
     113PROGRAM=../bin/$TARGET/Preprocessor.exe 
     114 
     115SCENE=vienna_cropped_gi 
     116LOG_PREFIX=../scripts/tests/gi/$SCENE-35MB 
     117ENVIRONMENT=$SCENE.env 
     118 
     119echo "starting $TARGET mode for $SCENE scene" 
     120 
     121############################################################################ 
     122 
     123 METHOD=gradient-full 
     124 echo "$SCENE $METHOD" 
     125 
     126$PROGRAM $ENVIRONMENT \ 
     127  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 
     128  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 
     129  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ 
     130  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ 
     131  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ 
     132  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ 
     133  -hierarchy_construction_type=2 \ 
     134  -hierarchy_construction_consider_memory=true \ 
     135  -hierarchy_construction_multilevel=false \ 
     136  -bvh_use_sah=false \ 
     137  -vsp_use_cost_heuristics=true \ 
     138  -hierarchy_construction_recompute_split_on_repair=true 
     139 
     140sh movefiles.sh $LOG_PREFIX-$METHOD 
     141 
     142####################################################### 
     143 
     144NODES=10000 
     145USE_HEUR=true 
     146 
     147  METHOD=sequential-$NODES-$USE_HEUR 
     148  echo "$SCENE $METHOD" 
     149 
     150$PROGRAM $ENVIRONMENT \ 
     151  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 
     152 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 
     153 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ 
     154 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ 
     155 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ 
     156 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ 
     157 -hierarchy_construction_type=0 \ 
     158 -vsp_use_cost_heuristics=$USE_HEUR \ 
     159 -bvh_term_max_leaves=$NODES 
     160 
     161sh movefiles.sh $LOG_PREFIX-$METHOD 
     162 
     163####################################################### 
     164 
     165 METHOD=gradient-full-corr 
     166 echo "$SCENE $METHOD" 
     167 
     168$PROGRAM $ENVIRONMENT \ 
     169  -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 
     170  -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 
     171  -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ 
     172  -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ 
     173  -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ 
     174  -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ 
     175  -hierarchy_construction_type=2 \ 
     176  -hierarchy_construction_consider_memory=true \ 
     177  -hierarchy_construction_multilevel=false \ 
     178  -bvh_use_sah=false \ 
     179  -vsp_use_cost_heuristics=true \ 
     180  -hierarchy_construction_min_avg_raycontri=0.01 \ 
     181  -hierarchy_construction_max_avg_raycontri=0.5 \ 
     182  -hierarchy_construction_recompute_split_on_repair=true 
     183 
     184sh movefiles.sh $LOG_PREFIX-$METHOD 
    81185 
    82186####################################################### 
     
    102206 
    103207 
    104 ####################################################### 
     208#######################################################>>>>>>> .r2034 
Note: See TracChangeset for help on using the changeset viewer.