GM:S 1.4 Tiles scaling glitch

Discussion in 'Programming' started by Drago Supremo, Mar 5, 2018.

  1. Drago Supremo

    Drago Supremo Member

    Joined:
    Aug 22, 2016
    Posts:
    53
    Hi everybody,
    i tried to add tiles to my game but i'm having a weird glitch: between some tiles there are some "transparent" gaps.
    From what i have understood this might be caused by the tiles not being scaled properly, but i can't figure out how to solve it.

    My view is 960 x 540 ported on a 1920 x 1080 window.

    I have also read about texture clamping but haven't found a real solution :bash:

    Any help would be appreciated :)
     

    Attached Files:

  2. RangerX

    RangerX Member

    Joined:
    Jun 20, 2016
    Posts:
    2,587
  3. Drago Supremo

    Drago Supremo Member

    Joined:
    Aug 22, 2016
    Posts:
    53
  4. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,774
    Okay, that blog explains WHY the issue happens, but the fix is actually to expand the texture borders for each individual tile, so that when it's rendered the GPU selects the correct pixels to render. This can be a pain to do, BUT help is at hand! Download Tileset Champion (here) and it will recreate your tile textures for you with an additional border around each tile so that this issue is resolved (note that in GMS2 this is now done for you automatically... ;) ).
     
    Drago Supremo likes this.
  5. Drago Supremo

    Drago Supremo Member

    Joined:
    Aug 22, 2016
    Posts:
    53
    This looks really helpful! Thank you very much
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice