- Removed multipass blur test

This commit is contained in:
Mikko Mononen 2009-03-29 12:38:01 +00:00
parent 2a1c3dd7e8
commit 4e6621a124
2 changed files with 3 additions and 7 deletions

View File

@ -602,7 +602,7 @@ bool rcBuildContours(rcCompactHeightfield& chf,
}
}
// Check and merge droplings.
// Check and merge droppings.
// Sometimes the previous algorithms can fail and create several countours
// per area. This pass will try to merge the holes into the main region.
for (int i = 0; i < cset.nconts; ++i)

View File

@ -888,12 +888,8 @@ bool rcBuildDistanceField(rcCompactHeightfield& chf)
rcTimeVal blurStartTime = rcGetPerformanceTimer();
// Blur
int blurThr[4] = { 2, 4, 8, 16 };
for (int i = 0; i < 4; ++i)
{
if (boxBlur(chf, blurThr[i], src, dst) != src)
if (boxBlur(chf, 2, src, dst) != src)
rcSwap(src, dst);
}
// Store distance.
for (int i = 0; i < chf.spanCount; ++i)