From 4e6621a1248911c1de657c42f9938efb7041d471 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Sun, 29 Mar 2009 12:38:01 +0000 Subject: [PATCH] - Removed multipass blur test --- Recast/Source/RecastContour.cpp | 2 +- Recast/Source/RecastRegion.cpp | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Recast/Source/RecastContour.cpp b/Recast/Source/RecastContour.cpp index 67112bb..2e3c511 100644 --- a/Recast/Source/RecastContour.cpp +++ b/Recast/Source/RecastContour.cpp @@ -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) diff --git a/Recast/Source/RecastRegion.cpp b/Recast/Source/RecastRegion.cpp index 9197283..2409ff6 100644 --- a/Recast/Source/RecastRegion.cpp +++ b/Recast/Source/RecastRegion.cpp @@ -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) - rcSwap(src, dst); - } + if (boxBlur(chf, 2, src, dst) != src) + rcSwap(src, dst); // Store distance. for (int i = 0; i < chf.spanCount; ++i)