Changeset 1581 for GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
- Timestamp:
- 10/07/06 22:54:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1570 r1581 428 428 if (mLoadViewCells) 429 429 { 430 431 432 433 434 435 436 430 Environment::GetSingleton()->GetStringValue("ViewCells.filename", buf); 431 cout << "loading view cells from " << buf << endl; 432 433 mViewCellsManager = ViewCellsManager::LoadViewCells(buf, &mObjects, true); 434 435 if (!mViewCellsManager) 436 return false; 437 437 } 438 438 else … … 488 488 489 489 mViewCellsManager->SetRenderer(mRenderSimulator); 490 490 491 491 if (mUseGlRenderer || mUseGlDebugger) 492 {492 { 493 493 // NOTE: render texture should be power of 2 and square 494 494 // renderer must be initialised 495 495 // $$matt 496 // renderer = new GlRendererBuffer(1024, 768, mSceneGraph, mViewCellsManager, mKdTree);496 // renderer = new GlRendererBuffer(1024, 768, mSceneGraph, mViewCellsManager, mKdTree); 497 497 // renderer->makeCurrent(); 498 498 499 } 500 499 } 500 501 mViewCellsManager->SetPreprocessor(this); 501 502 return true; 502 503 } … … 505 506 bool Preprocessor::ConstructViewCells() 506 507 { 507 508 509 510 511 512 513 514 508 // construct view cells using it's own set of samples 509 mViewCellsManager->Construct(this); 510 511 // visualizations and statistics 512 Debug << "finished view cells:" << endl; 513 mViewCellsManager->PrintStatistics(Debug); 514 515 return true; 515 516 } 516 517 … … 900 901 } 901 902 903 if (i % 10000 == 0) 904 cout<<"."; 905 902 906 #if DEBUB_RAYCAST 903 907 long t2 = GetTime(); 904 if (i % 10000 == 0)905 cout<<".";906 907 908 if (castDoubleRays) 908 909 cout << 2 * rays.size() / (1e3f * TimeDiff(t1, t2)) << "M rays/s" << endl;
Note: See TracChangeset
for help on using the changeset viewer.