Changeset 2611


Ignore:
Timestamp:
01/17/08 23:12:07 (16 years ago)
Author:
bittner
Message:

pvs error debug

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
5 edited

Legend:

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

    r2609 r2611  
    107107                mPvsStatFrames = (int)mViewCellsManager->GetViewCellPointsList()->size(); 
    108108        else 
    109                 Environment::GetSingleton()->GetIntValue("Preprocessor.pvsRenderErrorSamples", mPvsStatFrames); 
    110  
    111  
     109                Environment::GetSingleton()->GetIntValue("Preprocessor.pvsRenderErrorSamples", 
     110                                                                                                 mPvsStatFrames); 
     111         
     112         
    112113        mPvsErrorBuffer.resize(mPvsStatFrames); 
    113114        ClearErrorBuffer(); 
     
    14281429  SetupProjection(GetWidth(), GetHeight()); 
    14291430 
    1430   cout<<"mPvsStatFrames="<<mPvsStatFrames<<endl; 
     1431  cout<<"Random Pvs STATS, mPvsStatFrames="<<mPvsStatFrames<<endl; 
    14311432   
    14321433  for (int i=0; i < mPvsStatFrames; i++) { 
     
    14341435        // set frame id for saving the error buffer 
    14351436        mFrame = i; 
     1437        //      cerr<<"RV"<<endl; 
    14361438        RandomViewPoint(); 
     1439        //      cerr<<"RV2"<<endl; 
    14371440 
    14381441        if (mPvsErrorBuffer[i].mError == 1.0f) { 
     
    14611464        if (mPvsErrorBuffer[i].mError > 0.0f) { 
    14621465          int pvsSize; 
    1463            
     1466 
     1467          cerr<<"GPE"<<endl; 
     1468 
    14641469          float error = GetPixelError(pvsSize); 
     1470          cerr<<"GPEd"<<endl; 
     1471 
    14651472          mPvsErrorBuffer[i].mError = error; 
    14661473          mPvsErrorBuffer[i].mPvsSize = pvsSize; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp

    r2609 r2611  
    109109 
    110110        ViewCell *viewcell = mViewCellsManager->GetViewCell(mViewPoint); 
    111         //  cout<<"View cell"<<viewcell<<endl; 
    112111        if (viewcell == NULL) 
    113112                return 0.0f; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SG08/run_test_pixel

    r2610 r2611  
    44#COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 
    55#COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -samples_per_pass=500000 -samples_per_evaluation=10000000 -total_samples=500000000 -preprocessor_pvs_rendererror_samples=10000 -preprocessor_evaluatePixelError+" 
    6 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_pass=1000000 -samples_per_evaluation=2000000 -total_samples=500000000 -preprocessor_pvs_rendererror_samples=10000 -preprocessor_evaluatePixelError+" 
     6COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -samples_per_pass=1000000 -samples_per_evaluation=500000 -total_samples=500000000 -preprocessor_pvs_rendererror_samples=10000 -preprocessor_evaluatePixelError+" 
    77 
    88#SCENE="../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d" 
  • GTP/trunk/Lib/Vis/Preprocessing/src/default.env

    r2610 r2611  
    518518BSP { 
    519519  termCrit        auto 
     520  # auto2 allows to set the number of primitives per leaf        
    520521  #termCrit       auto2 
     522  #adhoc allows to set maxdepth + number of primitives per leaf  
    521523  #termCrit       adhoc 
    522524  # For Arena 
     
    526528  #maxDepthAllowed 22 
    527529  #maxListLength    6 
     530  # For PowerPlant 
     531  maxDepthAllowed 18 
     532  maxListLength    8 
    528533  # For Power plant 
    529534  #maxDepthAllowed 8 
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r2610 r2611  
    293293        Environment::GetSingleton()->GetIntValue("Preprocessor.pvsRenderErrorSamples", frames); 
    294294 
     295        bool evalPixelError; 
     296        Environment::GetSingleton()->GetBoolValue("Preprocessor.evaluatePixelError", evalPixelError); 
     297 
    295298#ifdef USE_QT 
    296299 
     
    299302        pt = new QtPreprocessorThread(preprocessor);     
    300303         
    301         if (preprocessor->mUseGlRenderer && (importRandomViewCells || frames)) 
    302  
     304        //      if (preprocessor->mUseGlRenderer && (importRandomViewCells || frames)) 
     305 
     306        if (evalPixelError && (importRandomViewCells || frames)) 
    303307          { 
    304308                QGLFormat f; 
Note: See TracChangeset for help on using the changeset viewer.