5
votes

My game have a tiled 2d map. This is a scene screenshot: enter image description here

I found when I move the camera vertically, there are strange white lines randomly appeared between randomly tiles, See: enter image description here

I don't know why....

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

PS: I uploaded this test scene at https://dl.dropbox.com/u/53858613/Web/Web.html , Hold the left mouse button , camera will move downwards, then you'll see white lines randomly.

4

4 Answers

2
votes

Change your materials shader to something more suited for 2D. Such as sprite/default.

I made a quick test project and changing the shader from "diffuse" to "sprite/default" solved the issue.

2
votes

What fixed it for me is setting the compression for my 2D spritesheet to point instead of bi-linear

0
votes

I do not see this issue on my machine with your example project. It seems just fine.

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

2) Make sure resolution options are not an issue.

3) I am not 100% sure but in the skybox the same happens with BLACK lines. Try and change the texture's texture mode to Clamp if possible. This might resolve the issue.

Hope this helps, -Smileynator

0
votes

According to this Tilemap tutorial by Brackeys, try turning off antialiasing under Edit>Project Settings>Quality>Anti Aliasing.