Changeset 2205
- Timestamp:
- 03/07/07 18:16:49 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
r2199 r2205 633 633 } else 634 634 if (strcmp(curr, "spatial")==0) { 635 Debug << "here4 spatialbox" << endl;636 635 mDistributions.push_back(new SpatialBoxBasedDistribution(mPreprocessor)); 637 636 } else -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r2199 r2205 1957 1957 1958 1958 //////////////////////////////////////////////// 1959 // for interiors, pvs can be stored using different methods1959 //-- for interiors, pvs can be stored using different methods 1960 1960 // 1961 1961 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2199 r2205 76 76 mPreprocessor(NULL), 77 77 mViewCellsTree(viewCellsTree), 78 mUsePredefinedViewCells(false) 78 mUsePredefinedViewCells(false), 79 mMixtureDistribution(NULL) 79 80 { 80 81 mViewSpaceBox.Initialize(); … … 2414 2415 stat.avgRelPvsIncrease = 0.0f; 2415 2416 stat.devRelPvsIncrease = 0.0f; 2416 2417 stat.renderCost = 0.0f; 2418 2417 2419 if (mPerViewCellStat.size() != mViewCells.size()) { 2418 2420 // reset the pvs size array after the first call to this routine … … 2427 2429 Environment::GetSingleton()->GetBoolValue("Preprocessor.evaluateFilter", evaluateFilter); 2428 2430 2431 const float vol = mViewSpaceBox.GetVolume(); 2432 2429 2433 for (i=0; it != mViewCells.end(); ++ it, i++) 2430 2434 { … … 2432 2436 if (viewcell->GetValid()) { 2433 2437 const float pvsCost = mViewCellsTree->GetPvsCost(viewcell); 2438 const float renderCost = pvsCost * viewcell->GetVolume() / vol; 2434 2439 2435 2440 if (pvsCost < stat.minPvs) … … 2439 2444 2440 2445 stat.avgPvs += pvsCost; 2446 stat.renderCost += renderCost; 2441 2447 2442 2448 const float pvsEntries = (float)mViewCellsTree->GetPvsEntries(viewcell); -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r2199 r2205 113 113 float maxPvs; 114 114 float avgPvs; 115 float renderCost; 115 116 float avgPvsEntries; 116 117
Note: See TracChangeset
for help on using the changeset viewer.