Ignore:
Timestamp:
03/18/08 16:29:14 (17 years ago)
Author:
bittner
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2643 r2647  
    138138                                                                                                 mPvsStatFrames); 
    139139         
     140        Debug<<"Info: will evaluate pixel error with "<<mPvsStatFrames<<" samples"<<endl; 
    140141         
    141142        mPvsErrorBuffer.resize(mPvsStatFrames); 
     
    15711572   
    15721573  glFinish(); 
     1574 
     1575  static bool first = true; 
     1576  if (first) { 
     1577         
     1578 
     1579        bool exportRandomViewCells; 
     1580        Environment::GetSingleton()->GetBoolValue("ViewCells.exportRandomViewCells", 
     1581                                                                                          exportRandomViewCells); 
     1582         
     1583        if (0 && exportRandomViewCells) 
     1584          { 
     1585                char buff[512]; 
     1586                Environment::GetSingleton()->GetStringValue("Scene.filename", buff); 
     1587                string filename(buff); 
     1588 
     1589                string viewCellPointsFile; 
     1590                 
     1591                if (strstr(filename.c_str(), ".obj")) 
     1592                  viewCellPointsFile = ReplaceSuffix(filename, ".obj", ".vc"); 
     1593                else if (strstr(filename.c_str(), ".dat")) 
     1594                  viewCellPointsFile = ReplaceSuffix(filename, ".dat", ".vc"); 
     1595                else if (strstr(filename.c_str(), ".x3d")) 
     1596                  viewCellPointsFile = ReplaceSuffix(filename, ".x3d", ".vc"); 
     1597                 
     1598                 
     1599                cout << "exporting random view cells" << endl; 
     1600                preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile); 
     1601                cout << "finished" << endl; 
     1602          } 
     1603        first = false; 
     1604  } 
     1605 
    15731606  cout<<endl<<flush; 
    15741607} 
     
    16301663   
    16311664  glFinish(); 
     1665 
     1666   
    16321667  cout << endl << flush; 
    16331668} 
Note: See TracChangeset for help on using the changeset viewer.