- Home /
Duplicate Question
Asking again: Large terrain navmesh generation strategy
I got 0 answers on this,by my opinion,very important question so I am trying once again:
I have a pretty large terrain 3x3 km .I need to set nav system for AI.When I generate navmesh for the whole terrain I am getting the error: maxVertices <65536 && maxIndices <65536*3 - which probably means that the vertex and index buffers can not contain more than those numbers of the attributes.Besides,the generated navmesh is so heavy that the scene hardly responds.So how can I maybe generate nav mesh on some parts of the terrain?Or smth else?Does Unity have any solution for this?
For those curious : I must have that size of terrain as my program must work with real world units. Thanks.
Answer by richyrich · Dec 15, 2014 at 08:46 PM
A little research on the matter suggests (judging by other unanswered questions) this is hack and workaround territory ;)
However:
So how can I maybe generate nav mesh on some parts of the terrain?
This suggests you have currently made your nav mesh a like for like replica of the original mesh - which would be the wrong approach. You need to research simplification and there are options to experiment with as described in the docs and elsewhere.
Follow this Question
Related Questions
NavMesh link with the terrain 1 Answer
Navmesh on Terrain cracked 0 Answers
Make unity NavMesh ignore terrain trees? 4 Answers
Nav mesh holes with terrain 1 Answer