5Flipz
(Hunt)
May 13, 2023, 10:33pm
#1
Hello, so I have this problem where I move around and the textures start to glitch. How do I fix this? https://gyazo.com/d941c47e3aab32fadd6110fb95ad2cdb
Move the glitching part up higher. There might be better solutions, but this one’s the fastest.
1 Like
Hey!
You just witnessed Z-fighting . At some distance textured objects compete for being on top, respectively having higher Z-index (familiar from working with GUI order). They can overlap on any axis, but Z-index is a common term for stacking order, because Z-axis normally represents depth in 3D space.
The thinner the part is and the closer it is to the other part, the more quickly overlapping will become noticable. Then there’s also some floating point error.
You can take a look at older but still relevant posts for possible solutions, one of them being what Mathew said above.
The problem in a nutshell:
From my understanding, there really isn’t a way to “fix” this necessarily due to the way rendering 3D works. You have this problem with any game engine you use if you try to overlap objects on the same plane with the same orientation.
A simple fix is to offset the parts very slightly. Even adjusting it by 0.001 studs will probably fix it. (However, at far distances it might start z-fighting again for some reason.)
I’m experiencing a lot of z-fighting with a texture.
I have a grid texture on the green baseplate, and then I have thin gray parts on top of the baseplate. These parts are 0.2 in thickness and sitting right on top. Ideally, this should block the grid texture from being seen, but the video below shows that it still has a z-fighting issue.
Does anyone have an idea of what I can do? So far all I could do is increase the thickness of the gray parts, but I really want to avoid doing that for my cur…
So, I think many people are aware of the terrible z-fighting bug (that developers seem to ignore) that occurs on a textured part when you zoom the camera too much. There are countless suggestions to “Just make it thicker” and “Raise it more” but it doesn’t seem to be the reliable solution.
This only occurs on textured parts. The texture seems to overlap everything ~2studs above it.
Though, there are a lot of games that somehow workaround this issue. One that I managed to find is from “Youtube …
As I was building terrain using meshparts of the same mesh, I noticed that moving the camera farther away would cause Z-Fighting to occur, even with the same color and properties.
[image]
However, when the camera moves closer, the Z-Fighting is gone.
[image]
Not sure if this is a bug, but I just thought I’d report this here.
2 Likes