Changeset 2633 for GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
- Timestamp:
- 01/23/08 01:38:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GvsPreprocessor.cpp
r2625 r2633 17 17 { 18 18 19 #define GVS_DEBUG 119 #define GVS_DEBUG 0 20 20 21 21 struct VizStruct … … 37 37 mCurrentViewCell(NULL), 38 38 mCurrentViewPoint(Vector3(0.0f, 0.0f, 0.0f)) 39 //,mGenericStats(0) 39 40 { 40 41 Environment::GetSingleton()->GetIntValue("GvsPreprocessor.totalSamples", mTotalSamples); … … 219 220 return false; 220 221 222 // cout << "t"; 221 223 if (0 && GVS_DEBUG) 222 224 mVssRays.push_back(new VssRay(*vssRay)); … … 592 594 593 595 //CLEAR_CONTAINER(invalidSamples); 594 Debug << "generated " << numSamples << " samples in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl;596 //Debug << "generated " << numSamples << " samples in " << TimeDiff(startTime, GetTime()) * 1e-3 << " secs" << endl; 595 597 return (int)simpleRays.size(); 596 598 } … … 606 608 607 609 HandleRay(ray); 608 609 //if (!HandleRay(ray)); 610 // invalidSamples.push_back(ray); 610 //if (!HandleRay(ray)) invalidSamples.push_back(ray); 611 611 } 612 612 } … … 675 675 676 676 677 //void GvsPreprocessor::VisualizeViewCell(ViewCell *vc)678 677 void GvsPreprocessor::VisualizeViewCell(const ObjectContainer &objects) 679 678 { 680 679 Intersectable::NewMail(); 681 682 680 Material m; 683 681 … … 760 758 int passSamples = 0; 761 759 762 //if (mCurrentViewCell->GetId() != 82975 )return;760 mGenericStats = 0; 763 761 764 762 //while (mGvsStats.mPerViewCellSamples < mTotalSamples) … … 789 787 cout << "\nPass " << mPass << " #samples: " << mGvsStats.mPerViewCellSamples << endl; 790 788 cout << "contribution=" << mGvsStats.mPassContribution << " (of " << mMinContribution << ")" << endl; 789 790 //mGenericStats = GvsStats.mGvsStats.mPassContribution; 791 791 792 792 // termination criterium … … 964 964 } 965 965 966 /*967 void GvsPreprocessor::ComputeRenderError()968 {969 cout << "computing gvs render error" << endl;970 vector<ViewCellPoints *> *vcPoints = mViewCellsManager->GetViewCellPoints();971 972 vector<ViewCellPoints *>::const_iterator vit, vit_end = vcPoints->end();973 974 for (vit = vcPoints->begin(); vit != vit_end; ++ vit)975 {976 ViewCellPoints *vcPoints = *vit;977 978 renderer->EvalPvsStat(vcPoints->second);979 980 mStats <<981 "#ViewCell\n" << vcPoints->first->GetId() << endl <<982 "#AvgPvsRenderError\n" <<renderer->mPvsStat.GetAvgError() << endl <<983 "#AvgPixelError\n" << renderer->GetAvgPixelError() << endl <<984 "#MaxPixelError\n" << renderer->GetMaxPixelError() << endl <<985 "#MaxPvsRenderError\n" << renderer->mPvsStat.GetMaxError() << endl <<986 "#ErrorFreeFrames\n" << renderer->mPvsStat.GetErrorFreeFrames() << endl <<987 "#AvgRenderPvs\n" << renderer->mPvsStat.GetAvgPvs() << endl;988 }989 }990 */991 966 992 967 void GvsPreprocessor::UpdatePvs(ViewCell *currentViewCell) … … 1300 1275 mGvsStats.mTotalTime += mGvsStats.mTimePerViewCell; 1301 1276 1302 //lastTime = currentTime;1303 1304 1277 mGvsStats.Stop(); 1305 1278 mGvsStats.Print(mGvsStatsStream);
Note: See TracChangeset
for help on using the changeset viewer.