- Timestamp:
- 02/05/06 04:15:02 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r596 r597 196 196 height 5.0 197 197 maxViewCells 3000 198 198 199 #percentage of total visible objects where pvs is considered invalid 199 200 maxPvsRatio 1.0 … … 300 301 # pvs = 1024 301 302 302 splitPlaneStrategy 102 6303 splitPlaneStrategy 1024 303 304 304 305 # maximal candidates for split planes 305 maxPolyCandidates 100306 maxPolyCandidates 0 306 307 307 308 … … 332 333 #maxAccRayLength 100 333 334 334 maxViewCells 5 000335 maxViewCells 512 335 336 336 337 # used for pvs criterium -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r596 r597 2464 2464 //-- merge or subdivide view cells 2465 2465 int merged = 0; 2466 2467 cout << "starting merge using " << mPostProcessSamples << " samples ... " << endl; 2468 long startTime = GetTime(); 2466 if (mMergeViewCells) 2467 { 2468 cout << "starting merge using " << mPostProcessSamples << " samples ... " << endl; 2469 long startTime = GetTime(); 2469 2470 2470 2471 2471 // TODO: should be done BEFORE the ray casting2472 merged = mViewCellsTree->ConstructMergeTree(rays, objects);2473 2474 //-- stats and visualizations2475 cout << "finished merging" << endl;2476 cout << "merged " << merged << " view cells in "2477 << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl;2478 2479 Debug << "Postprocessing: Merged " << merged << " view cells in "2480 << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl << endl;2481 2472 // TODO: should be done BEFORE the ray casting 2473 merged = mViewCellsTree->ConstructMergeTree(rays, objects); 2474 2475 //-- stats and visualizations 2476 cout << "finished merging" << endl; 2477 cout << "merged " << merged << " view cells in " 2478 << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl; 2479 2480 Debug << "Postprocessing: Merged " << merged << " view cells in " 2481 << TimeDiff(startTime, GetTime()) *1e-3 << " secs" << endl << endl; 2482 } 2482 2483 2483 2484 //BspLeaf::NewMail(); 2484 2485 if (1) // export merged view cells 2485 2486 { 2486 2487 2487 cout << "reseting view cells ... "; 2488 2488 ResetViewCells(); … … 2592 2592 } 2593 2593 2594 if (mMergeViewCells) 2595 { 2596 //-- merge the individual view cells 2597 MergeViewCells(postProcessRays, objects); 2594 //-- merge the individual view cells 2595 MergeViewCells(postProcessRays, objects); 2598 2596 2599 2597 2600 //-- refines the merged view cells 2601 if (0) 2602 RefineViewCells(postProcessRays, objects); 2603 2604 if (mCompressViewCells) 2605 { 2606 int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2607 Debug << "number of entries before compress: " << pvsEntries << endl; 2608 2609 mViewCellsTree->CompressViewCellsPvs(); 2610 2611 pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2612 Debug << "number of entries after compress: " << pvsEntries << endl; 2613 } 2598 //-- refines the merged view cells 2599 if (0) 2600 RefineViewCells(postProcessRays, objects); 2601 2602 if (mCompressViewCells) 2603 { 2604 int pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2605 Debug << "number of entries before compress: " << pvsEntries << endl; 2606 2607 mViewCellsTree->CompressViewCellsPvs(); 2608 2609 pvsEntries = mViewCellsTree->GetNumPvsEntries(mViewCellsTree->GetRoot()); 2610 Debug << "number of entries after compress: " << pvsEntries << endl; 2614 2611 } 2615 2612
Note: See TracChangeset
for help on using the changeset viewer.