Changeset 1915


Ignore:
Timestamp:
12/20/06 15:58:22 (17 years ago)
Author:
mattausch
Message:

implemented pvs correction (debug version)

Location:
GTP/trunk/Lib/Vis/Preprocessing/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp

    r1913 r1915  
    758758 
    759759        const float beta = (1.0f - alpha) * (totalPvs - childPvs); 
     760#if 1 
     761        const float newPvs = childPvs + beta; 
     762#else 
     763        const float newPvs = alpha * childPvs + (1.0f - alpha) * totalPvs; 
     764#endif 
    760765 
    761766        cout << "alpha " << alpha << " beta: " << beta << " child: " << childPvs << " parent: " << totalPvs << endl; 
    762767         
    763         const float newPvs = childPvs + beta; 
    764  
    765768        if ((newPvs < childPvs - Limits::Small) || (newPvs > totalPvs + Limits::Small)) 
    766769                cout << "Error!! " << newPvs << endl; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspTree.cpp

    r1913 r1915  
    900900        const float correctedOldPvs = splitCandidate.mParentData.mCorrectedPvs * oldPvsRatio; 
    901901 
    902         cout <<"here102 "<< endl; 
    903         cout << "old pvs ratio: " << oldPvsRatio << endl; 
     902        cout <<"here102 old pvs ratio: " << oldPvsRatio << " " << splitCandidate.mParentData.mPvs << " " << oldPvsSize << endl; 
     903 
    904904        splitCandidate.mCorrectedFrontPvs =  
    905905                mHierarchyManager->EvalCorrectedPvs(fPvsSize,  
     
    911911                                                                                        correctedOldPvs,  
    912912                                                                                        splitCandidate.GetAvgRayContribution()); 
    913  
    914913         
    915914        cout << "vsp front entries " << fPvsSize << " corrected: " << splitCandidate.mCorrectedFrontPvs << endl; 
Note: See TracChangeset for help on using the changeset viewer.