Weird Tilemap Lines

Hi!

I am working on a 2D game with a tilemap and these weitd lines appear.

I searched on the internet for solutions but none of them worked:

  • Disable anti-aliasing
  • Material with Pixel Grid on
  • Pixel Perfect Camera

5336832--538299--Capture2.PNG

I don’t know what to do!
Please Help!

Hi @roan05112008
“I searched on the internet for solutions but none of them worked…”

The most important thing would be to understand how 3D graphics works… maybe this helps:

Also check that your tile PPU size matches the grid and tilemap sizes.

Sorry but nothing worked. Thanks for the help though. Reealy appreciate it!
I am waiting for more answers.

@roan05112008

Sorry but I doubt that you did all the checks…

Did you actually try adding padding to your tile textures?

And did you also really check that your Grid itself doesn’t have incorrect settings? Tilemap tile size doesn’t equal grid size.

And you might have mentioned, that you are using this third party asset:

It would help others to detect issues, although I knew already this was the graphics set used.

The default texture sheet in SunnyLand doesn’t have padding around tiles.

Neither are the tiles next to each other in default sheet.

Because of this, unless you used custom packing or separate sprites, it is very likely you will have bg color spilling, as “tileset.png” tiles are on transparent background.

Hi!

Now I am trying to add padding to this tileset in Photoshop!
Found a tutorial on youtube how to do this.
Thank you very much!!!

These tiles you use are from a Unity project, several in fact, and in them they don’t have this problem; you should be able to use them as they are. You should take a look at the original project they are from and see how they are set, DPU and the rest.

@

What do you mean by “from a Unity project?”

Do you mean Ansimuz’s Sunny Land asset store version differs from his itch.io version?

At least the asset store version preview image shows the same texture sheet, although I have to admit I haven’t downloaded that particular version.

The 2D game kit: https://learn.unity.com/project/2d-game-kit

@

Nope - no they are not - check the OP image carefully - these tiles are clearly from Ansimuz’s pixel art kit… which is the one I linked to in my previous message:

This might help you? I guess

I ran into this issue a while ago and couldn’t find an automated solution to this problem. So I made a tool that does it automatically. I posted it here 2 years ago, but it never occurred to me to reply to other people’s posts. Hope it helps someone!