Changeset 2617 for GTP/trunk/Lib/Vis
- Timestamp:
- 01/20/08 00:43:31 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Makefile
r2616 r2617 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.2) on: ne 20. I 00:3 4:0320083 # Generated by qmake (2.00a) (Qt 4.1.2) on: ne 20. I 00:39:42 2008 4 4 # Project: preprocessor.pro 5 5 # Template: app … … 63 63 $(MAKE) -f $(MAKEFILE).Debug uninstall 64 64 65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc .net\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc2005\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \ 66 66 C:\Qt\4.1.2\mkspecs\features\qt_config.prf \ 67 67 C:\Qt\4.1.2\mkspecs\features\exclusive_builds.prf \ -
GTP/trunk/Lib/Vis/Preprocessing/src/PvsDefinitions.h
r2616 r2617 7 7 //////////// 8 8 //-- typedefs 9 //$$ 19.1. 2008 test for speed 10 #define USE_BIT_PVS 9 11 10 12 -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2615 r2617 1367 1367 float renderCost = 0; 1368 1368 1369 #ifndef USE_BIT_PVS 1369 1370 if (mShowDistanceWeightedPvs) 1370 1371 { … … 1379 1380 return vc->GetPvs().mStats.mWeightedTriangles; 1380 1381 } 1382 #else 1383 return 0.0f; 1384 #endif 1381 1385 } 1382 1386 #endif -
GTP/trunk/Lib/Vis/Preprocessing/src/SG08/run_test_arena
r2610 r2617 2 2 3 3 #COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 4 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -preprocessor_detect_empty_viewspace+ -total_samples=1000000000" 4 5 # NORMAL TEST 6 #COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -preprocessor_detect_empty_viewspace+ -total_samples=1000000000 -samples_per_pass=1000000 -total_samples=1000000000 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -kd_pvs_area=1e-5" 7 8 #TIME TERMINATION 9 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -preprocessor_detect_empty_viewspace+ -total_samples=1000000000 -samples_per_pass=1000000 -total_samples=4000000000 -total_time=7200 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -kd_pvs_area=1e-5" 5 10 6 11 … … 8 13 VIEWCELLS=../data/Arena/viewcells-5000.xml.gz 9 14 10 PREFIX=../work/plots/osp-arena-SG08a 15 PREFIX=../work/plots/osp-arena-SG08a-TIME 11 16 12 17 # $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ … … 18 23 # # n - no origin mutation, q=2, reverse samples 19 24 20 $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \21 -preprocessor_visibility_file=$PREFIX-r-reference.xml \22 -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \23 -preprocessor_histogram_file=$PREFIX-r-reference.hlog24 25 25 26 $COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ … … 28 29 -preprocessor_stats=$PREFIX-r-reference-global.log \ 29 30 -preprocessor_histogram_file=$PREFIX-r-reference-global.hlog 31 32 $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 33 -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 34 -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 35 -preprocessor_histogram_file=$PREFIX-r-reference.hlog 30 36 31 37 # -total_samples=500000000000 -total_time=12208 \ -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2615 r2617 2403 2403 2404 2404 const int numTriangles = kdObj->ComputeNumTriangles(); 2405 2405 #ifndef USE_BIT_PVS 2406 2406 vc->GetPvs().mStats.mDistanceWeightedTriangles += f * numTriangles; 2407 2407 vc->GetPvs().mStats.mDistanceWeightedPvs += f ; 2408 2408 vc->GetPvs().mStats.mWeightedTriangles += numTriangles; 2409 #endif 2409 2410 } 2410 2411 … … 2595 2596 if (1) 2596 2597 // tmp matt: don't use when origin objects are not accounted for, currently the second ray is lost!! 2597 //!lastVssRay || 2598 //!(ray.mOrigin == lastVssRay->mTermination) || 2599 //!(ray.mTermination == lastVssRay->mOrigin)) 2600 { 2598 // $$JB: reenabled again - should use the same viewcells for the next ray ray if 2599 // it goes in the oposite direction 2600 // if (!lastVssRay || 2601 // !(ray.mOrigin == lastVssRay->mTermination) || 2602 // !(ray.mTermination == lastVssRay->mOrigin)) 2603 { 2601 2604 viewCells.clear(); 2602 2605 … … 2604 2607 CastLineSegment(origin, termination, viewCells); 2605 2608 lastVssRay = &ray; 2606 }2609 } 2607 2610 2608 2611 #ifdef USE_PERFTIMER … … 2628 2631 2629 2632 #ifdef USE_PERFTIMER 2630 objTimer.Entry();2633 // objTimer.Entry(); 2631 2634 #endif 2632 2635 // obtain pvs entry (can be different from hit object) … … 2634 2637 2635 2638 #ifdef USE_PERFTIMER 2636 objTimer.Exit(); 2637 2639 // objTimer.Exit(); 2638 2640 pvsTimer.Entry(); 2639 2641 #endif
Note: See TracChangeset
for help on using the changeset viewer.