Unity3D: weird 1 px white line between tiles on my 2D game

There is a tiled 2d card in my game. This is a screenshot of the scene: enter image description here

I found that when I move the camera vertically, random white lines randomly appear between random fragments, see enter image description here

I do not know why....

PS: This is a 2d pixel style game, so my texture filter mode is Point.

PS: I uploaded this test scene to https://dl.dropbox.com/u/53858613/Web/Web.html , holding the left mouse button, the camera will move down, then you will randomly draw white lines.

+5
source share
3 answers

Change your material shader to something more suitable for 2D. For example, sprite / default.

"diffuse" "sprite/default", .

+2

, 2D-

+1

I do not see this problem on my machine with your sample project. Everything seems to be in order.

1) Make sure that there is no white line in the actual image.

2) Make sure that resolution options are not a problem.

3) I am not 100% sure, but in skybox the same thing happens with BLACK lines. Try and change the texture texture mode to Clamp, if possible. This may solve the problem.

Hope this helps, -Smileynator

0
source

All Articles