Changeset 1749 for GTP/trunk/Lib/Vis
- Timestamp:
- 11/14/06 15:33:59 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1744 r1749 296 296 mMemoryConst = (float)sizeof(ObjectContainer); 297 297 298 /*cout << "bvh memcost: " << mMemoryConst << endl;299 cout << "triangle: " << sizeof(TriangleIntersectable) << endl;300 cout << "triangle: " << sizeof(Intersectable) << endl;301 cout << "triangle: " << sizeof(ObjectContainer) << endl;302 cout << "triangle: " << sizeof(float) << endl;303 cout << "triangle: " << sizeof(int) << endl;304 */305 298 mUseBboxAreaForSah = true; 306 299 … … 328 321 Debug << "minimal rays for visibility: " << mMinRaysForVisibility << endl; 329 322 Debug << "bvh mem const: " << mMemoryConst << endl; 330 cout << "here10 " << mRenderCostDecreaseWeight << endl; 323 331 324 Debug << endl; 332 325 } … … 611 604 } 612 605 613 //splitCandidate.SetOldCost(oldRenderCost); 606 // hack: don't allow empty splits to be taken 607 if (splitCandidate.mFrontObjects.empty() || splitCandidate.mBackObjects.empty()) 608 priority = 0; 614 609 // compute global decrease in render cost 615 610 splitCandidate.SetPriority(priority); -
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1745 r1749 1897 1897 if (useFilter) 1898 1898 { 1899 ViewCellLeaf dummy; 1900 dummy.SetPvs(pvs); 1899 1901 ObjectPvs filteredPvs; 1900 mVspTree->mViewCellsManager->ApplyFilter2( vc, false, 1.0f, filteredPvs);1902 mVspTree->mViewCellsManager->ApplyFilter2(&dummy, false, 1.0f, filteredPvs); 1901 1903 ComputePvs(filteredPvs, rc, pvsEntries); 1902 1904 } … … 1904 1906 { 1905 1907 ComputePvs(pvs, rc, pvsEntries); 1906 } 1908 } 1907 1909 1908 1910 rc *= vc->GetVolume(); -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r1743 r1749 153 153 154 154 mVisibilityFileName = buffer; 155 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilityFilter", mApplyVisibilityFilter 155 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilityFilter", mApplyVisibilityFilter); 156 156 Environment::GetSingleton()->GetBoolValue("Preprocessor.applyVisibilitySpatialFilter", 157 157 mApplyVisibilitySpatialFilter ); -
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingPreprocessor.cpp
r1743 r1749 121 121 122 122 if (vssRays.size()!=32) { 123 cerr<<"wrong number of rays "<< vssRays.size()<<endl;123 cerr<<"wrong number of rays "<<(int)vssRays.size()<<endl; 124 124 exit(1); 125 125 } -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp
r1745 r1749 2367 2367 while (it.HasMoreEntries()) 2368 2368 { 2369 ObjectPvsEntry entry ;2369 ObjectPvsEntry entry = it.Next(); 2370 2370 Intersectable *obj = entry.mObject; 2371 2371 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1745 r1749 580 580 disposeRays(postProcessSamples, outRays); 581 581 582 582 583 // write view cells to disc 584 if (mExportViewCells) 585 { 586 char filename[100]; 587 Environment::GetSingleton()->GetStringValue("ViewCells.filename", filename); 588 ExportViewCells(filename, mExportPvs, mPreprocessor->mObjects); 589 } 590 583 591 //////////////// 584 592 //-- Evaluation of the resulting view cell partition. … … 589 597 EvalViewCellPartition(); 590 598 } 591 592 // write view cells to disc 593 if (1 && mExportViewCells) 594 { 595 char filename[100]; 596 Environment::GetSingleton()->GetStringValue("ViewCells.filename", filename); 597 ExportViewCells(filename, mExportPvs, mPreprocessor->mObjects); 598 } 599 599 600 600 ///////////////// 601 601 //-- Finally, we do some visualization … … 6063 6063 Debug << "statistics computed in " << timeDiff * 1e-3 << " secs" << endl; 6064 6064 6065 #if 06065 #if 1 6066 6066 //////////////////////////// 6067 6067 // filtered stats -
GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp
r1744 r1749 504 504 505 505 Debug << "vsp mem const: " << mMemoryConst << endl; 506 cout << "here11 " << mRenderCostDecreaseWeight << endl; 506 507 507 Debug << endl; 508 508 }
Note: See TracChangeset
for help on using the changeset viewer.