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/VspTree.cpp

    r1698 r1707  
    654654                // update scalar pvs size value 
    655655                ObjectPvs &pvs = viewCell->GetPvs(); 
    656                 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.CountObjectsInPvs(), pvs.GetSize()); 
     656                mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.EvalPvsCost(), pvs.GetSize()); 
    657657 
    658658                mVspStats.contributingSamples += conSamp; 
     
    768768                // update scalar pvs size value 
    769769                ObjectPvs &pvs = viewCell->GetPvs(); 
    770                 mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.CountObjectsInPvs(), pvs.GetSize()); 
     770                mViewCellsManager->UpdateScalarPvsSize(viewCell, pvs.EvalPvsCost(), pvs.GetSize()); 
    771771 
    772772                mVspStats.contributingSamples += conSamp; 
     
    18031803                        if (leaf->TreeValid() &&  
    18041804                                (!onlyUnmailed || !leaf->Mailed()) && 
    1805                                 ((maxPvsSize < 0) || (leaf->GetViewCell()->GetPvs().CountObjectsInPvs() <= maxPvsSize))) 
     1805                                ((maxPvsSize < 0) || (leaf->GetViewCell()->GetPvs().EvalPvsCost() <= maxPvsSize))) 
    18061806                        { 
    18071807                                leaves.push_back(leaf); 
     
    18801880                  << "PVS: " << data.mPvs << " (min: " << mTermMinPvs << "), " 
    18811881                  << "#rays: " << (int)data.mRays->size() << " (max: " << mTermMinRays << "), " 
    1882                   << "#pvs: " << leaf->GetViewCell()->GetPvs().CountObjectsInPvs() << "), " 
     1882                  << "#pvs: " << leaf->GetViewCell()->GetPvs().EvalPvsCost() << "), " 
    18831883                  << "#avg ray contrib (pvs): " << (float)data.mPvs / (float)data.mRays->size() << endl; 
    18841884#endif 
Note: See TracChangeset for help on using the changeset viewer.