Ignore:
Timestamp:
01/23/06 10:10:34 (18 years ago)
Author:
bittner
Message:

rss preprocessor simplification - mixed sampling strategies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/RssTree.cpp

    r563 r567  
    20972097   
    20982098  float extendedConvexCombinationProb = 0.0f; //0.7f 
    2099   float silhouetteCheckPercentage = 0.0f; //0.5f 
     2099  float silhouetteCheckPercentage = 1.0f; //0.5f 
    21002100  for (int i=0; generated < numberOfRays && i < numberOfTries; i++) { 
    21012101        bool useExtendedConvexCombination = ((nrays >= 2) && (Random(1.0f) < 
     
    21782178                selectedRays.push_back(ray); 
    21792179          } 
    2180  
     2180           
    21812181          // check whether the ray does not intersect already visible objects 
    21822182          Ray traversalRay; 
     
    21862186                  oi++) { 
    21872187                Intersectable *object = *oi; 
     2188                // do not test every object 
     2189                if (Random(1.0f) > 0.5f) 
     2190                  break; 
    21882191                if ( object->CastRay(traversalRay) ) { 
    21892192                  intersects = true; 
     
    23222325                                   ) 
    23232326{ 
    2324   bool globalPrunning = false; 
     2327  bool globalPrunning = true; 
    23252328 
    23262329  stack<RssTreeNode *> tstack; 
     
    23692372          if (node->IsLeaf()) { 
    23702373                RssTreeLeaf *leaf = (RssTreeLeaf *)node; 
    2371                 //              prunned += PruneRaysRandom(leaf, ratio); 
     2374                // prunned += PruneRaysRandom(leaf, ratio); 
    23722375                prunned += PruneRaysContribution(leaf, ratio); 
    23732376          } else { 
     
    24742477// if small very high importance of the last sample 
    24752478// if 1.0f then weighs = 1 1/2 1/3 1/4 
    2476 float passSampleWeightDecay = 0.5f; 
     2479float passSampleWeightDecay = 1.0f; 
    24772480 
    24782481void 
     
    25032506          break; 
    25042507        default: 
    2505           weight = 0.01f; 
     2508          weight = 0.0f; 
    25062509          break; 
    25072510          //    case 1: 
Note: See TracChangeset for help on using the changeset viewer.