- Timestamp:
- 01/11/06 18:28:37 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.cpp
r508 r518 248 248 249 249 //-- parse view cells construction method 250 bool loadViewCells = false; 251 environment->GetBoolValue("ViewCells.loadFromFile", loadViewCells); 252 253 //-- load view cells from file if requested 254 if (loadViewCells) 255 { 256 char buff[100]; 257 environment->GetStringValue("ViewCells.filename", buff); 258 string vcFilename(buff); 259 mViewCellsManager->LoadViewCells(vcFilename, &mObjects); 260 } 261 262 250 environment->GetBoolValue("ViewCells.loadFromFile", mLoadViewCells); 251 252 263 253 if (mUseGlRenderer) 264 254 renderer = new GlRendererBuffer(1024, 768, mSceneGraph, mViewCellsManager); -
trunk/VUT/GtpVisibilityPreprocessor/src/Preprocessor.h
r508 r518 126 126 bool mUseGlRenderer; 127 127 128 bool mLoadViewCells; 129 128 130 protected: 129 131 -
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellsManager.cpp
r517 r518 100 100 void ViewCellsManager::ComputeSampleContributions(const VssRayContainer &rays) 101 101 { 102 Debug << "here2" << endl; 102 103 // view cells not yet constructed 103 104 if (!ViewCellsConstructed()) 104 105 return; 106 Debug << "here " << rays.size() << endl; 105 107 106 108 VssRayContainer::const_iterator it, it_end = rays.end(); … … 342 344 Ray hray(ray); 343 345 float tmin = 0, tmax = 1.0; 344 346 Debug << "here3" << endl; 345 347 //hray.Init(ray.GetOrigin(), ray.GetDir(), Ray::LINE_SEGMENT); 346 348 if (!GetSceneBbox().GetRaySegment(hray, tmin, tmax) || (tmin > tmax)) … … 353 355 termination, 354 356 viewcells); 355 //Debug << "constribution: " << (int)viewcells.size() << endl;357 Debug << "constribution: " << (int)viewcells.size() << endl; 356 358 // copy viewcells memory efficiently 357 359 const bool storeViewcells = false; -
trunk/VUT/GtpVisibilityPreprocessor/src/VssPreprocessor.cpp
r517 r518 401 401 mViewCellsManager->SetViewSpaceBox(mKdTree->GetBox()); 402 402 } 403 404 //-- load view cells from file if requested 405 if (mLoadViewCells) 406 { 407 char buff[100]; 408 environment->GetStringValue("ViewCells.filename", buff); 409 string vcFilename(buff); 410 mViewCellsManager->LoadViewCells(vcFilename, &mObjects); 411 } 412 413 403 414 VssTree *vssTree = NULL; 404 415 … … 497 508 ExportRays(filename, mVssRays, numExportRays); 498 509 } 510 511 /// compute view cell contribution of rays if view cells manager already constructed 512 mViewCellsManager->ComputeSampleContributions(mVssRays); 499 513 500 514 // construct view cells
Note: See TracChangeset
for help on using the changeset viewer.