Changeset 2072 for GTP/trunk/Lib/Vis/Preprocessing/scripts
- Timestamp:
- 02/01/07 17:38:55 (18 years ago)
- 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 5 5 6 6 Scene { 7 7 8 filename ../data/vienna/vienna_cropped.obj 8 # filename ../data/soda/soda5.obj9 9 # filename ../data/soda/soda5.dat 10 10 } … … 16 16 type vss 17 17 detectEmptyViewSpace true 18 #loadMeshes true19 18 loadMeshes false 20 19 # internal raycaster 21 #rayCastMethod 020 rayCastMethod 0 22 21 # intel raycaster 23 rayCastMethod 122 #rayCastMethod 1 24 23 exportVisibility false 25 24 loadKdTree false … … 88 87 89 88 maxCostRatio 1.5 90 #maxCostRatio 99999991 89 ct_div_ci 0.5 92 90 } … … 96 94 splitBorder 0.01 97 95 } 98 99 96 100 97 MeshKdTree { … … 128 125 loadFromFile false 129 126 127 filename vienna_cropped-viewcells.xml.gz 128 130 129 exportPvs false 131 filename vienna_cropped-visibility.xml.gz132 130 133 131 # type of view cells 134 type vsp BspTree132 type vspOspTree 135 133 136 134 #percentage of total visible objects where pvs is considered invalid … … 157 155 Visualization { 158 156 # how much samples we use for visualization 159 samples 200 00157 samples 200 160 158 exportRays true 161 exportGeometry false159 exportGeometry true 162 160 exportMergedViewCells false 163 161 useClipPlane true … … 188 186 189 187 190 VspBspTree { 188 ################################ 189 # 190 # View space partitioning kd tree 191 # 192 193 VspTree { 191 194 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 216 BvHierarchy { 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 243 Hierarchy { 244 # the type of object space partition: view space is always vsp (=kd) partition 245 type bvh 246 247 Construction { 248 192 249 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 10 10 11 11 SCENE=vienna_cropped 12 #SCENE=soda513 14 12 LOG_PREFIX=../scripts/$SCENE 15 13 ENVIRONMENT=generate_viewcells.env … … 17 15 echo "starting $TARGET mode for $SCENE scene" 18 16 19 # !/bin/sh17 ############################################################################ 20 18 21 PROGRAM=../bin/release/Preprocessor.exe 22 SCENE=generate_viewcells 19 # METHOD=interleaved 20 # echo "$SCENE $METHOD" 23 21 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 25 30 26 ENVIRONMENT=$SCENE.env 31 ############################################################################ 27 32 33 echo "$SCENE $METHOD" 28 34 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 30 43 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.