Ignore:
Timestamp:
10/27/06 10:39:58 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

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

    r1686 r1687  
    415415        backData.mMaxCostMisses = sc.GetMaxCostMisses(); 
    416416         
    417         //node->mRenderCostDecr = sc.GetRenderCostDecrease(); 
    418         //node->mPvsEntriesIncr = sc.GetPvsEntriesIncr(); 
    419  
     417        // set the time stamp so the order of traversal can be reconstructed 
     418        node->mTimeStamp = mHierarchyManager->mTimeStamp ++; 
     419                 
    420420        // assign the objects in sorted order 
    421421        if (mUseGlobalSorting) 
     
    449449                currentNode = SubdivideNode(*sc, tFrontData, tBackData); 
    450450         
    451                 // set the time stamp so the order of traversal can be reconstructed 
    452                 currentNode->mTimeStamp = mHierarchyManager->mTimeStamp ++; 
    453                 //currentNode->mRenderCostDecr = sc.GetRenderCostDecrease(); 
    454                 //currentNode->mPvsEntriesIncr = sc.GetPvsEntriesIncr(); 
    455  
    456451                // decrease the weighted average cost of the subdivisoin 
    457452                mTotalCost -= sc->GetRenderCostDecrease(); 
     
    899894                        // (as we are not sampling volumetric visibility, 
    900895                        // this should provide better heuristics 
    901                         const float area = //obox.SurfaceArea(); 
     896                        const float area = obj->GetArea();//obox.SurfaceArea(); 
    902897 
    903898                        al += area; 
     
    21412136                currentNode = SubdivideNode(*sc, tFrontData, tBackData); 
    21422137         
    2143                 currentNode->mRenderCostDecr = oldNode->mRenderCostDecr + sc->GetRenderCostDecrease(); 
    2144                 currentNode->mPvsEntriesIncr = oldNode->mPvsEntriesIncr + sc->GetPvsEntriesIncr(); 
    2145  
     2138                oldNode->mRenderCostDecr += sc->GetRenderCostDecrease(); 
     2139                oldNode->mPvsEntriesIncr += sc->GetPvsEntriesIncr(); 
     2140cout << "here5" << endl; 
    21462141                /////////////////////////// 
    21472142                //-- push the new split candidates on the queue 
     
    21512146 
    21522147                frontCandidate->SetPriority((float)-oldInterior->GetFront()->mTimeStamp); 
    2153                 backCandidate->SetPriority((float)-oldInterior->GetFront()->mTimeStamp); 
     2148                backCandidate->SetPriority((float)-oldInterior->GetBack()->mTimeStamp); 
    21542149 
    21552150                frontCandidate->mEvaluationHack = oldInterior->GetFront(); 
Note: See TracChangeset for help on using the changeset viewer.