YouGroove Posted February 13, 2015 Share Posted February 13, 2015 Hi, I was trying navmesh and AI and i fond that path calculation is based on vertex. The problem is withing open areas the squares polys of navmesh can be too big for some small to medium maps, and the character will take a long path to reach the player : http://www.leadwerks.com/werkspace/topic/11959-gotopoint-shorter-path/ Could it be possible to have a new option on navmesh generation to tell the size of the squares we want to be generated ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Olby Posted February 13, 2015 Share Posted February 13, 2015 Are those regular CSG brushes? I get the following result (3.4 beta): Edge length: 50, edge length: 2.0 Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
YouGroove Posted February 13, 2015 Author Share Posted February 13, 2015 Latest beta build for testing also, the edge lenght don't change the basic squares size. On your map you have only 4 big squares, your map is smaller than mine. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Olby Posted February 13, 2015 Share Posted February 13, 2015 Seem like there is something weird with your map. I increased the size but still get pretty neatly generated navmesh. Is there any reason why you would want to increase the size of the square polys? Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
Rick Posted February 13, 2015 Share Posted February 13, 2015 YouGroove, that looks like the old thing that was happening. I recall Josh fixing this so it looks more like Olby's pictures. You are sure you have updated your project to the most current version? If you have then post the project for Josh in a bug report. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted February 13, 2015 Author Share Posted February 13, 2015 If i use Navmesh edge lentght = 50 , i have similar results as Olby, he has cubes pattern also for the navmesh. Edge lenght don't change square polygon size, it just change how much vertex you will have around objects. The idea was be able to choose the size of the base squares generated. It's a suggestion only, having the character going somewhat far away and switching to simple forward move when the player is on the line of sight is a solution meanwhile. Quote Stop toying and make games 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.