Ignore:
Timestamp:
02/01/07 17:38:55 (18 years ago)
Author:
mattausch
Message:

prepared view cell generation that is useable.
changed back view cell generation to vsp osp.

Location:
GTP/trunk/Lib/Vis/Preprocessing/scripts
Files:
2 edited

Legend:

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

    r2071 r2072  
    55 
    66Scene { 
     7 
    78        filename ../data/vienna/vienna_cropped.obj 
    8 #       filename ../data/soda/soda5.obj 
    99#       filename ../data/soda/soda5.dat 
    1010} 
     
    1616        type vss 
    1717        detectEmptyViewSpace true 
    18         #loadMeshes true 
    1918        loadMeshes false 
    2019        # internal raycaster 
    21 #       rayCastMethod 0 
     20        rayCastMethod 0 
    2221        # intel raycaster 
    23         rayCastMethod 1 
     22        #rayCastMethod 1 
    2423        exportVisibility false 
    2524        loadKdTree false 
     
    8887                 
    8988                maxCostRatio 1.5 
    90                 #maxCostRatio 999999 
    9189                ct_div_ci 0.5 
    9290        } 
     
    9694        splitBorder 0.01 
    9795} 
    98  
    9996 
    10097MeshKdTree { 
     
    128125        loadFromFile false 
    129126 
     127        filename vienna_cropped-viewcells.xml.gz 
     128 
    130129        exportPvs false 
    131         filename vienna_cropped-visibility.xml.gz 
    132130 
    133131        # type of view cells 
    134         type vspBspTree 
     132        type vspOspTree 
    135133         
    136134        #percentage of total visible objects where pvs is considered invalid 
     
    157155        Visualization { 
    158156                # how much samples we use for visualization 
    159                 samples 20000 
     157                samples 200 
    160158                exportRays true 
    161                 exportGeometry false 
     159                exportGeometry true 
    162160                exportMergedViewCells false 
    163161                useClipPlane true 
     
    188186 
    189187 
    190 VspBspTree { 
     188################################ 
     189# 
     190# View space partitioning kd tree 
     191# 
     192 
     193VspTree { 
    191194        Construction { 
     195                renderCostDecreaseWeight 1.0 
     196        } 
     197 
     198        Termination { 
     199                minPvs 0 
     200                maxViewCells 5000 
     201        } 
     202 
     203        useCostHeuristics true 
     204        splitUseOnlyDrivingAxis false 
     205 
     206        # maximum number of tests per node 
     207        maxTests 50000 
     208} 
     209 
     210 
     211########################## 
     212# 
     213# The bounding volume hierarchy 
     214# 
     215 
     216BvHierarchy { 
     217 
     218        Construction {           
     219                renderCostDecreaseWeight 1.0 
     220        } 
     221 
     222        Termination { 
     223                maxLeaves 50000 
     224        } 
     225 
     226        minRaysForVisibility 15 
     227 
     228        # use only surface area heuristic        
     229        useCostHeuristics true 
     230        useSah false 
     231 
     232        splitUseOnlyDrivingAxis false 
     233 
     234        maxTests 50000 
     235} 
     236 
     237 
     238############################################################### 
     239# 
     240# Manages the construction of view space and object space partition 
     241# 
     242 
     243Hierarchy { 
     244        # the type of object space partition: view space is always vsp (=kd) partition 
     245        type bvh 
     246         
     247        Construction { 
     248 
    192249                samples 2000000 
    193                 epsilon 0.0000001 
    194                 randomize false 
    195                 renderCostWeight 1.0 
    196         } 
    197  
    198  
    199         # random polygon       = 1 
    200         # axis aligned         = 2 
    201         # least ray splits     = 256 
    202         # balanced rays        = 512 
    203         # pvs                  = 1024 
    204          
    205         splitPlaneStrategy 1026 
    206          
    207         # maximal candidates for split planes 
    208         maxPolyCandidates 0 
    209  
    210         usePolygonSplitIfAvailable false 
    211  
    212         # maximal tested rays for split cost heuristics 
    213         maxTests 100000 
    214          
    215         maxTotalMemory  50 
    216         maxStaticMemory 50 
    217  
    218         subdivisionStats ../subdivisionStats.log 
    219  
    220         # factors for evaluating split plane costs 
    221         Factor { 
    222                 leastRaySplits 1.0 
    223                 balancedRays 1.0 
    224                 pvs 1.0 
    225         } 
    226          
    227         Termination { 
    228                 # parameters used for autopartition 
    229                 minRays                 -1 
    230                 minPolygons             -1 
    231                 maxDepth                25 
    232                 minPvs                  0 
    233                 minProbability          0.000001 
    234                 maxRayContribution      1 
    235                 maxCostRatio            0.9 
    236                 missTolerance           6 
    237                 globalCostMissTolerance 4 
    238                 minGlobalCostRatio      0.0001 
    239  
    240                 maxViewCells            3000 
    241          
    242                 # used for pvs criterium 
    243                 ct_div_ci 0.0 
    244                  
    245                 AxisAligned { 
    246                         minRays                 50000 
    247                         maxRayContribution      9.9 
    248                 } 
    249         } 
    250          
    251         useSplitCostQueue true 
    252  
    253         splitUseOnlyDrivingAxis false 
    254         simulateOctree false 
    255         useRandomAxis false 
    256         usePolygonSplitIfAvailable false 
    257         nodePriorityQueueType 0 
    258  
    259         useCostHeuristics true 
    260  
    261         Visualization { 
    262                 # x3d visualization of the split planes 
    263                 exportSplits false 
    264         } 
    265 } 
     250 
     251                # type 0 = sequential computation, 1 = interleaved, 2 = gradient 
     252                type 0 
     253 
     254                ############################### 
     255                # only for interleaved method 
     256 
     257                # minimal steps of same type for gradient method 
     258                minStepsOfSameType 100 
     259                # maximum steps of same type for gradient method 
     260                maxStepsOfSameType 900 
     261 
     262                # maximum number of repair steps per gradient step 
     263                maxRepairs 1000 
     264        } 
     265 
     266        Termination { 
     267                # maximal number of leaves 
     268                maxLeaves 3000000 
     269                # maximal memory in MB 
     270                maxMemory 100 
     271                # minimum ratio of global cost decrease 
     272                minGlobalCostRatio -1 
     273        } 
     274} 
  • GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.sh

    r2066 r2072  
    1010 
    1111SCENE=vienna_cropped 
    12 #SCENE=soda5 
    13  
    1412LOG_PREFIX=../scripts/$SCENE 
    1513ENVIRONMENT=generate_viewcells.env 
     
    1715echo "starting $TARGET mode for $SCENE scene" 
    1816 
    19 #!/bin/sh 
     17############################################################################ 
    2018 
    21 PROGRAM=../bin/release/Preprocessor.exe 
    22 SCENE=generate_viewcells 
     19#  METHOD=interleaved 
     20#  echo "$SCENE $METHOD" 
    2321 
    24 LOG_PREFIX=../scripts/vienna 
     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 
    2530 
    26 ENVIRONMENT=$SCENE.env 
     31############################################################################ 
    2732 
     33  echo "$SCENE $METHOD" 
    2834 
    29 ############################################### 
     35  $PROGRAM $ENVIRONMENT \ 
     36  -view_cells_filename=$LOG_PREFIX-viewcells.xml.gz \ 
     37   -view_cells_merge_stats=$LOG_PREFIX-mergeStats.log \ 
     38   -vsp_subdivision_stats=$LOG_PREFIX-vsp-subdivisionStats.log \ 
     39   -bvh_subdivision_stats=$LOG_PREFIX-bvh-subdivisionStats.log \ 
     40   -hierarchy_subdivision_stats=$LOG_PREFIX-hierarchy-subdivisionStats.log \ 
     41   -hierarchy_construction_type=0 \ 
     42   -hierarchy_construction_consider_memory=true 
    3043 
    31 METHOD=avs 
    32 echo "$SCENE $METHOD" 
    33  
    34 $PROGRAM $ENVIRONMENT \ 
    35 -view_cells_filename=$LOG_PREFIX-visibility.xml.zip 
    36  
    37 mv debug.log $LOG_PREFIX-$METHOD-debug.log 
    38  
     44#   -bvh_term_max_leaves=10000 \ 
     45#   -hierarchy_term_max_leaves=20000  
Note: See TracChangeset for help on using the changeset viewer.