[2596] | 1 | ############################################################################## |
---|
| 2 | # ERS default configuration file |
---|
| 3 | # Jiri Bittner 2003 |
---|
| 4 | ############################################################################# |
---|
| 5 | |
---|
| 6 | Scene { |
---|
| 7 | |
---|
| 8 | # filename glasgow1.x3d |
---|
| 9 | # filename vienna.x3d |
---|
| 10 | # filename ../data/vienna/vienna-simple.x3d |
---|
| 11 | # filename ../data/vienna/vienna-buildings.x3d |
---|
| 12 | # filename ../data/vienna/vienna-roofs.x3d |
---|
| 13 | # filename ../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d |
---|
| 14 | #;../data/vienna/vienna-plane.x3d |
---|
| 15 | # filename ../data/vienna/viewcells-25-sel.x3d |
---|
| 16 | # filename ../data/atlanta/atlanta2.x3d |
---|
| 17 | # filename ../data/soda/soda.dat |
---|
| 18 | # filename ../data/soda/soda5.dat |
---|
| 19 | # filename ../data/soda/soda5.obj |
---|
| 20 | # filename ../data/soda/soda.obj |
---|
| 21 | filename ../data/vienna/vienna_cropped.obj |
---|
| 22 | # filename ../data/soda/soda5_mod_spheres.obj |
---|
| 23 | # filename ../data/artificial/cube_test.x3d |
---|
| 24 | # filename ../data/grandcanyon1_RotXmin90.obj |
---|
| 25 | # filename ../data/CityModel.obj |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | Preprocessor { |
---|
| 30 | samplesFilename rays.out |
---|
| 31 | # useGlRenderer true |
---|
| 32 | useGlRenderer false |
---|
| 33 | type vss |
---|
| 34 | detectEmptyViewSpace true |
---|
| 35 | loadMeshes false |
---|
[2677] | 36 | |
---|
[2682] | 37 | # internal: 0 intel: 1 2: havran 3: havran dyn |
---|
| 38 | rayCastMethod 2 |
---|
[2677] | 39 | |
---|
[2596] | 40 | exportVisibility false |
---|
| 41 | applyVisibilityFilter false |
---|
| 42 | applyVisibilitySpatialFilter false |
---|
| 43 | # useViewSpaceBox true |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | VssPreprocessor { |
---|
| 48 | useImportanceSampling true |
---|
| 49 | loadInitialSamples false |
---|
| 50 | storeInitialSamples false |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | VssTree { |
---|
| 55 | useRss false |
---|
| 56 | epsilon 1e-6 |
---|
| 57 | |
---|
| 58 | maxDepth 2 |
---|
| 59 | minPvs 30 |
---|
| 60 | minRays 800 |
---|
| 61 | minSize 0.001 |
---|
| 62 | maxCostRatio 1.5 |
---|
| 63 | maxRayContribution 0.5 |
---|
| 64 | |
---|
| 65 | maxTotalMemory 50 |
---|
| 66 | maxStaticMemory 20 |
---|
| 67 | |
---|
| 68 | splitType regular |
---|
| 69 | # splitType heuristic |
---|
| 70 | # splitType hybrid |
---|
| 71 | splitUseOnlyDrivingAxis true |
---|
| 72 | |
---|
| 73 | interleaveDirSplits true |
---|
| 74 | dirSplitDepth 0 |
---|
| 75 | |
---|
| 76 | numberOfEndPointDomains 10000 |
---|
| 77 | ct_div_ci 0.0 |
---|
| 78 | randomize false |
---|
| 79 | |
---|
| 80 | refDirBoxMaxSize 0.1 |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | Limits { |
---|
| 85 | threshold 1e-6 |
---|
| 86 | small 1e-6 |
---|
| 87 | infinity 1e9 |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | Unigraphics { |
---|
| 92 | meshGrouping 1 |
---|
| 93 | } |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | KdTree { |
---|
[2643] | 97 | pvsArea 1e-5 |
---|
[2596] | 98 | sahUseFaces true |
---|
| 99 | |
---|
| 100 | Termination { |
---|
| 101 | minCost 0 |
---|
| 102 | maxDepth 20 |
---|
| 103 | |
---|
| 104 | maxCostRatio 1.5 |
---|
| 105 | ct_div_ci 0.5 |
---|
| 106 | } |
---|
| 107 | |
---|
| 108 | # splitMethod spatialMedian |
---|
| 109 | splitMethod SAH |
---|
| 110 | splitBorder 0.01 |
---|
| 111 | } |
---|
| 112 | |
---|
| 113 | MeshKdTree { |
---|
| 114 | Termination { |
---|
| 115 | minCost 1 |
---|
| 116 | maxDepth 18 |
---|
| 117 | maxCostRatio 0.9 |
---|
| 118 | ct_div_ci 0.5 |
---|
| 119 | } |
---|
| 120 | |
---|
| 121 | # splitMethod spatialMedian |
---|
| 122 | splitMethod SAH |
---|
| 123 | splitBorder 0.01 |
---|
| 124 | } |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | ViewCells { |
---|
| 128 | |
---|
[2625] | 129 | useKdPvs true |
---|
| 130 | |
---|
[2596] | 131 | # samples used for view cell construction |
---|
| 132 | # (after the sampling used for the hierarchy) |
---|
| 133 | Construction { |
---|
| 134 | samples 0 |
---|
| 135 | samplesPerPass 1000000 |
---|
| 136 | } |
---|
| 137 | |
---|
| 138 | # number of active view cells |
---|
| 139 | active 25000 |
---|
| 140 | maxStaticMemory 40 |
---|
| 141 | |
---|
| 142 | exportToFile true |
---|
| 143 | loadFromFile false |
---|
| 144 | |
---|
| 145 | exportPvs true |
---|
| 146 | type vspOspTree |
---|
| 147 | |
---|
| 148 | #percentage of total visible objects where pvs is considered invalid |
---|
| 149 | maxPvsRatio 1.0 |
---|
| 150 | |
---|
| 151 | processOnlyValidViewCells false |
---|
| 152 | |
---|
| 153 | #stats viewCellStats.log |
---|
| 154 | #samplingType directional |
---|
| 155 | #samplingType reverse_object |
---|
| 156 | samplingType box |
---|
| 157 | |
---|
| 158 | PostProcess { |
---|
| 159 | # how much samples are used for post processing |
---|
| 160 | samples 0 |
---|
| 161 | maxMergesPerPass 5000 |
---|
| 162 | useRaysForMerge false |
---|
| 163 | refine false |
---|
| 164 | compress true |
---|
| 165 | merge false |
---|
| 166 | } |
---|
| 167 | |
---|
| 168 | Visualization { |
---|
| 169 | # how much samples we use for visualization |
---|
| 170 | samples 1000 |
---|
| 171 | exportRays true |
---|
| 172 | exportGeometry true |
---|
| 173 | exportMergedViewCells false |
---|
| 174 | useClipPlane true |
---|
| 175 | clipPlaneAxis 1 |
---|
| 176 | clipPlanePos 0.3 |
---|
| 177 | maxOutput 2 |
---|
| 178 | } |
---|
| 179 | |
---|
| 180 | showVisualization true |
---|
| 181 | #evaluateiewCells true |
---|
| 182 | #showVisualization false |
---|
| 183 | evaluateViewCells true |
---|
| 184 | |
---|
| 185 | Evaluation { |
---|
| 186 | samples 300000 |
---|
| 187 | samplesForStats 300000 |
---|
| 188 | samplesPerPass 300000 |
---|
| 189 | |
---|
| 190 | stepSize 50 |
---|
| 191 | |
---|
| 192 | #samplingType reverse_object |
---|
| 193 | samplingType box |
---|
| 194 | statsPrefix ../scripts/viewCells |
---|
| 195 | } |
---|
| 196 | } |
---|
| 197 | |
---|
| 198 | |
---|
| 199 | ################################ |
---|
| 200 | # |
---|
| 201 | # View space partitioning kd tree |
---|
| 202 | # |
---|
| 203 | |
---|
| 204 | VspTree { |
---|
| 205 | Construction { |
---|
| 206 | } |
---|
| 207 | |
---|
| 208 | Termination { |
---|
| 209 | minPvs 0 |
---|
| 210 | maxViewCells 500000 |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | useCostHeuristics false |
---|
| 214 | splitUseOnlyDrivingAxis false |
---|
| 215 | |
---|
| 216 | # maximum number of tests per node |
---|
| 217 | maxTests 30000 |
---|
| 218 | } |
---|
| 219 | |
---|
| 220 | |
---|
| 221 | ########################## |
---|
| 222 | # |
---|
| 223 | # The bounding volume hierarchy |
---|
| 224 | # |
---|
| 225 | |
---|
| 226 | BvHierarchy { |
---|
| 227 | |
---|
| 228 | Construction { |
---|
| 229 | |
---|
| 230 | } |
---|
| 231 | |
---|
| 232 | Termination { |
---|
| 233 | maxLeaves 500000 |
---|
| 234 | } |
---|
| 235 | |
---|
| 236 | useCostHeuristics true |
---|
| 237 | useSah true |
---|
| 238 | splitUseOnlyDrivingAxis false |
---|
| 239 | minRaysForVisibility 3 |
---|
| 240 | |
---|
| 241 | maxTests 300 |
---|
| 242 | } |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | ############################################################### |
---|
| 246 | # |
---|
| 247 | # Manages the construction of view space and object space partition |
---|
| 248 | # |
---|
| 249 | |
---|
| 250 | Hierarchy { |
---|
| 251 | |
---|
| 252 | # the type of object space partition: view space is always vsp (=kd) partition |
---|
| 253 | type bvh |
---|
| 254 | |
---|
| 255 | Construction { |
---|
| 256 | |
---|
| 257 | samples 30000 |
---|
| 258 | |
---|
| 259 | # type 0 = sequential computation, 1 = interleaved, 2 = gradient |
---|
| 260 | type 0 |
---|
| 261 | |
---|
| 262 | # if the object space should be subdivided first (if false, the view space is subdivided first) |
---|
| 263 | startWithObjectSpace true |
---|
| 264 | |
---|
| 265 | ############################### |
---|
| 266 | # only for interleaved method |
---|
| 267 | |
---|
| 268 | # if dirty split candidates are reevaluated |
---|
| 269 | repairQueue true |
---|
| 270 | |
---|
| 271 | # recompute split plane when "repairing" a candidate |
---|
| 272 | recomputeSplitPlaneOnRepair true |
---|
| 273 | |
---|
| 274 | ################################################### |
---|
| 275 | |
---|
| 276 | # iterative construction of vs partititon and os partition |
---|
| 277 | useMultiLevel false |
---|
| 278 | |
---|
| 279 | # number of iteration steps |
---|
| 280 | levels 3 |
---|
| 281 | |
---|
| 282 | # minimal steps of same type: for interleaved, this is only valid for the first few splits |
---|
| 283 | minStepsOfSameType 10 |
---|
| 284 | maxStepsOfSameType 50 |
---|
| 285 | |
---|
| 286 | maxRepairs 10 |
---|
| 287 | } |
---|
| 288 | |
---|
| 289 | Termination { |
---|
| 290 | # maximal number of leaves |
---|
| 291 | maxLeaves 4000 |
---|
| 292 | # maximal memory in MB |
---|
| 293 | maxMemory 0.1 |
---|
| 294 | # minimum ratio of global cost decrease |
---|
| 295 | minGlobalCostRatio -1 |
---|
| 296 | } |
---|
| 297 | } |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | VspBspTree { |
---|
| 301 | Construction { |
---|
| 302 | samples 100000 |
---|
| 303 | } |
---|
| 304 | |
---|
| 305 | Termination { |
---|
| 306 | minPvs 0 |
---|
| 307 | maxViewCells 1000 |
---|
| 308 | } |
---|
| 309 | |
---|
| 310 | useCostHeuristics true |
---|
| 311 | splitUseOnlyDrivingAxis false |
---|
| 312 | |
---|
| 313 | # maximum number of tests per node |
---|
| 314 | maxTests 100000 |
---|
| 315 | } |
---|