Changeset 2653


Ignore:
Timestamp:
03/19/08 22:55:40 (16 years ago)
Author:
bittner
Message:

merge - pvs error code
glrenderer.cpp

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

Legend:

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

    r2652 r2653  
    9696 
    9797        // for sg snapshot 
    98         mViewPoint = Vector3(18.5133, 10.9818, -1032.24); 
    99         mViewDirection = Vector3(-0.5373, 0, 0.843391); 
    100            
     98        //mViewPoint = Vector3(18.5133, 10.9818, -1032.24); 
     99        //mViewDirection = Vector3(-0.5373, 0, 0.843391); 
     100 
     101         
    101102          //    mViewPoint = Vector3(1213.85, 176.988, -437.364); 
    102103          //    mViewDirection = Vector3(0.433884, 0, -0.900969); 
     
    118119        mViewPoint = Vector3(35.092, 17.7078, -857.966); 
    119120        mViewDirection = Vector3(-0.411287, 0, -0.911506); 
     121 
     122        // strange viewcell for error measurements (id 534) 
     123        mViewPoint = Vector3(1405.9, 218.284, -736.785); 
     124        mViewDirection = Vector3(0.989155, 0, 0.146877); 
    120125 
    121126#endif 
     
    16141619  SetupProjection(GetWidth(), GetHeight()); 
    16151620   
    1616   cout << "mPvsStatFrames=" << mPvsStatFrames << endl; 
     1621  cout << "mPvsStatFrames=" << viewPoints.size() << endl; 
    16171622   
    16181623  SimpleRayContainer::const_iterator sit, sit_end = viewPoints.end(); 
     
    16281633          mViewPoint = sray.mOrigin; 
    16291634          mViewDirection = sray.mDirection; 
    1630            
    1631           if (1)//mPvsErrorBuffer[i].mError > 0.0f)  
     1635 
     1636          // skip all frames which have already 0 pixel error 
     1637          // $$ Reverted back by JB for efficiency 
     1638          if (mPvsErrorBuffer[i].mError > 0.0f)  
    16321639          { 
    16331640                  int pvsSize; 
     
    16391646                  mPvsErrorBuffer[i].mPvsSize = pvsSize; 
    16401647 
    1641                   cout << "(vc: " << i << ", er: " << mPvsErrorBuffer[i].mError <<")" << endl; 
     1648                  cout << "(" << i << "," << mViewPoint << "," << mViewDirection << mPvsErrorBuffer[i].mError <<")"; 
     1649                  //              cout << "(vc: " << i << ", er: " << mPvsErrorBuffer[i].mError <<")" << endl; 
    16421650          } 
    16431651 
    16441652          const float err = mPvsErrorBuffer[i].mError; 
    16451653 
    1646           if (err < 0.99999f)//err >= 0.0f)  
     1654          // do not account for the case that no PVS is rendered - hack for 08 rebuttal GVS evaluation 
     1655          // (correct would be >=0.0f) 
     1656          if (err >= 0.0f && err < 0.99999f)  
    16471657          { 
    16481658                  if (err > mPvsStat.maxError) 
     
    16571667                  if (err == 0.0f) 
    16581668                          ++ mPvsStat.errorFreeFrames; 
     1669 
     1670                  // $$ JB 
     1671                  // moved it back here not to count frames with negative err (backfacing triangle) 
     1672                  ++ mPvsStat.frames; 
    16591673          } 
    1660  
    1661           ++ mPvsStat.frames; 
     1674           
    16621675        } 
    16631676   
  • GTP/trunk/Lib/Vis/Preprocessing/src/SG08/run_test_pixel_rebuttal

    r2646 r2653  
    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=10000000 -total_samples=250000000 -preprocessor_pvs_rendererror_samples=100000 -preprocessor_evaluatePixelError+ -preprocessor_detect_empty_viewspace+ -kd_pvs_area=1e-5 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -view_cells_import_random_viewcells+ -view_cells_export_random_viewcells-" 
     6COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -samples_per_pass=1000000 -samples_per_evaluation=10000000 -total_samples=250000000 -preprocessor_pvs_rendererror_samples=100000 -preprocessor_evaluatePixelError+ -preprocessor_detect_empty_viewspace+ -kd_pvs_area=1e-4 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -view_cells_import_random_viewcells+ -view_cells_export_random_viewcells-" 
    77  
    88#SCENE="../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d" 
     
    3535#VIEWCELLS=../data/vienna/vienna-seq-viewcells-20000.xml.gz 
    3636 
    37 PREFIX=../work/plots/osp-vienna-SG08e-PIXELRb 
     37PREFIX=../work/plots/osp-vienna-SG08e-PIXELRd-1e4 
    3838 
    3939#SCENE=../data/atlanta/atlanta2.x3d 
     
    4141 
    4242 
    43  
    44 # $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
    45 # -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 
    46 # -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 
    47 # -preprocessor_histogram_file=$PREFIX-r-reference.hlog 
     43#$COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
     44#-preprocessor_visibility_file=$PREFIX-r-reference.xml \ 
     45#-view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 
     46#-preprocessor_histogram_file=$PREFIX-r-reference.hlog 
    4847 
    4948 
    50  
    51 # $COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
    52 #  -rss_distributions=direction -view_cells_filter_max_size=1 \ 
    53 #  -preprocessor_visibility_file=$PREFIX-r-reference-global.xml \ 
    54 #  -preprocessor_stats=$PREFIX-r-reference-global.log \ 
    55 #  -preprocessor_histogram_file=$PREFIX-r-reference-global.hlog 
     49#$COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
     50# -rss_distributions=direction -view_cells_filter_max_size=1 \ 
     51# -preprocessor_visibility_file=$PREFIX-r-reference-global.xml \ 
     52# -preprocessor_stats=$PREFIX-r-reference-global.log \ 
     53# -preprocessor_histogram_file=$PREFIX-r-reference-global.hlog 
    5654 
    5755 
     
    6260# -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4l.hlog 
    6361 
     62 
     63$COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
     64-rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \ 
     65-preprocessor_evaluate_filter- \ 
     66-preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4l.xml \ 
     67-preprocessor_stats=$PREFIX-i-mixed-b1-n4l-nofilter.log \ 
     68-preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4f.hlog 
     69 
    6470$COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
    6571-rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \ 
     
    6874-preprocessor_stats=$PREFIX-i-mixed-b1-n4l.log \ 
    6975-preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4f.hlog 
    70  
    7176 
    7277# $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 
  • GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp

    r2635 r2653  
    7272  cout<<"Sampling Preprocessor started\n"<<flush; 
    7373  //  cout<<"Memory/ray "<<sizeof(VssRay)+sizeof(RssTreeNode::RayInfo)<<endl; 
    74  
     74   
    7575  Randomize(0); 
    7676  const long startTime = GetTime(); 
     
    8181        ConstructViewCells(); 
    8282  } 
    83  
     83   
    8484  int intersectables, faces; 
    8585  mSceneGraph->GetStatistics(intersectables, faces); 
  • GTP/trunk/Lib/Vis/Preprocessing/src/run_test2

    r2638 r2653  
    2929#VIEWCELLS=../data/test1/test-viewcells.xml 
    3030 
    31 SCENE=../data/Arena/arena-high-lods.obj 
    32 VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 
     31#SCENE=../data/Arena/arena-high-lods.obj 
     32#VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 
    3333#VIEWCELLS=../data/Arena/viewcells-5000.xml.gz 
    3434#VIEWCELLS=../data/Arena/arena-high-lods-57000-viewcells.xml.gz 
    3535 
    3636 
    37 # SCENE=../data/vienna/vienna_cropped.obj 
    38 # VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 
     37 SCENE=../data/vienna/vienna_cropped.obj 
     38 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 
    3939#VIEWCELLS=../data/vienna/vienna_cropped-20000-viewcells.xml.gz 
    4040 
Note: See TracChangeset for help on using the changeset viewer.