AggrorJorn Posted August 28, 2013 Share Posted August 28, 2013 Is it possible with the current navmesh generation to be generated/altered while playing the game? Quote Link to comment Share on other sites More sharing options...
Rick Posted August 28, 2013 Share Posted August 28, 2013 Remember the videos of Josh moving cubes around and the AI being able to move around and on this cube? Is that what you mean? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 28, 2013 Author Share Posted August 28, 2013 Nice that you remembered that. I was wondering about this since I build my level while playing the game. This video indeed has dynamic namhesh generation in a game. Quote Link to comment Share on other sites More sharing options...
tournamentdan Posted August 29, 2013 Share Posted August 29, 2013 I think we are going to lose this feature. Navmesh generation may be slowing it down. Navmesh generation is presently completely dynamic, which is fine for small scenes but slow for larger ones. In order to accommodate larger worlds with terrain, navmeshes are going to be generated in the editor and saved, in a new dialog that will appear in the next update. This also provides extra control over a few parameters the routine uses. Not sure if we could have dynamic nav mesh zones so it could help speed up large terrain. Quote Link to comment Share on other sites More sharing options...
Admin Posted August 30, 2013 Share Posted August 30, 2013 In the future, a combination of static and dynamic data will be used, much like how the shadowmaps in Leadwerks 2 work, but for present we will rely on precalculated data generated in the editor or by a command. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 2, 2013 Author Share Posted September 2, 2013 I think for what I have the current navmesh will do its job except for when objects are placed in the scene. I can work around it I think. Quote Link to comment Share on other sites More sharing options...
beo6 Posted September 2, 2013 Share Posted September 2, 2013 maybe you can just call the method to generate a new navmesh when you finished placing your objects in the scene? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted September 3, 2013 Author Share Posted September 3, 2013 It depends a little on how much performance this is going to take. When placing a single object it would be a waste to recalculate the entire navmesh for everything. I also don't know how Recast handles this since it might only affect a small portion of the navmesh. Quote 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.