2D Toolkit Forum

2D Toolkit => Support => Topic started by: Pixel900 on February 22, 2015, 07:37:50 pm

Title: TileMap Tearing Issues
Post by: Pixel900 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
Title: Re: TileMap Tearing Issues
Post by: unikronsoftware 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.
Title: Re: TileMap Tearing Issues
Post by: Pixel900 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?
Title: Re: TileMap Tearing Issues
Post by: unikronsoftware 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".
Title: Re: TileMap Tearing Issues
Post by: Pixel900 on February 24, 2015, 07:20:01 pm
Ok, I'll try it thanks