Ignore:
Timestamp:
10/30/06 12:09:35 (18 years ago)
Author:
mattausch
Message:

changed render cost evaluation

File:
1 edited

Legend:

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

    r1696 r1698  
    16381638        if (!obj) return; 
    16391639 
    1640         //const float renderCost = mViewCellsManager->SimpleRay &raynderCost(obj); 
    1641         const int renderCost = 1; 
     1640        const float renderCost = mViewCellsManager->EvalRenderCost(obj); 
    16421641 
    16431642        // object in no pvs => new 
     
    16501649        // the object belongs to no pvs in this case? 
    16511650        //if (cf == Ray::COINCIDENT) return; 
    1652  
    16531651        if (cf >= 0) // front pvs 
    16541652        { 
     
    16891687{ 
    16901688        if (!leaf) return; 
    1691         const int renderCost = countEntries ? 1 : (int)leaf->mObjects.size(); 
     1689 
     1690        const float renderCost = countEntries ? 1 :  
     1691                mHierarchyManager->mBvHierarchy->EvalAbsCost(leaf->mObjects); 
    16921692         
    16931693        // leaf in no pvs => new 
     
    17271727        } 
    17281728} 
    1729  
    17301729 
    17311730 
     
    18011800                        // test if this leaf is in valid view space 
    18021801                        VspLeaf *leaf = dynamic_cast<VspLeaf *>(node); 
     1802 
    18031803                        if (leaf->TreeValid() &&  
    18041804                                (!onlyUnmailed || !leaf->Mailed()) && 
Note: See TracChangeset for help on using the changeset viewer.