Changeset 2687 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 05/19/08 02:43:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2686 r2687 104 104 GlRendererBuffer(sceneGraph, viewcells, tree) 105 105 { 106 mUseVbos = true;107 //mUseVbos = false;108 109 106 //makeCurrent(); 110 107 MakeLive(); … … 267 264 pErrorPixels = (float)pixelCount / (GetWidth() * GetHeight()); 268 265 269 const int pixelThres = 100000;266 const int pixelThres = 0; 270 267 271 268 // some error happened … … 285 282 char filename[256]; 286 283 //sprintf(filename, "error-frame-%04d-%0.5f.png", mFrame, pErrorPixels); 287 sprintf(filename, "error-frame-%04d-%0 8d.png", mFrame, pixelCount);284 sprintf(filename, "error-frame-%04d-%04d-%08d.png", mFrame, viewcell->GetId(), pixelCount); 288 285 QImage im = toImage(); 289 286 string str = mSnapPrefix + filename; … … 292 289 im.save(qstr, "PNG"); 293 290 294 291 #if 0 295 292 /////////// 296 293 //-- output computed pvs 297 294 298 mUseFalseColors = false; 299 295 //mUseFalseColors = true; 300 296 glPushAttrib(GL_CURRENT_BIT); 301 297 glColor3f(0, 1, 0); … … 312 308 RenderPvs(pvs); 313 309 314 mUseForcedColors = false; 315 310 //mUseForcedColors = false; 316 311 im = toImage(); 317 312 sprintf(filename, "error-frame-%04d-%04d-%08d-pvs.png", mFrame, viewcell->GetId(), pixelCount); … … 321 316 322 317 glPopAttrib(); 318 #endif 323 319 } 324 320 } … … 575 571 if (viewcell) 576 572 { 577 #if 1578 573 // copy the pvs so that it can be filtered ... 579 574 if (PvsChanged(viewcell)) … … 607 602 mCurrentPvsCost = mPvsCache.mPvs.EvalPvsCost(); 608 603 } 609 #else610 611 // update the indices for rendering612 PreparePvs(viewcell->GetPvs());613 emit PvsUpdated();614 615 #endif616 604 617 605 // Render PVS … … 643 631 else 644 632 { 645 //OcclusionQuery *query = mOcclusionQueries[0];646 //query->BeginQuery();647 648 633 RenderScene(); 649 650 //query->EndQuery();651 //int pixels = query->GetQueryResult();652 //cout << " pixels: " << pixels;653 634 } 654 635
Note: See TracChangeset
for help on using the changeset viewer.