[2535] | 1 | ############################################################################### |
---|
[942] | 2 | # ERS default configuration file |
---|
| 3 | # Jiri Bittner 2003 |
---|
| 4 | ############################################################################# |
---|
| 5 | |
---|
| 6 | Scene { |
---|
[2072] | 7 | |
---|
[2066] | 8 | filename ../data/vienna/vienna_cropped.obj |
---|
[942] | 9 | } |
---|
| 10 | |
---|
[1744] | 11 | |
---|
[942] | 12 | Preprocessor { |
---|
[2535] | 13 | samplesPerPass 500000 |
---|
[942] | 14 | type vss |
---|
| 15 | detectEmptyViewSpace true |
---|
[1744] | 16 | loadMeshes false |
---|
[2535] | 17 | |
---|
[2539] | 18 | # internal raycaster: 0, intel: 1 |
---|
[2535] | 19 | rayCastMethod 0 |
---|
| 20 | |
---|
[1744] | 21 | exportVisibility false |
---|
[1746] | 22 | applyVisibilityFilter false |
---|
| 23 | applyVisibilitySpatialFilter false |
---|
[942] | 24 | } |
---|
| 25 | |
---|
[1744] | 26 | |
---|
[942] | 27 | VssTree { |
---|
[1744] | 28 | maxDepth 2 |
---|
[2539] | 29 | |
---|
[942] | 30 | maxTotalMemory 50 |
---|
| 31 | maxStaticMemory 20 |
---|
| 32 | |
---|
| 33 | splitType regular |
---|
| 34 | splitUseOnlyDrivingAxis true |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | Limits { |
---|
| 39 | threshold 1e-6 |
---|
| 40 | small 1e-6 |
---|
| 41 | infinity 1e9 |
---|
| 42 | } |
---|
| 43 | |
---|
[1744] | 44 | |
---|
[942] | 45 | KdTree { |
---|
| 46 | sahUseFaces true |
---|
[1744] | 47 | |
---|
[942] | 48 | Termination { |
---|
[1744] | 49 | minCost 0 |
---|
| 50 | maxDepth 20 |
---|
| 51 | |
---|
[2066] | 52 | maxCostRatio 1.5 |
---|
[942] | 53 | ct_div_ci 0.5 |
---|
| 54 | } |
---|
| 55 | |
---|
| 56 | splitMethod SAH |
---|
| 57 | splitBorder 0.01 |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | MeshKdTree { |
---|
| 61 | Termination { |
---|
| 62 | minCost 1 |
---|
| 63 | maxDepth 18 |
---|
| 64 | maxCostRatio 0.9 |
---|
| 65 | ct_div_ci 0.5 |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | splitMethod SAH |
---|
| 69 | splitBorder 0.01 |
---|
| 70 | } |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | ViewCells { |
---|
[1744] | 74 | |
---|
[2535] | 75 | # samples used for view cell construction in the merge step |
---|
[942] | 76 | Construction { |
---|
| 77 | samples 0 |
---|
[1744] | 78 | samplesPerPass 1000000 |
---|
[942] | 79 | } |
---|
| 80 | |
---|
[1744] | 81 | # number of active view cells |
---|
[2535] | 82 | active 25000 |
---|
[942] | 83 | maxStaticMemory 40 |
---|
| 84 | |
---|
| 85 | exportToFile true |
---|
| 86 | loadFromFile false |
---|
| 87 | |
---|
[2535] | 88 | #exportPvs true |
---|
[2072] | 89 | |
---|
[1744] | 90 | # type of view cells |
---|
[2072] | 91 | type vspOspTree |
---|
[1744] | 92 | |
---|
[2539] | 93 | #this ratio of the biggest pvs gives the threshold when a pvs is considered invalid |
---|
[942] | 94 | maxPvsRatio 1.0 |
---|
| 95 | |
---|
| 96 | processOnlyValidViewCells false |
---|
| 97 | |
---|
| 98 | samplingType box |
---|
| 99 | |
---|
| 100 | PostProcess { |
---|
| 101 | # how much samples are used for post processing |
---|
| 102 | samples 0 |
---|
| 103 | maxMergesPerPass 5000 |
---|
| 104 | useRaysForMerge false |
---|
[1744] | 105 | refine false |
---|
[2535] | 106 | compress true |
---|
[1744] | 107 | merge false |
---|
[942] | 108 | } |
---|
| 109 | |
---|
| 110 | Visualization { |
---|
| 111 | # how much samples we use for visualization |
---|
[2535] | 112 | samples 0 |
---|
[1744] | 113 | exportRays true |
---|
[2072] | 114 | exportGeometry true |
---|
[942] | 115 | exportMergedViewCells false |
---|
| 116 | useClipPlane true |
---|
| 117 | clipPlaneAxis 1 |
---|
[1744] | 118 | clipPlanePos 0.3 |
---|
[2535] | 119 | maxOutput 0 |
---|
[942] | 120 | } |
---|
| 121 | |
---|
[2539] | 122 | #showVisualization true |
---|
| 123 | showVisualization false |
---|
[942] | 124 | evaluateViewCells false |
---|
| 125 | |
---|
[2539] | 126 | |
---|
[942] | 127 | Evaluation { |
---|
[1744] | 128 | samples 80000000 |
---|
[2535] | 129 | samplesForStats 40000000 |
---|
[942] | 130 | |
---|
[2535] | 131 | samplesPerPass 500000 |
---|
| 132 | stepSize 200 |
---|
[942] | 133 | |
---|
[1744] | 134 | samplingType box |
---|
[942] | 135 | |
---|
[2535] | 136 | histogram true |
---|
| 137 | histoStepSize 200 |
---|
| 138 | histoMem 60 |
---|
| 139 | |
---|
[1744] | 140 | statsPrefix ../scripts/viewCells |
---|
| 141 | } |
---|
[942] | 142 | } |
---|
| 143 | |
---|
| 144 | |
---|
[2072] | 145 | ################################ |
---|
| 146 | # |
---|
| 147 | # View space partitioning kd tree |
---|
| 148 | # |
---|
| 149 | |
---|
| 150 | VspTree { |
---|
[942] | 151 | Construction { |
---|
[2535] | 152 | renderCostDecreaseWeight 0.999 |
---|
[942] | 153 | } |
---|
| 154 | |
---|
[2072] | 155 | Termination { |
---|
| 156 | minPvs 0 |
---|
[2539] | 157 | maxViewCells 4000 |
---|
[2072] | 158 | } |
---|
[942] | 159 | |
---|
[2539] | 160 | # heuristics for computing local split planes |
---|
[2535] | 161 | useCostHeuristics false |
---|
[942] | 162 | |
---|
[2072] | 163 | # maximum number of tests per node |
---|
[2535] | 164 | maxTests 500000 |
---|
[2072] | 165 | } |
---|
[942] | 166 | |
---|
| 167 | |
---|
[2535] | 168 | |
---|
[2072] | 169 | # |
---|
| 170 | # The bounding volume hierarchy |
---|
| 171 | # |
---|
[942] | 172 | |
---|
[2072] | 173 | BvHierarchy { |
---|
| 174 | |
---|
| 175 | Construction { |
---|
[2535] | 176 | renderCostDecreaseWeight 0.999 |
---|
[2539] | 177 | #renderCostDecreaseWeight 1.0 |
---|
[942] | 178 | } |
---|
[2072] | 179 | |
---|
[1744] | 180 | Termination { |
---|
[2539] | 181 | maxLeaves 4000 |
---|
[2064] | 182 | } |
---|
[1744] | 183 | |
---|
[2535] | 184 | minRaysForVisibility 3 |
---|
[942] | 185 | |
---|
[2539] | 186 | # heuristics for computing local split planes |
---|
| 187 | useCostHeuristics true |
---|
| 188 | # surface area or visibility based heuristics |
---|
[2072] | 189 | useSah false |
---|
[942] | 190 | |
---|
[2072] | 191 | splitUseOnlyDrivingAxis false |
---|
| 192 | |
---|
[2535] | 193 | maxTests 500000 |
---|
[2072] | 194 | } |
---|
| 195 | |
---|
| 196 | |
---|
| 197 | ############################################################### |
---|
| 198 | # |
---|
| 199 | # Manages the construction of view space and object space partition |
---|
| 200 | # |
---|
| 201 | |
---|
| 202 | Hierarchy { |
---|
| 203 | # the type of object space partition: view space is always vsp (=kd) partition |
---|
| 204 | type bvh |
---|
| 205 | |
---|
| 206 | Construction { |
---|
| 207 | |
---|
[2535] | 208 | samples 1000000 |
---|
[2072] | 209 | |
---|
| 210 | # type 0 = sequential computation, 1 = interleaved, 2 = gradient |
---|
[2535] | 211 | type 2 |
---|
[2072] | 212 | |
---|
| 213 | ############################### |
---|
| 214 | # only for interleaved method |
---|
| 215 | |
---|
[2535] | 216 | # if dirty split candidates are reevaluated |
---|
| 217 | repairQueue true |
---|
| 218 | |
---|
| 219 | ################################################### |
---|
| 220 | |
---|
[2542] | 221 | # minimal steps of same domain (view /object): for interleaved mode |
---|
[2072] | 222 | minStepsOfSameType 100 |
---|
| 223 | maxStepsOfSameType 900 |
---|
| 224 | |
---|
[2535] | 225 | maxRepairs 2000 |
---|
[942] | 226 | } |
---|
[2072] | 227 | |
---|
| 228 | Termination { |
---|
| 229 | # maximal number of leaves |
---|
[2539] | 230 | maxLeaves 300000 |
---|
[2072] | 231 | # maximal memory in MB |
---|
[2539] | 232 | # maxMemory 4 |
---|
| 233 | maxMemory 200 |
---|
[2072] | 234 | # minimum ratio of global cost decrease |
---|
| 235 | minGlobalCostRatio -1 |
---|
| 236 | } |
---|
[2535] | 237 | } |
---|