Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Weird Tilemap Lines

Discussion in '2D' started by roan05112008, Jan 4, 2020.

  1. roan05112008

    roan05112008

    Joined:
    Sep 5, 2019
    Posts:
    17
    Hi!

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

    I searched on the internet for solutions but none of them worked:
    • Disable anti-aliasing
    • Material with Pixel Grid on
    • Pixel Perfect Camera
    Capture2.PNG

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

    Attached Files:

  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
  3. roan05112008

    roan05112008

    Joined:
    Sep 5, 2019
    Posts:
    17
  4. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @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:
    https://ansimuz.itch.io/sunny-land-pixel-game-art

    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.
     
  5. roan05112008

    roan05112008

    Joined:
    Sep 5, 2019
    Posts:
    17
    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!!!
     
  6. APSchmidtOfOld

    APSchmidtOfOld

    Joined:
    Aug 8, 2016
    Posts:
    4,473
    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.
     
  7. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
  8. APSchmidtOfOld

    APSchmidtOfOld

    Joined:
    Aug 8, 2016
    Posts:
    4,473
  9. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
  10. hong0902

    hong0902

    Joined:
    Jun 10, 2020
    Posts:
    1

    This might help you? I guess
     
  11. vandel212

    vandel212

    Joined:
    May 10, 2020
    Posts:
    24
    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!

    https://github.com/Vandel212/Unity2DTileSetPaddingExtruder