Ignore:
Timestamp:
01/20/08 22:11:30 (17 years ago)
Author:
bittner
Message:

TEST PVS RENDERING ON

File:
1 edited

Legend:

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

    r2617 r2619  
    2121#define USE_CG 1 
    2222 
     23#define TEST_PVS_RENDERING 1 
    2324 
    2425#if USE_CG 
     
    132133        glStencilOp(GL_KEEP, GL_KEEP, GL_INCR);  
    133134 
     135         
    134136        // Render PVS 
    135137        ObjectPvsIterator it = pvs.GetIterator(); 
     
    139141 
    140142        Intersectable::NewMail(); 
     143        mCurrentFrame++; 
    141144        while (it.HasMoreEntries())  
    142145          { 
     
    176179 
    177180 
    178         if (mSnapErrorFrames && (0 && pErrorPixels >= 0.01f)) { 
     181        if (mSnapErrorFrames && (pErrorPixels >= 0.01f)) { 
    179182          glReadBuffer(GL_BACK); 
    180183          //glReadBuffer(GL_FRONT); 
     
    211214          // Render PVS 
    212215          Intersectable::NewMail(); 
     216          mCurrentFrame++; 
    213217           
    214218           
     
    220224 
    221225          mUseForcedColors = false; 
    222            
    223226          im = toImage(); 
    224227          sprintf(filename, "error-frame-%04d-%0.5f-pvs.png", mFrame, pErrorPixels); 
     
    371374void QtGlRendererWidget::_RenderPvs() 
    372375{ 
    373         mUseFalseColors = false; 
     376 
     377#if TEST_PVS_RENDERING 
     378   
     379  ObjectPvsIterator it = mPvsCache.mPvs.GetIterator(); 
     380 
     381  int pvsSize = mPvsCache.mPvs.GetSize(); 
     382 
     383  Intersectable::NewMail(); 
     384  mCurrentFrame++; 
     385  while (it.HasMoreEntries())  
     386        { 
     387          RenderIntersectable(it.Next()); 
     388        } 
     389 
     390   
     391  return; 
     392#endif 
     393   
     394  mUseFalseColors = false; 
    374395 
    375396        int offset = (int)mObjects.size() * 3; 
Note: See TracChangeset for help on using the changeset viewer.