Ignore:
Timestamp:
12/18/07 17:40:35 (17 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r2564 r2571  
    211211                const float importance = log10(1e3*ray->mWeightedPvsContribution)/3.0f; 
    212212                 
    213                 glColor3f(importance, importance, importance); 
     213                glColor3f(1.0f, 0.0f, 0.0f); 
     214                //glColor3f(importance, importance, importance); 
    214215                glVertex3fv(&ray->mOrigin.x); 
    215216                glVertex3fv(&ray->mTermination.x); 
     
    14551456           
    14561457          if (mPvsErrorBuffer[i].mError > 0.0f)  
    1457                 { 
     1458          { 
    14581459                  int pvsSize; 
    1459                    
     1460 
    14601461                  // compute the pixel error 
    14611462                  float error = GetPixelError(pvsSize); 
    1462                    
     1463 
    14631464                  mPvsErrorBuffer[i].mError = error; 
    14641465                  mPvsErrorBuffer[i].mPvsSize = pvsSize; 
    1465                    
     1466 
    14661467                  cout << "(" << i << "," << mPvsErrorBuffer[i].mError <<")"; 
    1467                 } 
    1468            
     1468          } 
     1469 
    14691470          err = mPvsErrorBuffer[i].mError; 
    1470            
     1471 
    14711472          if (err >= 0.0f)  
    1472                 { 
     1473          { 
    14731474                  if (err > mPvsStat.maxError) 
    1474                         mPvsStat.maxError = err; 
    1475                    
     1475                          mPvsStat.maxError = err; 
     1476 
    14761477                  mPvsStat.sumError += err; 
    1477                         mPvsStat.sumPvsSize += mPvsErrorBuffer[i].mPvsSize; 
    1478                          
    1479                         if (err == 0.0f) 
     1478                  mPvsStat.sumPvsSize += mPvsErrorBuffer[i].mPvsSize; 
     1479 
     1480                  if (err == 0.0f) 
    14801481                          ++ mPvsStat.errorFreeFrames; 
    1481                          
    1482                         ++ mPvsStat.frames; 
    1483                 } 
     1482 
     1483                  ++ mPvsStat.frames; 
     1484          } 
    14841485        } 
    14851486   
Note: See TracChangeset for help on using the changeset viewer.