Ignore:
Timestamp:
11/01/06 23:20:53 (18 years ago)
Author:
mattausch
Message:

worked on full render cost evaluation
warning: some change sin render cost evaluation for pvs which could have bugs

File:
1 edited

Legend:

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

    r1632 r1707  
    829829                // update scalar pvs size lookup 
    830830                ObjectPvs &pvs = viewCell->GetPvs(); 
    831                 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.CountObjectsInPvs(), pvs.GetSize()); 
     831                mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.EvalPvsCost(), pvs.GetSize()); 
    832832         
    833833 
     
    974974                ObjectPvs &pvs = viewCell->GetPvs(); 
    975975                mViewCellsManager->UpdateScalarPvsSize(viewCell,  
    976                                                                                            pvs.CountObjectsInPvs(),  
     976                                                                                           pvs.EvalPvsCost(),  
    977977                                                                                           pvs.GetSize()); 
    978978 
     
    23912391                        if (leaf->TreeValid() &&  
    23922392                                (!onlyUnmailed || !leaf->Mailed()) && 
    2393                                 ((maxPvsSize < 0) || (leaf->GetViewCell()->GetPvs().CountObjectsInPvs() <= maxPvsSize))) 
     2393                                ((maxPvsSize < 0) || (leaf->GetViewCell()->GetPvs().EvalPvsCost() <= maxPvsSize))) 
    23942394                        { 
    23952395                                leaves.push_back(leaf); 
     
    24682468                  << "PVS: " << data.mPvs << " (min: " << mTermMinPvs << "), " 
    24692469                  << "#rays: " << (int)data.mRays->size() << " (max: " << mTermMinRays << "), " 
    2470                   << "#pvs: " << leaf->GetViewCell()->GetPvs().CountObjectsInPvs() << "), " 
     2470                  << "#pvs: " << leaf->GetViewCell()->GetPvs().EvalPvsCost() << "), " 
    24712471                  << "#avg ray contrib (pvs): " << (float)data.mPvs / (float)data.mRays->size() << endl; 
    24722472#endif 
Note: See TracChangeset for help on using the changeset viewer.