Ignore:
Timestamp:
02/02/06 10:03:10 (18 years ago)
Author:
mattausch
Message:

added function for pvs compression

File:
1 edited

Legend:

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

    r580 r581  
    5353 
    5454        environment->GetIntValue("ViewCells.Construction.samplesPerPass", mSamplesPerPass); 
    55  
    5655        environment->GetBoolValue("ViewCells.exportToFile", mExportViewCells); 
    57  
    5856        environment->GetBoolValue("ViewCells.PostProcess.useRaysForMerge", mUseRaysForMerge); 
     57         
     58        environment->GetIntValue("ViewCells.active", mNumActiveViewCells); 
    5959 
    6060        mMinPvsSize = emptyViewCells ? 1 : 0; 
     
    234234 
    235235  return true; 
     236} 
     237 
     238 
     239bool ViewCellsManager::ViewCellsTreeConstructed() const 
     240{ 
     241        return mViewCellsTree->GetRoot(); 
    236242} 
    237243 
     
    684690} 
    685691 
     692 
    686693int ViewCellsManager::GetMinPvsSize() const 
    687694{ 
     
    20662073void VspBspViewCellsManager::CollectViewCells() 
    20672074{ 
    2068         mVspBspTree->CollectViewCells(mViewCells, true); 
     2075        // view cells tree constructed 
     2076        if (!ViewCellsTreeConstructed()) 
     2077        { 
     2078                mVspBspTree->CollectViewCells(mViewCells, true); 
     2079        } 
     2080        else  
     2081        { 
     2082                // we can use the view cells tree hierarchy to get the right set 
     2083                mViewCellsTree->CollectBestViewCellSet(mViewCells, mNumActiveViewCells); 
     2084        } 
     2085 
    20692086} 
    20702087 
Note: See TracChangeset for help on using the changeset viewer.