Changeset 601 for trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
- Timestamp:
- 02/06/06 23:53:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r600 r601 55 55 56 56 57 /********************************************************************** /58 /* class VspBspTree implementation*/59 /********************************************************************** /57 /******************************************************************************/ 58 /* class VspBspTree implementation */ 59 /******************************************************************************/ 60 60 61 61 … … 413 413 const float prop = mUseAreaForPvs ? geom->GetArea() : geom->GetVolume(); 414 414 415 Debug << "herevol: " << geom->GetVolume() << endl; 416 Debug << "herevol:: " << mBox.GetVolume() << endl; 417 415 418 VspBspTraversalData tData(mRoot, 416 419 new PolygonContainer(polys), … … 431 434 mTotalCost = tData.GetCost() / mBox.GetVolume(); 432 435 436 Debug << "**volume** " << mBox.GetVolume() << endl; 437 438 mSplits = 0; 439 mSubdivisionStats 440 << "#Nodes\n" << ++ mSplits << endl 441 << "#RenderCostDecrease\n0\n" << endl 442 << "#TotalRenderCost\n" << mTotalCost << endl; 443 433 444 Debug << "total cost: " << mTotalCost << endl; 434 mSplits = 0;445 435 446 436 447 mBspStats.Start(); … … 664 675 665 676 // if geometry was not already computed 666 if ( !frontData.mGeometry && !backData.mGeometry)677 if (1)//!frontData.mGeometry && !backData.mGeometry) 667 678 { 668 679 frontData.mGeometry = new BspNodeGeometry(); … … 682 693 else 683 694 { 695 //Debug << "here2" << endl; 684 696 frontData.mProbability = frontData.mGeometry->GetVolume(); 685 backData.mProbability = backData.mGeometry->GetVolume(); 697 backData.mProbability = tData.mProbability - frontData.mProbability; 698 //backData.mProbability = backData.mGeometry->GetVolume(); 686 699 } 687 700 } … … 1328 1341 { 1329 1342 pFront = geomFront.GetVolume(); 1330 pBack = pOverall - geomFront.GetVolume(); 1343 //pBack = pOverall - geomFront.GetVolume(); 1344 pBack = geomBack.GetVolume(); 1345 1346 /*Debug << "volume: " << data.mGeometry->GetVolume() << endl; 1347 Debug << "volum1: " << geomFront.GetVolume() << endl; 1348 Debug << "volum2: " << geomBack.GetVolume() << endl; 1349 Debug << "sum_: " << geomFront.GetVolume() + geomBack.GetVolume() << endl;*/ 1331 1350 } 1332 1351 else
Note: See TracChangeset
for help on using the changeset viewer.