Ignore:
Timestamp:
01/18/08 09:28:09 (16 years ago)
Author:
bittner
Message:

evaluation of pvs error still does not work

File:
1 edited

Legend:

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

    r2612 r2613  
    2525#endif 
    2626 
     27// if 1 = SAFE RENDERING OF PVS primitives without VBOs for Pvs error estimation 
     28#define EVAL_ERROR 0 
     29 
    2730namespace GtpVisibilityPreprocessor { 
    2831 
     
    97100        Environment::GetSingleton()->GetBoolValue("Preprocessor.detectEmptyViewSpace", 
    98101                                                      mDetectEmptyViewSpace); 
     102 
    99103        mSnapErrorFrames = true; 
    100104        mSnapPrefix = "snap/"; 
     
    135139{ 
    136140        Triangle3 *t = &(object->GetItem()); 
    137  
    138141        glBegin(GL_TRIANGLES); 
    139142        Vector3 normal = t->GetNormal(); 
     
    786789        if (node->IsLeaf())  
    787790        { 
    788 #if 1 
     791#if !EVAL_ERROR 
    789792                RenderKdLeaf(static_cast<KdLeaf *>(node)); 
    790793#else 
     
    14641467          int pvsSize; 
    14651468 
    1466           cerr<<"GPE"<<endl; 
    1467  
    14681469          float error = GetPixelError(pvsSize); 
    1469           cerr<<"GPEd"<<endl; 
    14701470 
    14711471          mPvsErrorBuffer[i].mError = error; 
Note: See TracChangeset for help on using the changeset viewer.