Closed GoogleCodeExporter closed 9 years ago
Also, I tried artificially tightening up the vertical bounds with no change. I
also
wanted to add that buildPolyDetail takes a couple minutes when it is doing this
nastiness.
Original comment by jswig...@gmail.com
on 8 Feb 2010 at 7:08
This is know problem which usually happens when you dont erode the mesh
boundaries
(that is cfg.walkableRadius=0). I can see that you have cfg.walkableRadius=4 in
your
settings, but looking at the screenshots the mesh does not look like eroded.
If you updated to the latest SVN code recently, you will need to add one
function
call to do the erosion, add this just after build regions:
// Erode the walkable area by agent radius.
if (!rcErodeArea(RC_WALKABLE_AREA, m_cfg.walkableRadius, *m_chf))
{
if (rcGetLog())
rcGetLog()->log(RC_LOG_ERROR, "buildNavigation: Could not erode.");
return false;
}
The real solution when using zero radius will follow later when I find good and
fast
solution to it.
2 minutes sounds long. How long does the other parts of the process take? Poly
detail
takes quite a bit of time when you have sharp features (stairs) in your map.
One way
to reduce the processing time would be to increase the sample distance
(cfg.detailSampleDist).
Original comment by memono...@gmail.com
on 8 Feb 2010 at 7:38
The whole process used to be effectively instant(in an older recast). I've
never had
to wait for it like this. This is a very small map too, this may be ridiculous
on a
full size map.
Adding the erode call after the rcBuildRegions still produced a crap detail
mesh. I
tried putting it after rcBuildCompactHeightfield as the samples appear to do
and it
appears to be better.
The speed appears to be significantly faster when the results aren't jacked up.
You're right though that I forgot to add the erode function.
Original comment by jswig...@gmail.com
on 8 Feb 2010 at 2:50
There are some code which tries to deal with the bad heights. I bet the slowdown
comes from the fact that the detail mesh tries to compensate for those bad
samples by
adding many extra vertices.
I will leave this issue medium priority. It is something I want to fix, but I
wish to
get the area features finished before I come back to this.
Original comment by memono...@gmail.com
on 8 Feb 2010 at 8:27
Should be fixed in R128.
Original comment by memono...@gmail.com
on 12 Feb 2010 at 2:42
Original issue reported on code.google.com by
jswig...@gmail.com
on 8 Feb 2010 at 7:04Attachments: