Changeset 2535
- Timestamp:
- 07/06/07 05:39:01 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/scripts
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.env
r2073 r2535 1 ############################################################################## 1 ############################################################################### 2 2 # ERS default configuration file 3 3 # Jiri Bittner 2003 … … 7 7 8 8 filename ../data/vienna/vienna_cropped.obj 9 # filename ../data/soda/soda.dat 9 10 # filename ../data/soda/soda5.dat 11 # filename ../data/artificial/cube_test.x3d 12 # filename ../data/CityModel.obj 13 # filename ../data/arena/arena-low-lods.obj 10 14 } 11 15 12 16 13 17 Preprocessor { 14 samplesPerPass 3000000 15 useGlRenderer false 18 samplesPerPass 500000 16 19 type vss 17 20 detectEmptyViewSpace true 18 21 loadMeshes false 22 19 23 # internal raycaster 20 rayCastMethod 0 24 rayCastMethod 0 21 25 # intel raycaster 22 26 #rayCastMethod 1 27 23 28 exportVisibility false 24 loadKdTree false25 exportKdTree false26 # exportObj true27 29 applyVisibilityFilter false 28 30 applyVisibilitySpatialFilter false … … 30 32 31 33 32 VssPreprocessor { 34 RssPreprocessor { 35 distributions mutation+spatial+object_direction 36 #distributions spatial 37 38 33 39 useImportanceSampling true 34 loadInitialSamples false 40 41 Export { 42 pvs false 43 rssTree false 44 } 45 46 useViewcells true 47 updateSubdivision true 48 loadInitialSamples false 35 49 storeInitialSamples false 36 } 50 51 useRssTree true 52 } 53 37 54 38 55 39 56 VssTree { 40 useRss false57 useRss false 41 58 epsilon 1e-6 42 59 … … 111 128 ViewCells { 112 129 113 # samples used for view cell construction 114 # (after the sampling used for the hierarchy) 130 # samples used for view cell construction in the merge step 115 131 Construction { 116 132 samples 0 … … 119 135 120 136 # number of active view cells 121 active 50000137 active 25000 122 138 maxStaticMemory 40 123 139 … … 125 141 loadFromFile false 126 142 127 filename vienna_cropped-viewcells.xml.gz 128 129 exportPvs false 143 #exportPvs true 130 144 131 145 # type of view cells … … 137 151 processOnlyValidViewCells false 138 152 139 #samplingType object_directional140 #samplingType directional141 153 samplingType box 142 #samplingType reverse_object143 #samplingType object144 154 145 155 PostProcess { … … 149 159 useRaysForMerge false 150 160 refine false 151 compress false161 compress true 152 162 merge false 153 163 } … … 155 165 Visualization { 156 166 # how much samples we use for visualization 157 samples 200167 samples 0 158 168 exportRays true 159 169 exportGeometry true … … 162 172 clipPlaneAxis 1 163 173 clipPlanePos 0.3 164 maxOutput 2165 } 166 167 #showVisualization true168 showVisualization false174 maxOutput 0 175 } 176 177 showVisualization true 178 #showVisualization false 169 179 evaluateViewCells false 180 170 181 171 182 Evaluation { 172 183 samples 80000000 173 samplesForStats 80000000 174 samplesPerPass 2000000 175 176 stepSize 500 177 178 #samplingType object_directional 179 #samplingType reverse_object 180 #samplingType object 184 samplesForStats 40000000 185 186 samplesPerPass 500000 187 stepSize 200 188 181 189 samplingType box 190 191 histogram true 192 histoStepSize 200 193 histoMem 60 182 194 183 195 statsPrefix ../scripts/viewCells … … 193 205 VspTree { 194 206 Construction { 195 renderCostDecreaseWeight 1.0207 renderCostDecreaseWeight 0.999 196 208 } 197 209 198 210 Termination { 199 211 minPvs 0 200 maxViewCells 5000 201 } 202 203 useCostHeuristics true212 maxViewCells 500000 213 } 214 215 useCostHeuristics false 204 216 splitUseOnlyDrivingAxis false 205 217 206 218 # maximum number of tests per node 207 maxTests 50000 208 } 209 210 211 ########################## 219 maxTests 500000 220 } 221 222 223 212 224 # 213 225 # The bounding volume hierarchy … … 217 229 218 230 Construction { 219 renderCostDecreaseWeight 1.0220 } 221 222 Termination { 223 maxLeaves 50000224 } 225 226 minRaysForVisibility 15227 228 # use only surface area heuristic 229 useCostHeuristics true231 renderCostDecreaseWeight 0.999 232 } 233 234 Termination { 235 maxLeaves 3000 236 } 237 238 minRaysForVisibility 3 239 #minRaysForVisibility 15 240 241 useCostHeuristics false 230 242 useSah false 231 243 232 244 splitUseOnlyDrivingAxis false 233 245 234 maxTests 50000 246 maxTests 500000 235 247 } 236 248 … … 247 259 Construction { 248 260 249 samples 1 500000261 samples 1000000 250 262 251 263 # type 0 = sequential computation, 1 = interleaved, 2 = gradient 252 type 0264 type 2 253 265 254 266 ############################### 255 267 # only for interleaved method 256 268 257 # minimal steps of same type for gradient method 269 # if dirty split candidates are reevaluated 270 repairQueue true 271 272 ################################################### 273 274 # minimal steps of same type: for interleaved, this is only valid for the first few splits 258 275 minStepsOfSameType 100 259 # maximum steps of same type for gradient method260 276 maxStepsOfSameType 900 261 277 262 # maximum number of repair steps per gradient step 263 maxRepairs 1000 278 maxRepairs 2000 264 279 } 265 280 266 281 Termination { 267 282 # maximal number of leaves 268 maxLeaves 3000000283 maxLeaves 60000 269 284 # maximal memory in MB 270 maxMemory 100 285 # maxMemory 4 286 maxMemory 35 271 287 # minimum ratio of global cost decrease 272 288 minGlobalCostRatio -1 -
GTP/trunk/Lib/Vis/Preprocessing/scripts/generate_viewcells.sh
r2530 r2535 8 8 9 9 PROGRAM=../bin/$TARGET/Preprocessor.exe 10 #PROGRAM=../bin/$TARGET/Preprocessor_itl.exe 11 12 EXT=obj 10 13 11 14 SCENE=vienna_cropped 15 SCENE_PATH=../data/vienna 16 17 ENVIRONMENT=generate_viewcells.env 12 18 LOG_PREFIX=../scripts/$SCENE 13 ENVIRONMENT=generate_viewcells.env14 19 15 echo "starting $TARGET mode for $SCENE scene "20 echo "starting $TARGET mode for $SCENE scene ($PROGRAM)" 16 21 17 ############################################################################ 22 SCENE_FILENAME=$SCENE_PATH/$SCENE.$EXT 18 23 19 # METHOD=interleaved 20 # echo "$SCENE $METHOD" 24 OBJ_WEIGHT=20 21 25 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 26 ####################################################### 30 27 31 ############################################################################ 28 METHOD=seq 32 29 33 echo "$SCENE $METHOD" 30 # the # of bvh nodes 31 NODES=3000 34 32 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=false 33 34 echo "$SCENE $METHOD" 35 $PROGRAM $ENVIRONMENT \ 36 -scene_filename=$SCENE_FILENAME \ 37 -view_cells_evaluation_stats_prefix=$LOG_PREFIX-$METHOD \ 38 -view_cells_merge_stats=$LOG_PREFIX-$METHOD-mergeStats.log \ 39 -view_cells_filename=$LOG_PREFIX-$METHOD-viewcells.xml.gz \ 40 -vsp_subdivision_stats=$LOG_PREFIX-$METHOD-vsp-subdivisionStats.log \ 41 -bvh_subdivision_stats=$LOG_PREFIX-$METHOD-bvh-subdivisionStats.log \ 42 -hierarchy_subdivision_stats=$LOG_PREFIX-$METHOD-hierarchy-subdivisionStats.log \ 43 -hierarchy_construction_type=0 \ 44 -vsp_use_cost_heuristics=false \ 45 -bvh_term_max_leaves=$NODES 43 46 44 # -bvh_term_max_leaves=10000 \ 45 # -hierarchy_term_max_leaves=20000 47 sh movefiles.sh $LOG_PREFIX-$METHOD -
GTP/trunk/Lib/Vis/Preprocessing/scripts/gi_final.env
r2394 r2535 177 177 showVisualization true 178 178 #showVisualization false 179 #evaluateViewCells false180 evaluateViewCells true179 evaluateViewCells false 180 181 181 182 182 Evaluation { -
GTP/trunk/Lib/Vis/Preprocessing/scripts/gi_final.sh
r2381 r2535 12 12 EXT=obj 13 13 14 #SCENE=vienna_cropped15 #SCENE_PATH=../data/vienna16 17 14 SCENE=arena-high-lods 18 15 SCENE_PATH=../data/Arena 19 16 20 #SCENE=PompeiiOne 21 #SCENE_PATH=../data/pompeii 22 23 #SCENE=soda 24 #SCENE_PATH=../data/soda 25 26 ENVIRONMENT=gi_final.env 27 LOG_PREFIX=../scripts/tests/gi/$SCENE 17 ENVIRONMENT=generate_viewcells.env 18 LOG_PREFIX=../scripts/$SCENE 28 19 29 20 echo "starting $TARGET mode for $SCENE scene ($PROGRAM)"
Note: See TracChangeset
for help on using the changeset viewer.