Ignore:
Timestamp:
02/06/06 23:53:19 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp

    r600 r601  
    5555 
    5656 
    57 /**********************************************************************/ 
    58 /*                  class VspBspTree implementation                   */ 
    59 /**********************************************************************/ 
     57/******************************************************************************/ 
     58/*                       class VspBspTree implementation                      */ 
     59/******************************************************************************/ 
    6060 
    6161 
     
    413413        const float prop = mUseAreaForPvs ? geom->GetArea() : geom->GetVolume(); 
    414414 
     415        Debug << "herevol: " << geom->GetVolume() << endl; 
     416        Debug << "herevol:: " << mBox.GetVolume() << endl; 
     417 
    415418        VspBspTraversalData tData(mRoot, 
    416419                                                          new PolygonContainer(polys), 
     
    431434        mTotalCost = tData.GetCost() / mBox.GetVolume(); 
    432435 
     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 
    433444        Debug << "total cost: " << mTotalCost << endl; 
    434         mSplits = 0; 
     445         
    435446         
    436447        mBspStats.Start(); 
     
    664675         
    665676        // if geometry was not already computed 
    666         if (!frontData.mGeometry && !backData.mGeometry) 
     677        if (1)//!frontData.mGeometry && !backData.mGeometry) 
    667678        { 
    668679                frontData.mGeometry = new BspNodeGeometry(); 
     
    682693                else 
    683694                { 
     695                        //Debug << "here2" << endl; 
    684696                        frontData.mProbability = frontData.mGeometry->GetVolume(); 
    685                         backData.mProbability = backData.mGeometry->GetVolume(); 
     697                        backData.mProbability = tData.mProbability - frontData.mProbability; 
     698                        //backData.mProbability = backData.mGeometry->GetVolume(); 
    686699                } 
    687700        } 
     
    13281341                { 
    13291342                        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;*/ 
    13311350                } 
    13321351                else 
Note: See TracChangeset for help on using the changeset viewer.