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

changed shuffling (but does not work yet...)

File:
1 edited

Legend:

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

    r585 r586  
    5757         
    5858        environment->GetIntValue("ViewCells.active", mNumMergedViewCells); 
     59        environment->GetBoolValue("ViewCells.PostProcess.compress", mCompressViewCells); 
    5960 
    6061        mMinPvsSize = emptyViewCells ? 1 : 0; 
     
    23642365 
    23652366        //-- refines the merged view cells 
    2366         RefineViewCells(postProcessRays, objects); 
    2367  
    2368         int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
    2369         Debug << "number of entries before compress: " << pvsEntries << endl; 
    2370  
    2371         mViewCellsTree->CompressViewCellsPvs(); 
    2372  
    2373         pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
    2374         Debug << "number of entries after compress: " << pvsEntries << endl; 
     2367        if (0) 
     2368                RefineViewCells(postProcessRays, objects); 
     2369 
     2370        if (mCompressViewCells) 
     2371        { 
     2372                int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
     2373                Debug << "number of entries before compress: " << pvsEntries << endl; 
     2374 
     2375                mViewCellsTree->CompressViewCellsPvs(); 
     2376 
     2377                pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
     2378                Debug << "number of entries after compress: " << pvsEntries << endl; 
     2379        } 
    23752380 
    23762381        if (1) 
     
    23922397 
    23932398        //-- export shuffled view cells 
    2394         if (1) 
     2399        if (0) 
    23952400        { 
    23962401                cout << "exporting shuffled view cells ... "; 
     
    24562461 
    24572462        // collapse sibling leaves that share the same view cell 
    2458         mVspBspTree->CollapseTree(); 
     2463        if (0) 
     2464                mVspBspTree->CollapseTree(); 
     2465 
    24592466        // recompute view cell list and statistics 
    24602467        ResetViewCells(); 
     
    27322739 
    27332740 
    2734                 Debug << i << ": pvs size=" << (int)vc->GetPvs().GetSize() 
     2741                Debug << i << ": pvs size=" << (int)mViewCellsTree->GetPvsSize(vc) 
    27352742                          << ", piercing rays=" << (int)vcRays.size() << endl; 
    27362743                        //  << ", leaves=" << (int)vc->mLeaves.size() << endl; 
Note: See TracChangeset for help on using the changeset viewer.