Changeset 567 for trunk/VUT/GtpVisibilityPreprocessor/src/RssTree.cpp
- Timestamp:
- 01/23/06 10:10:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/RssTree.cpp
r563 r567 2097 2097 2098 2098 float extendedConvexCombinationProb = 0.0f; //0.7f 2099 float silhouetteCheckPercentage = 0.0f; //0.5f2099 float silhouetteCheckPercentage = 1.0f; //0.5f 2100 2100 for (int i=0; generated < numberOfRays && i < numberOfTries; i++) { 2101 2101 bool useExtendedConvexCombination = ((nrays >= 2) && (Random(1.0f) < … … 2178 2178 selectedRays.push_back(ray); 2179 2179 } 2180 2180 2181 2181 // check whether the ray does not intersect already visible objects 2182 2182 Ray traversalRay; … … 2186 2186 oi++) { 2187 2187 Intersectable *object = *oi; 2188 // do not test every object 2189 if (Random(1.0f) > 0.5f) 2190 break; 2188 2191 if ( object->CastRay(traversalRay) ) { 2189 2192 intersects = true; … … 2322 2325 ) 2323 2326 { 2324 bool globalPrunning = false;2327 bool globalPrunning = true; 2325 2328 2326 2329 stack<RssTreeNode *> tstack; … … 2369 2372 if (node->IsLeaf()) { 2370 2373 RssTreeLeaf *leaf = (RssTreeLeaf *)node; 2371 // 2374 // prunned += PruneRaysRandom(leaf, ratio); 2372 2375 prunned += PruneRaysContribution(leaf, ratio); 2373 2376 } else { … … 2474 2477 // if small very high importance of the last sample 2475 2478 // if 1.0f then weighs = 1 1/2 1/3 1/4 2476 float passSampleWeightDecay = 0.5f;2479 float passSampleWeightDecay = 1.0f; 2477 2480 2478 2481 void … … 2503 2506 break; 2504 2507 default: 2505 weight = 0.0 1f;2508 weight = 0.0f; 2506 2509 break; 2507 2510 // case 1:
Note: See TracChangeset
for help on using the changeset viewer.