Ignore:
Timestamp:
11/23/06 21:38:45 (18 years ago)
Author:
bittner
Message:

merge, filter update, renderebuffer made functional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/RssTree.cpp

    r1757 r1785  
    21792179  int startIndex = (int)rays.size(); 
    21802180 
    2181   Debug<<"B"<<flush; 
     2181  //  Debug<<"B"<<flush; 
    21822182 
    21832183  AxisAlignedBox3 box = GetBBox(leaf); 
     
    21922192  } 
    21932193 
    2194   Debug<<"R"<<flush; 
     2194  //  Debug<<"R"<<flush; 
    21952195   
    21962196  for (int i=0; i < numberOfRays; i++) { 
     
    22292229        origin = box.GetPoint(pVector); 
    22302230        dirVector = dirBox.GetPoint(dVector); 
    2231  
     2231         
    22322232        direction = Vector3(sin(dirVector.x), sin(dirVector.y), cos(dirVector.x)); 
    2233  
    22342233         
    22352234         
     
    22532252#if 0 
    22542253        static int counter = 0; 
    2255         Debug<<counter++<<flush; 
     2254        //      Debug<<counter++<<flush; 
    22562255 
    22572256        if (counter > 10374968) { 
     
    22682267  } 
    22692268 
    2270   Debug<<"D"<<flush; 
     2269  //  Debug<<"D"<<flush; 
    22712270   
    22722271  float density = 1.0f; 
     
    26922691   
    26932692  // always generate at leat n ray per leaf 
    2694   int fixedPerLeaf = 0; 
     2693  int fixedPerLeaf = 1; 
    26952694  // int fixedPerLeaf = 0; 
    26962695  int fixed = fixedPerLeaf*(int)leaves.size(); 
    2697   int iGenerated = numberOfRays; 
     2696 
     2697  // check if the number of fixed is not too big 
     2698 
     2699  if (fixed >= numberOfRays/2) { 
     2700        fixedPerLeaf = 0; 
     2701        fixed = 0; 
     2702  } 
     2703   
     2704  int iGenerated = numberOfRays - fixed; 
    26982705  float ratioPerLeaf = iGenerated /(avgContrib*numberOfLeaves); 
    2699  
     2706   
    27002707  k = 0; 
    27012708 
     
    27492756} 
    27502757 
    2751 float weightAbsContributions = 0.0f; 
     2758float weightAbsContributions = ABS_CONTRIBUTION_WEIGHT; 
    27522759// if small very high importance of the last sample 
    27532760// if 1.0f then weighs = 1 1/2 1/3 1/4 
    27542761float passSampleWeightDecay = 1.0f; 
    27552762//float passSampleWeightDecay = 0.0001f; 
    2756  
    27572763 
    27582764float 
Note: See TracChangeset for help on using the changeset viewer.