I create a town in unity, and my building texture blinks and I don’t know why. It looks like z fighting but it can’t be, what else can it be?
I tried to adjust near values of camera, didn’t help.
Here is a video, the quality isen’t very good, but you can see the blniks.
Is there anyone who can help please?
I watched your video and don’t see the texture blinking you’re referring to.
If you look at the building there is sort of a light that’s moving, that looks like a blink.
You’ve got lots of buildings. Which one?
Pretty much all of them. Also in the crossroad sidewalks, I see that too. I just can get rid of that no matter what.
I watched the video 5 times and don’t see any “blinking”.
I see a lot of aliasing. Is that what you’re referring to?
You might be referring to the flickering of thin lines on the buildings and textures? Enable mipmaps, trilinear filtering, and anisotropic filtering for those textures and max out the setting.
I don’t know if the blinking is aliasing, but I tried to disable anti aliasing, it didn’t help.
I did what you said, heres a SS of the settings of the building textures:
By puting aniso to max, the quality increased, but the blinks are still there when the building is far, here a video:
https://www.youtube.com/watch?v=_3kW2HZNcI0
Especially in the end in this part:
There are blinks.
I see two things
-
It looks like the UVs are bleeding into other areas in the texture due to using mipmaps because there isn’t enough padding and/or the texture wrap mode is set to “clamp” instead of “repeat”. Adjust the UVs so there’s enough padding in in the texture. Change the texture wrap mode to “repeat” for tiled textures. Texturing Pixel Bleeding, UV Spacing & Texture Padding - Project Reality Forums
This is evident by seeing the white lines on the corners of the buildings. -
The other issue is aliasing. In deferred rendering, this is resolved by using the Anti-Aliasing post effect.
https://docs.unity3d.com/455/Documentation/Manual/script-AntialiasingAsPostEffect.html
.
The aliasing on the modeled geometry can’t be fixed with textures, perhaps antialiasing as @ArachnidAnimal suggests. If still a problem you might want to consider remodeling that building.
I will try it, thank you both!