Ignore:
Timestamp:
10/23/06 15:37:18 (18 years ago)
Author:
mattausch
Message:

working on render cost evaluation framework for interleaved splits

File:
1 edited

Legend:

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

    r1665 r1666  
    828828                //cout << "here4 rc: " << factor * renderCostDecr << " pvs: " << (1.0f - factor) * splitCandidate.GetPvsEntriesIncr() << endl; 
    829829                //const float priority = factor * renderCostDecr - (1.0f - factor) * splitCandidate.GetPvsEntriesIncr(); 
    830                 priority /= ((float)splitCandidate.GetPvsEntriesIncr() +  + 1.0f); 
     830                priority /= ((float)splitCandidate.GetPvsEntriesIncr() + mHierarchyManager->mMemoryConst); 
    831831        } 
    832832         
     
    853853                //cout << "here2 rc: " << factor * renderCostDecr << " pvs: " << (1.0f - factor) * splitCandidate.GetPvsEntriesIncr() << endl;  
    854854                //const float priority = factor * renderCostDecr - (1.0f - factor) * splitCandidate.GetPvsEntriesIncr(); 
    855                 priority /= ((float)splitCandidate.GetPvsEntriesIncr() + 1.0f); 
     855                priority /= ((float)splitCandidate.GetPvsEntriesIncr() + mHierarchyManager->mMemoryConst); 
    856856        } 
    857857 
Note: See TracChangeset for help on using the changeset viewer.