-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation2D (Godot 3.5 beta2) - Error: "sync: Attempted to merge a navigation mesh triangle edge with another already-merged edge", not present in Godot 3.4.3 #59182
Comments
3.5 Beta 3 in 3D
At the same time, I use the basic NavigationMeshInstance without programming, I set everything up in the editor. |
Well, this won't be fixed too soon I presume as there are some fundamental problems in the implementation/recast library. |
SkanerSoft can try this. I can´t increase detail/sample_max_error because this is a property of NavigationMesh, not available in Navigation2D, NavigationPolygonInstance or NavigationPolygon... |
Now that I read it a second time I can see that this issue is regarding 2D. In that case, having the error as OP mentioned may only be due to polygon points being too dense in relation to In general, for the purpose of joining separate navigation polygons, a grid of cells of size The problem reported by OP happens basically if two points representing the polygon edge are being mapped to the same point i.e. they are so close that they are being mapped to the same cell due to the So to sum up, OP should check if some points are not overlapping. Removing them should make the errors disappear. If I'm right and some points in the polygon are overlapping, then maybe we can introduce some mechanism that would filter duplicated points so that polygon like |
Need to also backport the more recent Navigation changes from Godot 4.0 that included a lot of edge merging fixes from groud. I can hardly get any navigation merged in Godot 3.5 that works perfectly in Godot 4.0. |
Fixed by #61996. |
Is this fix in 3.5-RC4? If it should be, then i still have this problem in RC4. |
Godot version
3.5 beta 2
System information
Windows 7 and 10, GLES2 and GLES 3
Issue description
Bug submited in #57254 and supposedly fixed by #56879 and #56600 in still present in Navigation2D. Error spams in console, but NavigationPolygon is created and working. Error spams with polygons with hundreds of points, close to each other, when triangulating the big polygon by code. I attach reproduction project.
Error message:
This is not a breaking bug per se, but a inconvenient spam in console message.
Other significant change since new navigation system is that you can´t use Navigation2D in the _ready() function when you are building polygons from code, and you have to workaround with the first frame in _physics_process to handle "Navigation2D.get_simple_path()". I made the changes in my project because i want to migrate to 3.5, but is a breaking change that should be documented.
Steps to reproduce
Run attached project in 3.4.3 and 3.5 beta 2 and see output console.
Minimal reproduction project
NavigationMeshBug.zip
The text was updated successfully, but these errors were encountered: