Changeset 1636 for GTP/trunk/Lib/Vis
- Timestamp:
- 10/18/06 09:56:53 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.cpp
r1635 r1636 517 517 518 518 #if 1 519 // take render cost of node into account520 // otherwise danger of being stuck in a local minimum!!521 const float factor = mRenderCostDecreaseWeight;522 519 float priority; 523 520 … … 539 536 else 540 537 { 541 priority = factor * renderCostDecr + (1.0f - factor) * oldRenderCost; 538 // take render cost of node into account 539 // otherwise danger of being stuck in a local minimum!! 540 priority = mRenderCostDecreaseWeight * renderCostDecr + 541 (1.0f - mRenderCostDecreaseWeight) * oldRenderCost; 542 542 } 543 543 -
GTP/trunk/Lib/Vis/Preprocessing/src/HierarchyManager.cpp
r1635 r1636 935 935 // subdivide view space with respect to the objects 936 936 937 ResetViewSpaceSubdivision(sampleRays, objects); 937 if (!ViewSpaceSubdivisionConstructed()) 938 { 939 mTQueue.Push(vspVc); 940 941 // view space subdivision constructed 942 mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType; 943 } 944 else 945 { 946 ResetViewSpaceSubdivision(sampleRays, objects); 947 } 938 948 939 949 // process view space candidates 940 950 RunConstruction(false); 941 951 942 // view space subdivision constructed943 mViewSpaceSubdivisionType = mSavedViewSpaceSubdivisionType;944 945 952 cout << "iteration " << i << " of " << limit << " finished" << endl; 946 953
Note: See TracChangeset
for help on using the changeset viewer.