Closed GoogleCodeExporter closed 9 years ago
When building single mesh borderSize should be zero. In the sample I memset the
whole structure to 0 before setting the values:
// Init build configuration from GUI
memset(&m_cfg, 0, sizeof(m_cfg));
m_cfg.cs = m_cellSize;
....
Original comment by memono...@gmail.com
on 14 Oct 2010 at 12:53
As for pt 2. what does rcCalcGridSize() return?
Original comment by memono...@gmail.com
on 14 Oct 2010 at 12:55
Thank you for your answer. I can confirm that I did not set the border value to
zero. I´ve overlooked this detail unfortunately.
Changing the border value to zero also stops the crashes mentioned in (2).
Using the initial value (m_cfg.walkableRadius + 3) crashed.
rcCalcGridSize returns 3 3 for width and height (Min: -0.5 -0.5 -0.5, Max: 0.5
0.5 0.5, m_cfg.cs: 0.3f, m_cfg.ch: 0.2f).
It seems that the crash occurs with small meshes and my initial border value
(m_cfg.walkableRadius + 3).
Original comment by xadhoom...@googlemail.com
on 14 Oct 2010 at 2:47
I made the border calculation more safe so they will not crash in your small
cube case either (R237).
The correct solution in your case was to initialize borderSize to 0.
Original comment by memono...@gmail.com
on 15 Oct 2010 at 7:10
I´m currently integrating Recast into Unity. Given the possiblity to select
any kind of meshes for recasting alongwith a (maybe inconsistent) set of
parameter configurations provided by the user interface its quite important
that Recast is able to handle these.
Thank you very much!
Mirko
Original comment by xadhoom...@googlemail.com
on 15 Oct 2010 at 7:24
Original issue reported on code.google.com by
xadhoom...@googlemail.com
on 14 Oct 2010 at 9:53