All-
Just curious from those that are using recast/detour - is it possible to load ALL of azeroth into memory? Basically so that I can query a super long route? Right now I'm unable to as I'm limited based on this:
Code:
// Init ID generator values.
m_tileBits = dtIlog2(dtNextPow2((unsigned int)params->maxTiles));
m_polyBits = dtIlog2(dtNextPow2((unsigned int)params->maxPolys));
// Only allow 31 salt bits, since the salt mask is calculated using 32bit uint and it will overflow.
m_saltBits = dtMin((unsigned int)31, 32 - m_tileBits - m_polyBits);
if (m_saltBits < 10)
return DT_FAILURE | DT_INVALID_PARAM;
I know that I will need my max polys to be much larger than the below.
Code:
_navMesh = dtAllocNavMesh();
dtNavMeshParams *params = new dtNavMeshParams();
params->tileWidth = GRID_SIZE;
params->tileHeight = GRID_SIZE;
params->orig[0] = -(32*GRID_SIZE);
params->orig[1] = -(32*GRID_SIZE);
params->orig[2] = -(32*GRID_SIZE);
params->maxTiles = 850;
params->maxPolys = 1000;
Thoughts?
~ Tanaris