Ignore:
Timestamp:
11/10/05 09:56:23 (19 years ago)
Author:
mattausch
Message:

fixed pvs criterium
fixed pvs bug in bsp view cells

Location:
trunk/VUT/GtpVisibilityPreprocessor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/scripts/default.env

    r400 r402  
    129129         
    130130        maxPolyCandidates 50 
    131         maxRayCandidates 0 
     131        maxRayCandidates 50 
    132132         
    133133        Termination { 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp

    r400 r402  
    14261426 
    14271427        if ((sSplitPlaneStrategy & PVS) && area && pvs) 
     1428        { 
    14281429                val += sPvsFactor * (frontPvs * pFront + (backPvs * pBack)) / 
    14291430                           (pOverall * (float)pvs * 2); 
    14301431 
     1432                // give penalty for unbalanced cell 
     1433                if (((pFront * 0.2) > pBack) || (pFront < (pBack * 0.2))) 
     1434                        val += 0.5; 
     1435        } 
    14311436/*      Debug << "totalpvs: " << pvs << " ptotal: " << pOverall 
    14321437                  << " frontpvs: " << frontPvs << " pFront: " << pFront  
Note: See TracChangeset for help on using the changeset viewer.