Ignore:
Timestamp:
12/05/05 20:33:53 (19 years ago)
Author:
mattausch
Message:

started to add view cell merging to vsp kd tree

File:
1 edited

Legend:

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

    r451 r452  
    1010#include "VssTree.h" 
    1111#include "ViewCellsManager.h" 
     12#include "RenderSimulator.h" 
    1213 
    1314bool useViewSpaceBox = true;//true; 
     
    440441  cout << "#totalRayStackSize=" << mVssRays.size() << endl <<flush; 
    441442         
    442   int numExportRays = 10000; 
    443   // int numExportRays = 0; 
     443  //int numExportRays = 10000; 
     444  int numExportRays = 0; 
    444445 
    445446  if (numExportRays) { 
     
    564565        cout<<"*****************************\n"; 
    565566        cout<<samples<<" avgPVS ="<<pvs<<endl; 
     567        cout<<"sample contributions ="<<sampleContributions<<endl; 
     568        cout<<"contributing sample ="<<contributingSamples<<endl; 
    566569        cout<<"VssTree root PVS size = "<<vssTree->GetRootPvsSize()<<endl; 
    567570        cout<<"*****************************\n"; 
     
    573576  //-- post process view cells 
    574577  mViewCellsManager->PostProcess(objects, storedRays); 
     578 
     579  //-- several visualizations and statistics 
     580  Debug << "===== Final view cells statistics ==========" << endl; 
     581 
     582  mViewCellsManager->PrintStatistics(Debug); 
     583 
     584  //-- render simulation after merge 
     585  cout << "\nevaluating bsp view cells render time after merge ... "; 
     586                  
     587  const SimulationStatistics ss = mViewCellsManager->SimulateRendering(); 
     588                  
     589  cout << " finished" << endl; 
     590  cout << ss << endl; 
     591  Debug << ss << endl; 
     592 
    575593  mViewCellsManager->Visualize(objects, storedRays); 
    576594 
    577595  CLEAR_CONTAINER(storedRays); 
    578  
     596   
    579597  delete vssTree; 
    580598 
Note: See TracChangeset for help on using the changeset viewer.