Changeset 320


Ignore:
Timestamp:
10/12/05 01:42:34 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env

    r319 r320  
    5656 
    5757Sampling { 
    58         totalSamples    200000 
     58        totalSamples    500000 
    5959        samplesPerPass  10 
    6060} 
     
    6767        #hierarchyType sceneDependent 
    6868#       filename ../data/atlanta/atlanta_viewcells_large.x3d 
    69 #       filename ../data/vienna/viewcells-25-sel.x3d 
    70         filename ../data/vienna/viewcells-25.x3d 
     69        filename ../data/vienna/viewcells-25-sel.x3d 
     70#       filename ../data/vienna/viewcells-25.x3d 
    7171#       filename ../data/vienna/viewcells-large-sel.x3d 
    7272} 
  • trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp

    r319 r320  
    236236  vector<Ray> vcRays[5]; 
    237237 
     238  vector<Ray> viewCellRays; // used for BSP tree construction 
    238239  const int fromRaysBspThresh = 1000; 
    239240 
     
    246247                // construct Bsp tree if not 
    247248                if ((mViewCellsType == Preprocessor::BSP_VIEW_CELLS) && 
    248                         !mBspTree->GetRoot() && (passSamples > fromRaysBspThresh)) 
     249                        !mBspTree->GetRoot() && (totalSamples >= fromRaysBspThresh)) 
    249250                { 
    250251                        BuildBspTree(); 
     
    337338                                         
    338339                                        // construct a ray 
    339  
    340340                                        SetupRay(ray, point, direction); 
    341341                                         
     
    344344                                        if (mViewCellsType == BSP_VIEW_CELLS)  
    345345                                        { 
     346                                                // save rays for bsp tree construction 
     347                                                if (!mBspTree->GetRoot() && (totalSamples < fromRaysBspThresh)) 
     348                                                { 
     349                                                        viewCellRays.push_back(ray); 
     350                                                } 
    346351                                                // check whether we can add this to the rays 
    347352                                                for (int k = 0; k < ray.viewCells.size(); ++ k) 
Note: See TracChangeset for help on using the changeset viewer.