Ignore:
Timestamp:
05/27/08 11:12:02 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2715 r2716  
    246246 
    247247                // mat_specular and mat_shininess are NOT default values 
    248         GLfloat mat_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f}; 
    249         GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 
    250         GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
    251         GLfloat mat_shininess[] = {1.0f}; 
    252  
    253         glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient); 
    254         glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse); 
    255         glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); 
    256         glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess); 
     248                GLfloat mat_ambient[] = {0.5f, 0.5f, 0.5f, 1.0f}; 
     249                GLfloat mat_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f}; 
     250                GLfloat mat_specular[] = {0.3f, 0.3f, 0.3f, 1.0f}; 
     251                GLfloat mat_shininess[] = {1.0f}; 
     252 
     253                glMaterialfv(GL_FRONT, GL_AMBIENT, mat_ambient); 
     254                glMaterialfv(GL_FRONT, GL_DIFFUSE, mat_diffuse); 
     255                glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular); 
     256                glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess); 
    257257 
    258258                GLfloat light_ambient[] = {0.3, 0.3, 0.3, 1.0}; 
     
    288288        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); 
    289289 
    290         glColor3f(0.6f, 0.6f, 0.6f); 
    291         //glColor3f(0, 1, 0); 
     290        //glColor3f(0.6f, 0.6f, 0.6f); 
     291        glColor3f(0, 1, 0); 
    292292 
    293293        glDepthFunc(GL_LESS); 
     
    342342 
    343343        // some error happened 
    344         if (1) // pixelCount > pixelThres)  
     344        if (pixelCount > pixelThres)  
    345345        { 
    346346                cout << "f " << mFrame << " id " << viewcell->GetId() << " pvs " << pvsSize  
    347347                         << " e " << pixelCount << " vp " << mViewPoint << " vd " << mViewDirection << endl; 
    348348         
    349                 format().setSampleBuffers(true); 
    350                 cout << "here3 " << format().sampleBuffers() << endl; 
    351349                if (mSnapErrorFrames)  
    352350                { 
     
    358356 
    359357                        char filename[256]; 
    360                         sprintf(filename, "error-frame-%04d-%05d.bmp", pass, mFrame); 
     358                        //sprintf(filename, "error-frame-%04d-%05d.bmp", pass, mFrame); 
    361359                        //sprintf(filename, "error-frame-%05d-%0.5f.png", mFrame, pErrorPixels); 
    362                         //sprintf_s(filename, "error-frame-%05d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 
     360                        sprintf_s(filename, "error-frame-%05d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 
    363361 
    364362                        QImage im = toImage(); 
     
    366364                        QString qstr(str.c_str()); 
    367365 
    368                         //im.save(qstr, "PNG"); 
    369                         // use bmp for lossless storage (for video) 
    370                         im.save(qstr, "BMP"); 
     366                        im.save(qstr, "PNG"); 
    371367 
    372368                        if (0) 
Note: See TracChangeset for help on using the changeset viewer.