Hello Guest

Author Topic: TileMap Tearing Issues  (Read 5210 times)

Pixel900

  • Newbie
  • *
  • Posts: 3
    • View Profile
TileMap Tearing Issues
« on: February 22, 2015, 07:37:50 pm »
Hi, i'm using TileMap to load a map made in Tiled via custom code that I wrote, the map loads nicely (for some reason I had to flip the tiles upside down to display them correctly on unity, is there a way to use the original spritesheet without flipping the tiles?)

The problem is that when I update the camera to follow the player, the tilemap has some serious tearing issues and gives me a headache, the project has barely any code or game objects for the camera to struggle like this) I've tried everything I read in other topics, changing the padding mode, add more padding; changing the size of the chunks of the TileMap, changing the camera update function call in the player class, the level master class, putting the update on fixed update, update, and late update, and nothing! I need help, as I said, there's barely any code so far, can you please check what's the problem? Here's the code, thanks in advance

EDIT: Removed link
« Last Edit: February 23, 2015, 11:23:46 am by unikronsoftware »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TileMap Tearing Issues
« Reply #1 on: February 23, 2015, 02:06:16 pm »
You're on an older version of 2D Toolkit that had a bug specifically in Windows in DX11 mode which I'm guessing you're using. Update to 2.5.0 and the issue should be resolved. You should only need 1 pixel of "extend" padding.

Pixel900

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: TileMap Tearing Issues
« Reply #2 on: February 24, 2015, 07:01:03 am »
Hi, thanks. I updated 2D Toolkit to 2.5 and changed the pad method of the tiles to extend. Just one question, do I have to change the padding on the general settings of the sprite collection or the extra padding below the pad metod on every tile? Also I'm not using Direct X 11. I'm using the free version with Direct X 11 deactivated, should I use it?
« Last Edit: February 24, 2015, 07:02:51 am by Pixel900 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TileMap Tearing Issues
« Reply #3 on: February 24, 2015, 11:21:58 am »
You can change pad amount in the sprite collection. The method will need to be on each tile, but you can multiselect - change and click "Apply".

Pixel900

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: TileMap Tearing Issues
« Reply #4 on: February 24, 2015, 07:20:01 pm »
Ok, I'll try it thanks