Page 1 of 1
How to get rid of seams visible on terrain mesh?
Posted: Sat Apr 04, 2020 9:16 pm
by majidemo
I have a Noesis script that unpack terrain data. It's all sorted out except that there are visible tile seams.
The data is actually just a vertex cloud and no face information so I had to generate it myself. I'm not sure if this is the right way of doing it. It seems that there might be duplicates.
Here is my code for reference:
Since in the source game the terrain doesn't have seems so I'm guessing it's not the UV/texture and normals. Most like an issue with how I generated the faces. But I just can't figure it out.
Re: How to get rid of seams visible on terrain mesh?
Posted: Sat Apr 04, 2020 10:37 pm
by majidemo
I've also tried to look into texture WrapMode and set it to
NTEXFLAG_WRAP_CLAMP,
NTEXFLAG_WANTSEAMLESS but both didn't make a difference.
Here is the terrain without texture:

Re: How to get rid of seams visible on terrain mesh?
Posted: Mon Apr 06, 2020 4:31 am
by Bigchillghost
majidemo wrote: ↑Sat Apr 04, 2020 9:16 pm
Here is my code for reference:
...
Since in the source game the terrain doesn't have seems so I'm guessing it's not the UV/texture and normals. Most like an issue with how I generated the faces. But I just can't figure it out.
It'd be easier if you just attach the code instead of an image.
Your problem lies on the way that you handled the data as discrete tiles rather than an integrated whole. So the "seams" are the physical edges of each tile and you can't get rid of that.
It's kinda confusing of the data structure since in your code you got a loop to traverse (width * height) tiles but each tile uses 10 vertices? Might just consider using a 2x width and height.
Re: How to get rid of seams visible on terrain mesh?
Posted: Mon Apr 06, 2020 7:51 pm
by PredatorCZ
Hello, from what I've seen, it looks like UV channel is leaking due low res texture. I don't know how textures looks like, so it's just an assumption.
From the screen without textures, it looks like issue with normals, I'm not a Noesis expert, but I had similar issue when model had implicit (smoothing groups) normals instead of explicit ones (but that was for 3ds max, i'm not sure, if noesis uses smoothing groups, but I believe it does), thus those nasty seams.
Re: How to get rid of seams visible on terrain mesh?
Posted: Wed Apr 08, 2020 1:40 pm
by majidemo
Thank you for the response guys. But what fixed it was actually just changing the texture wrap to clamp. It didn't work on Noesis but on another 3d program it did. So all is good.