Changeset 552
- Timestamp:
- 01/19/06 02:35:58 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env
r551 r552 30 30 samplesPerPass 100000 31 31 initialSamples 300000 32 vssSamples 1 50000032 vssSamples 1800000 33 33 vssSamplesPerPass 100000 34 34 useImportanceSampling true -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r551 r552 2071 2071 Debug << "\nview cell partition after sampling:\n" << mViewCellsStats << endl << endl; 2072 2072 2073 2073 // should maybe be done here to allow merge working with area or volume 2074 // and to correct the rendering statistics 2074 2075 if (1) 2075 2076 { -
trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp
r551 r552 704 704 cout<<"Average PVS size = "<<avgPvs<<endl; 705 705 706 const int nSamples = mViewCellsManager->GetConstructionSamples(); 707 706 708 //Debug << "samples: " << samples << " construction samples " << mViewCellsManager->GetConstructionSamples() << endl; 707 709 // construct view cells after vss 708 710 if (!mViewCellsManager->ViewCellsConstructed() && 709 ( samples + mInitialSamples > mViewCellsManager->GetConstructionSamples()))711 ((samples + mInitialSamples > nSamples) || (samples >= mVssSamples))) 710 712 { 713 Debug << "samples " << samples << " initial " << mInitialSamples << " " << samples + mInitialSamples << endl; 711 714 VssRayContainer constructionRays; 712 vssTree->CollectRays(constructionRays, 713 mViewCellsManager->GetConstructionSamples()); 714 mViewCellsManager->Construct(mObjects, constructionRays); 715 vssTree->CollectRays(constructionRays, nSamples); 716 717 Debug << "collected rays: " << constructionRays.size() << endl; 718 719 // test if we really have enough rays 720 if ((samples >= mVssSamples) || (constructionRays.size() >= nSamples)) 721 mViewCellsManager->Construct(mObjects, constructionRays); 715 722 } 716 723 … … 739 746 } 740 747 748 741 749 Debug << vssTree->stat << endl; 742 750 VssRayContainer viewCellRays;
Note: See TracChangeset
for help on using the changeset viewer.