Ignore:
Timestamp:
01/21/06 18:32:30 (18 years ago)
Author:
bittner
Message:

rss sampling changes, preprocessor::GenerateRays?

File:
1 edited

Legend:

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

    r556 r563  
    20972097   
    20982098  float extendedConvexCombinationProb = 0.0f; //0.7f 
    2099   float silhouetteCheckPercentage = 0.5f; //0.5f 
     2099  float silhouetteCheckPercentage = 0.0f; //0.5f 
    21002100  for (int i=0; generated < numberOfRays && i < numberOfTries; i++) { 
    21012101        bool useExtendedConvexCombination = ((nrays >= 2) && (Random(1.0f) < 
     
    22042204  //  cout<<"desired="<<numberOfRays<<" tries="<<i<<endl; 
    22052205  // assign pdfs to the generated rays 
    2206   float p = (box.GetVolume()*dirBox.GetVolume())/i; 
     2206  float p = 1.0f; //(box.GetVolume()*dirBox.GetVolume())/i; 
     2207  rays.mSumPdf = 0.0f; 
    22072208  for (i=startIndex; i < rays.size(); i++) { 
    22082209        rays[i].mPdf = p; 
Note: See TracChangeset for help on using the changeset viewer.