Page 1 of 1

Wrong texture displaying

Posted: Mon Apr 24, 2017 12:35 pm
by lenchis001
Hello, everyone. I have little scene with road mesh. As you can see, displaying is wrong (image texture has lines). Question: what is it and how can i remove it?

Thank you.

Image

Re: Wrong texture displaying

Posted: Mon Apr 24, 2017 1:06 pm
by CuteAlien
Looks like z-fighting to me. Likely you have 2 polygons very close together so they share the same depth-value (depth-buffer usually has only 8 bits so you get 256 different depth-values only). Raise one polygon slightly. A common trick used in games for roads is for example to add sidewalks - that makes it easier to hide that the road is raised above the landscape. You can also try to reduce z-fighting by using a closer near-plane (the depth-buffer resolutions depends on the ratio or distance between near and far-plane), but generally better to solve it by better geometry.