Changeset 597


Ignore:
Timestamp:
02/05/06 04:15:02 (18 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor
Files:
2 edited

Legend:

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

    r596 r597  
    196196        height 5.0 
    197197        maxViewCells 3000 
     198 
    198199        #percentage of total visible objects where pvs is considered invalid 
    199200        maxPvsRatio 1.0 
     
    300301        # pvs                  = 1024 
    301302         
    302         splitPlaneStrategy 1026 
     303        splitPlaneStrategy 1024 
    303304         
    304305        # maximal candidates for split planes 
    305         maxPolyCandidates 100 
     306        maxPolyCandidates 0 
    306307 
    307308         
     
    332333                #maxAccRayLength        100 
    333334                 
    334                 maxViewCells            5000 
     335                maxViewCells            512 
    335336                 
    336337                # used for pvs criterium 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp

    r596 r597  
    24642464        //-- merge or subdivide view cells 
    24652465        int merged = 0; 
    2466  
    2467         cout << "starting merge using " << mPostProcessSamples << " samples ... " << endl; 
    2468         long startTime = GetTime(); 
     2466        if (mMergeViewCells) 
     2467        { 
     2468                cout << "starting merge using " << mPostProcessSamples << " samples ... " << endl; 
     2469                long startTime = GetTime(); 
    24692470 
    24702471         
    2471         // TODO: should be done BEFORE the ray casting 
    2472         merged = mViewCellsTree->ConstructMergeTree(rays, objects); 
    2473  
    2474         //-- stats and visualizations 
    2475         cout << "finished merging" << endl; 
    2476         cout << "merged " << merged << " view cells in " 
    2477                 << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl; 
    2478  
    2479         Debug << "Postprocessing: Merged " << merged << " view cells in " 
    2480                   << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl << endl; 
    2481  
     2472                // TODO: should be done BEFORE the ray casting 
     2473                merged = mViewCellsTree->ConstructMergeTree(rays, objects); 
     2474 
     2475                //-- stats and visualizations 
     2476                cout << "finished merging" << endl; 
     2477                cout << "merged " << merged << " view cells in " 
     2478                        << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl; 
     2479 
     2480                Debug << "Postprocessing: Merged " << merged << " view cells in " 
     2481                          << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl << endl; 
     2482        } 
    24822483 
    24832484        //BspLeaf::NewMail(); 
    24842485        if (1) // export merged view cells 
    24852486        { 
    2486  
    24872487                cout << "reseting view cells ... "; 
    24882488                ResetViewCells(); 
     
    25922592        } 
    25932593 
    2594         if (mMergeViewCells) 
    2595         { 
    2596                 //-- merge the individual view cells 
    2597                 MergeViewCells(postProcessRays, objects); 
     2594        //-- merge the individual view cells 
     2595        MergeViewCells(postProcessRays, objects); 
    25982596         
    25992597 
    2600                 //-- refines the merged view cells 
    2601                 if (0) 
    2602                         RefineViewCells(postProcessRays, objects); 
    2603  
    2604                 if (mCompressViewCells) 
    2605                 { 
    2606                         int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
    2607                         Debug << "number of entries before compress: " << pvsEntries << endl; 
    2608  
    2609                         mViewCellsTree->CompressViewCellsPvs(); 
    2610  
    2611                         pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
    2612                         Debug << "number of entries after compress: " << pvsEntries << endl; 
    2613                 } 
     2598        //-- refines the merged view cells 
     2599        if (0) 
     2600                RefineViewCells(postProcessRays, objects); 
     2601 
     2602        if (mCompressViewCells) 
     2603        { 
     2604                int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
     2605                Debug << "number of entries before compress: " << pvsEntries << endl; 
     2606 
     2607                mViewCellsTree->CompressViewCellsPvs(); 
     2608 
     2609                pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 
     2610                Debug << "number of entries after compress: " << pvsEntries << endl; 
    26142611        } 
    26152612 
Note: See TracChangeset for help on using the changeset viewer.