You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking at using the new auto lod system to set up terrain chunks, but the decimate algorithm used doesn't seem to favor keeping edges intact, so seams quickly become very visible. Would it be possible to add an option to favor conserving edges?
EDIT: Note I exaggerate the issue in this screenshot by lowering the lod bias, but the issue is there with lod bias 1 as well.
Let me know if this should be logged as a proposal instead, then I can close this and make a proposal instead.
The patch I applied for my case makes it so open edges are never simplified.
The way I done it is a "free" way (doesn't cost anything) but has the drawback of not having the option to switch to the original logic at runtime. I did it this way because I do this at runtime, and a lot.
I think if we want that approach to be an option, a bit more work needs to be done, in such a way zeux would consider it good enough for it to be part of the official library. I think it's not that hard to make it work and would be enough for Godot Editor, but maybe harder to decide what's best to preserve good performance. It's about changing a lookup table so maybe it could be passed around, or run a loop to override vertices inside a condition like zeux proposed?
A better option would be to change the simplifying algorithm such that it would be able to simplify edges in such a way they would still match, but that sounds a lot more difficult because each side might have the same edge vertices but completely different triangle configurations (or maybe it's simple but I dont have enough insight to be sure).
Godot version
4.0.alpha4
System information
Windows 10, GLES3, GTX 980Ti
Issue description
I've been looking at using the new auto lod system to set up terrain chunks, but the decimate algorithm used doesn't seem to favor keeping edges intact, so seams quickly become very visible. Would it be possible to add an option to favor conserving edges?
EDIT: Note I exaggerate the issue in this screenshot by lowering the lod bias, but the issue is there with lod bias 1 as well.
Let me know if this should be logged as a proposal instead, then I can close this and make a proposal instead.
Steps to reproduce
Try out the attached example project
Minimal reproduction project
terrain_test2.zip
The text was updated successfully, but these errors were encountered: