Changeset 2619 for GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface
- Timestamp:
- 01/20/08 22:11:30 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2617 r2619 21 21 #define USE_CG 1 22 22 23 #define TEST_PVS_RENDERING 1 23 24 24 25 #if USE_CG … … 132 133 glStencilOp(GL_KEEP, GL_KEEP, GL_INCR); 133 134 135 134 136 // Render PVS 135 137 ObjectPvsIterator it = pvs.GetIterator(); … … 139 141 140 142 Intersectable::NewMail(); 143 mCurrentFrame++; 141 144 while (it.HasMoreEntries()) 142 145 { … … 176 179 177 180 178 if (mSnapErrorFrames && ( 0 &&pErrorPixels >= 0.01f)) {181 if (mSnapErrorFrames && (pErrorPixels >= 0.01f)) { 179 182 glReadBuffer(GL_BACK); 180 183 //glReadBuffer(GL_FRONT); … … 211 214 // Render PVS 212 215 Intersectable::NewMail(); 216 mCurrentFrame++; 213 217 214 218 … … 220 224 221 225 mUseForcedColors = false; 222 223 226 im = toImage(); 224 227 sprintf(filename, "error-frame-%04d-%0.5f-pvs.png", mFrame, pErrorPixels); … … 371 374 void QtGlRendererWidget::_RenderPvs() 372 375 { 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; 374 395 375 396 int offset = (int)mObjects.size() * 3;
Note: See TracChangeset
for help on using the changeset viewer.