Changeset 2653 for GTP/trunk/Lib/Vis/Preprocessing/src
- Timestamp:
- 03/19/08 22:55:40 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2652 r2653 96 96 97 97 // 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 101 102 // mViewPoint = Vector3(1213.85, 176.988, -437.364); 102 103 // mViewDirection = Vector3(0.433884, 0, -0.900969); … … 118 119 mViewPoint = Vector3(35.092, 17.7078, -857.966); 119 120 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); 120 125 121 126 #endif … … 1614 1619 SetupProjection(GetWidth(), GetHeight()); 1615 1620 1616 cout << "mPvsStatFrames=" << mPvsStatFrames<< endl;1621 cout << "mPvsStatFrames=" << viewPoints.size() << endl; 1617 1622 1618 1623 SimpleRayContainer::const_iterator sit, sit_end = viewPoints.end(); … … 1628 1633 mViewPoint = sray.mOrigin; 1629 1634 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) 1632 1639 { 1633 1640 int pvsSize; … … 1639 1646 mPvsErrorBuffer[i].mPvsSize = pvsSize; 1640 1647 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; 1642 1650 } 1643 1651 1644 1652 const float err = mPvsErrorBuffer[i].mError; 1645 1653 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) 1647 1657 { 1648 1658 if (err > mPvsStat.maxError) … … 1657 1667 if (err == 0.0f) 1658 1668 ++ mPvsStat.errorFreeFrames; 1669 1670 // $$ JB 1671 // moved it back here not to count frames with negative err (backfacing triangle) 1672 ++ mPvsStat.frames; 1659 1673 } 1660 1661 ++ mPvsStat.frames; 1674 1662 1675 } 1663 1676 -
GTP/trunk/Lib/Vis/Preprocessing/src/SG08/run_test_pixel_rebuttal
r2646 r2653 4 4 #COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 5 5 #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-"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-4 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -view_cells_import_random_viewcells+ -view_cells_export_random_viewcells-" 7 7 8 8 #SCENE="../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d" … … 35 35 #VIEWCELLS=../data/vienna/vienna-seq-viewcells-20000.xml.gz 36 36 37 PREFIX=../work/plots/osp-vienna-SG08e-PIXELR b37 PREFIX=../work/plots/osp-vienna-SG08e-PIXELRd-1e4 38 38 39 39 #SCENE=../data/atlanta/atlanta2.x3d … … 41 41 42 42 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 48 47 49 48 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 56 54 57 55 … … 62 60 # -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4l.hlog 63 61 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 64 70 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 65 71 -rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \ … … 68 74 -preprocessor_stats=$PREFIX-i-mixed-b1-n4l.log \ 69 75 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4f.hlog 70 71 76 72 77 # $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ -
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp
r2635 r2653 72 72 cout<<"Sampling Preprocessor started\n"<<flush; 73 73 // cout<<"Memory/ray "<<sizeof(VssRay)+sizeof(RssTreeNode::RayInfo)<<endl; 74 74 75 75 Randomize(0); 76 76 const long startTime = GetTime(); … … 81 81 ConstructViewCells(); 82 82 } 83 83 84 84 int intersectables, faces; 85 85 mSceneGraph->GetStatistics(intersectables, faces); -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test2
r2638 r2653 29 29 #VIEWCELLS=../data/test1/test-viewcells.xml 30 30 31 SCENE=../data/Arena/arena-high-lods.obj32 VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz31 #SCENE=../data/Arena/arena-high-lods.obj 32 #VIEWCELLS=../data/Arena/arena-high-lods-5000-viewcells.xml.gz 33 33 #VIEWCELLS=../data/Arena/viewcells-5000.xml.gz 34 34 #VIEWCELLS=../data/Arena/arena-high-lods-57000-viewcells.xml.gz 35 35 36 36 37 #SCENE=../data/vienna/vienna_cropped.obj38 #VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz37 SCENE=../data/vienna/vienna_cropped.obj 38 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 39 39 #VIEWCELLS=../data/vienna/vienna_cropped-20000-viewcells.xml.gz 40 40
Note: See TracChangeset
for help on using the changeset viewer.