Andy90 Posted December 27, 2023 Share Posted December 27, 2023 Currently its not possible to create nav meshes wich are bigger then 8x8 cells. Quote Link to comment Share on other sites More sharing options...
Josh Posted December 27, 2023 Share Posted December 27, 2023 I see an error printing in the console, but I don't actually see any problem with the generated navmesh. Do you? navtest.zip Quote 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 More sharing options...
Andy90 Posted December 27, 2023 Author Share Posted December 27, 2023 Yeah, it will not work within the game it self. You can test it within the project i uploaded a few days ago. Even if you scale the coded version bigger then 8x8 it will not work anymore. Quote Link to comment Share on other sites More sharing options...
Josh Posted December 27, 2023 Share Posted December 27, 2023 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... Quote 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 More sharing options...
Andy90 Posted December 27, 2023 Author Share Posted December 27, 2023 well this sound not intended i dont think a nav mesh needs 64GB Memmory Quote Link to comment Share on other sites More sharing options...
Josh Posted December 27, 2023 Share Posted December 27, 2023 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; Quote 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 More sharing options...
Josh Posted December 27, 2023 Share Posted December 27, 2023 I have submitted an issue to Recast here: https://github.com/recastnavigation/recastnavigation/issues/679 Quote 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 More sharing options...
Solution Josh Posted December 27, 2023 Solution Share Posted December 27, 2023 In the process of explaining the problem I think I solved it. Update is incoming later today. Quote 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 More sharing options...
Recommended Posts
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.