Ignore:
Timestamp:
05/19/08 02:43:25 (16 years ago)
Author:
mattausch
Message:

gvs testing

File:
1 edited

Legend:

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

    r2686 r2687  
    104104GlRendererBuffer(sceneGraph, viewcells, tree) 
    105105{ 
    106         mUseVbos = true; 
    107         //mUseVbos = false; 
    108          
    109106        //makeCurrent(); 
    110107        MakeLive(); 
     
    267264        pErrorPixels = (float)pixelCount / (GetWidth() * GetHeight()); 
    268265 
    269         const int pixelThres = 100000; 
     266        const int pixelThres = 0; 
    270267 
    271268        // some error happened 
     
    285282                        char filename[256]; 
    286283                        //sprintf(filename, "error-frame-%04d-%0.5f.png", mFrame, pErrorPixels); 
    287                         sprintf(filename, "error-frame-%04d-%08d.png", mFrame, pixelCount); 
     284                        sprintf(filename, "error-frame-%04d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 
    288285                        QImage im = toImage(); 
    289286                        string str = mSnapPrefix + filename; 
     
    292289                        im.save(qstr, "PNG"); 
    293290 
    294  
     291#if 0 
    295292                        /////////// 
    296293                        //-- output computed pvs 
    297294 
    298                         mUseFalseColors = false; 
    299  
     295                        //mUseFalseColors = true; 
    300296                        glPushAttrib(GL_CURRENT_BIT); 
    301297                        glColor3f(0, 1, 0); 
     
    312308                        RenderPvs(pvs); 
    313309 
    314                         mUseForcedColors = false; 
    315  
     310                        //mUseForcedColors = false; 
    316311                        im = toImage(); 
    317312                        sprintf(filename, "error-frame-%04d-%04d-%08d-pvs.png", mFrame, viewcell->GetId(), pixelCount); 
     
    321316 
    322317                        glPopAttrib(); 
     318#endif 
    323319                } 
    324320        } 
     
    575571        if (viewcell)  
    576572        { 
    577 #if 1 
    578573                // copy the pvs so that it can be filtered ... 
    579574                if (PvsChanged(viewcell))  
     
    607602                        mCurrentPvsCost = mPvsCache.mPvs.EvalPvsCost(); 
    608603                } 
    609 #else 
    610          
    611                 // update the indices for rendering 
    612                 PreparePvs(viewcell->GetPvs()); 
    613                 emit PvsUpdated(); 
    614  
    615 #endif 
    616604 
    617605                // Render PVS 
     
    643631        else  
    644632        { 
    645                 //OcclusionQuery *query = mOcclusionQueries[0]; 
    646                 //query->BeginQuery(); 
    647                  
    648633                RenderScene(); 
    649  
    650                 //query->EndQuery(); 
    651                 //int pixels = query->GetQueryResult(); 
    652                 //cout << " pixels: " << pixels; 
    653634        } 
    654635 
Note: See TracChangeset for help on using the changeset viewer.