Jump to content

Problemm with the creation for biger nav meshes


Andy90
 Share

Go to solution Solved by Josh,

Recommended Posts

I added some more debugging messages and whenever I go over 8x8 I get errors that say "operation ran out of memory". This occurs no matter what I set tile resolution to...

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

I think this is being caused by this strange calculation I needed for the creation parameters:

		//https://github.com/recastnavigation/recastnavigation/blob/ddaa361b0893ddc7602a3bd5c20ad2cfd0a8df7c/RecastDemo/Source/Sample_TileMesh.cpp#L254
		int tileBits = NavMesh::rcMin((int)NavMesh::ilog2(NavMesh::nextPow2(tw * th)), 14);
		if (tileBits > 14) tileBits = 14;
		int polyBits = 22 - tileBits;
		params.maxTiles = 1 << tileBits;
		params.maxPolys = 1 << polyBits;

 

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...