Ignore:
Timestamp:
01/24/07 06:53:09 (17 years ago)
Author:
bittner
Message:

render error

File:
1 edited

Legend:

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

    r2049 r2050  
    8989  float pErrorPixels = -1.0f; 
    9090   
    91   glReadBuffer(GL_BACK); 
    92    
    93   //  mUseFalseColors = true; 
    9491   
    9592  mUseFalseColors = false; 
    9693  unsigned int pixelCount; 
    97  
     94   
    9895   
    9996  ViewCell *viewcell = mViewCellsManager->GetViewCell(mViewPoint); 
    100    
     97  //  cout<<"View cell"<<viewcell<<endl; 
    10198  if (viewcell == NULL) 
    10299        return 0.0f; 
     
    119116                                                                        pvs); 
    120117  } 
    121    
     118 
     119  //  cout<<"pvs size"<<pvs.GetSize()<<endl<<flush; 
     120 
    122121  SetupCamera(); 
    123122  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 
     
    138137        RenderIntersectable(object); 
    139138  } 
    140    
     139 
     140 
    141141  //    glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE); 
    142142  glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 
     
    162162  //  } 
    163163 
     164 
    164165  pixelCount = query->GetQueryResult(); 
    165166   
     
    167168   
    168169   
    169   if (0 && mSnapErrorFrames && pErrorPixels >= 0.01f) { 
    170          
     170  if (mSnapErrorFrames && pErrorPixels >= 0.01f) { 
     171        glReadBuffer(GL_BACK); 
     172 
    171173        char filename[256]; 
    172174        sprintf(filename, "error-frame-%04d-%0.5f.png", mFrame, pErrorPixels); 
Note: See TracChangeset for help on using the changeset viewer.