Changeset 2571 for GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
- Timestamp:
- 12/18/07 17:40:35 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2564 r2571 211 211 const float importance = log10(1e3*ray->mWeightedPvsContribution)/3.0f; 212 212 213 glColor3f(importance, importance, importance); 213 glColor3f(1.0f, 0.0f, 0.0f); 214 //glColor3f(importance, importance, importance); 214 215 glVertex3fv(&ray->mOrigin.x); 215 216 glVertex3fv(&ray->mTermination.x); … … 1455 1456 1456 1457 if (mPvsErrorBuffer[i].mError > 0.0f) 1457 1458 { 1458 1459 int pvsSize; 1459 1460 1460 1461 // compute the pixel error 1461 1462 float error = GetPixelError(pvsSize); 1462 1463 1463 1464 mPvsErrorBuffer[i].mError = error; 1464 1465 mPvsErrorBuffer[i].mPvsSize = pvsSize; 1465 1466 1466 1467 cout << "(" << i << "," << mPvsErrorBuffer[i].mError <<")"; 1467 1468 1468 } 1469 1469 1470 err = mPvsErrorBuffer[i].mError; 1470 1471 1471 1472 if (err >= 0.0f) 1472 1473 { 1473 1474 if (err > mPvsStat.maxError) 1474 mPvsStat.maxError = err;1475 1475 mPvsStat.maxError = err; 1476 1476 1477 mPvsStat.sumError += err; 1477 1478 1479 1478 mPvsStat.sumPvsSize += mPvsErrorBuffer[i].mPvsSize; 1479 1480 if (err == 0.0f) 1480 1481 ++ mPvsStat.errorFreeFrames; 1481 1482 1483 1482 1483 ++ mPvsStat.frames; 1484 } 1484 1485 } 1485 1486
Note: See TracChangeset
for help on using the changeset viewer.