Changeset 2023 for GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
- Timestamp:
- 01/23/07 04:39:45 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r2020 r2023 175 175 176 176 InitTiming(); 177 Debug.open("debug.log"); 178 177 179 #if 0 178 Debug.open("debug.log");179 180 180 cout<<"Allocating 1.5GB..."<<endl; 181 181 … … 192 192 } 193 193 #endif 194 194 195 Environment::GetSingleton()->Parse(argc, argv, USE_EXE_PATH); 195 196 MeshKdTree::ParseEnvironment(); … … 205 206 exit(1); 206 207 } 208 207 209 208 210 Environment::GetSingleton()->GetStringValue("Scene.filename", buff); … … 283 285 } 284 286 285 const string viewCellsFile = ReplaceSuffix(filename, ".obj", ".vc"); 286 const int numViewCells = 2; 287 const int numViewPoints = 2; 287 string viewCellsFile = ReplaceSuffix(filename, ".obj", ".vc"); 288 viewCellsFile = ReplaceSuffix(filename, ".dat", ".vc"); 289 290 const int numViewCells = 5; 291 const int numViewPoints = 20; 288 292 289 293 bool useHwGlobalLines; … … 361 365 Environment::GetSingleton()->GetIntValue("Preprocessor.pvsRenderErrorSamples", frames); 362 366 363 if ( frames)367 if (1)//frames) 364 368 { 365 369 // NOTE: render texture should be power of 2 and square … … 373 377 } 374 378 375 /*vector<ViewCellPoints *> myViewCells;379 vector<ViewCellPoints *> myViewCells; 376 380 377 381 preprocessor->mViewCellsManager->GenerateRandomViewCells(myViewCells, numViewCells, numViewPoints); … … 381 385 //preprocessor->mViewCellsManager->ImportRandomViewCells(viewCellsFile, myViewCells); 382 386 CLEAR_CONTAINER(myViewCells); 383 */ 387 388 //preprocessor->renderer->EvalPvsStat(); 389 384 390 qApp->exec(); 385 391 #endif
Note: See TracChangeset
for help on using the changeset viewer.