Changeset 2524
- Timestamp:
- 07/03/07 22:05:03 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r2360 r2524 1133 1133 "spatialMedian"); 1134 1134 1135 1136 RegisterOption("KdTree.pvsArea", 1137 optFloat, 1138 "kd_pvs_area=", 1139 "1e-4"); 1140 1135 1141 RegisterOption("KdTree.splitBorder", 1136 1142 optFloat, -
GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.cpp
r2332 r2524 14 14 15 15 // $$JB HACK 16 #define KD_PVS_AREA (1e-5f)16 //#define KD_PVS_AREA (1e-4f) 17 17 18 18 #define TYPE_INTERIOR -2 … … 67 67 Environment::GetSingleton()->GetFloatValue("KdTree.Termination.ct_div_ci", mCt_div_ci); 68 68 Environment::GetSingleton()->GetFloatValue("KdTree.splitBorder", mSplitBorder); 69 Environment::GetSingleton()->GetFloatValue("KdTree.pvsArea", mKdPvsArea); 69 70 70 71 Environment::GetSingleton()->GetBoolValue("KdTree.sahUseFaces", mSahUseFaces); … … 125 126 delete splitCandidates; 126 127 127 float area = GetBox().SurfaceArea()* KD_PVS_AREA;128 float area = GetBox().SurfaceArea()*mKdPvsArea; 128 129 129 130 SetPvsTerminationNodes(area); … … 1404 1405 } 1405 1406 1406 float area = GetBox().SurfaceArea()* KD_PVS_AREA;1407 float area = GetBox().SurfaceArea()*mKdPvsArea; 1407 1408 1408 1409 SetPvsTerminationNodes(area); -
GTP/trunk/Lib/Vis/Preprocessing/src/KdTree.h
r2332 r2524 614 614 int mSplitMethod; 615 615 bool mSahUseFaces; 616 float mKdPvsArea; 616 617 /// root of the tree 617 618 KdNode *mRoot; -
GTP/trunk/Lib/Vis/Preprocessing/src/demo1.env
r2521 r2524 40 40 totalSamples 250000000 41 41 # totalSamples 2000000 42 samplesPerPass 100000042 samplesPerPass 500000 43 43 samplesPerEvaluation 5000000 44 44 … … 169 169 170 170 KdTree { 171 pvsArea 5e-4 171 172 sahUseFaces false 172 173 Termination { … … 202 203 203 204 useKdPvs true 205 204 206 useKdPvsAfterFiltering true 205 207 # samples used for view cell construction -
GTP/trunk/Lib/Vis/Preprocessing/src/run_demo1
r2521 r2524 3 3 4 4 #COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 5 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish + -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_evaluation=5000000 -samples_per_pass=1000000 -total_samples=100000000"5 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish- -preprocessor_use_gl_renderer+ -preprocessor_evaluate_filter- -samples_per_evaluation=5000000 -samples_per_pass=500000 -total_samples=100000000" 6 6 7 7 … … 49 49 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4a.xml \ 50 50 -preprocessor_stats=$PREFIX-i-mixed-b1-n4a.log \ 51 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog 51 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog \ 52 demo1.env 52 53
Note: See TracChangeset
for help on using the changeset viewer.