Changeset 1687 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
- Timestamp:
- 10/27/06 10:39:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1686 r1687 415 415 backData.mMaxCostMisses = sc.GetMaxCostMisses(); 416 416 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 420 420 // assign the objects in sorted order 421 421 if (mUseGlobalSorting) … … 449 449 currentNode = SubdivideNode(*sc, tFrontData, tBackData); 450 450 451 // set the time stamp so the order of traversal can be reconstructed452 currentNode->mTimeStamp = mHierarchyManager->mTimeStamp ++;453 //currentNode->mRenderCostDecr = sc.GetRenderCostDecrease();454 //currentNode->mPvsEntriesIncr = sc.GetPvsEntriesIncr();455 456 451 // decrease the weighted average cost of the subdivisoin 457 452 mTotalCost -= sc->GetRenderCostDecrease(); … … 899 894 // (as we are not sampling volumetric visibility, 900 895 // this should provide better heuristics 901 const float area = //obox.SurfaceArea();896 const float area = obj->GetArea();//obox.SurfaceArea(); 902 897 903 898 al += area; … … 2141 2136 currentNode = SubdivideNode(*sc, tFrontData, tBackData); 2142 2137 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(); 2140 cout << "here5" << endl; 2146 2141 /////////////////////////// 2147 2142 //-- push the new split candidates on the queue … … 2151 2146 2152 2147 frontCandidate->SetPriority((float)-oldInterior->GetFront()->mTimeStamp); 2153 backCandidate->SetPriority((float)-oldInterior->Get Front()->mTimeStamp);2148 backCandidate->SetPriority((float)-oldInterior->GetBack()->mTimeStamp); 2154 2149 2155 2150 frontCandidate->mEvaluationHack = oldInterior->GetFront();
Note: See TracChangeset
for help on using the changeset viewer.