Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
497 stars 120 forks source link

Prefeb loads blurry and with lines #134

Closed mrjeremy3341 closed 6 years ago

mrjeremy3341 commented 6 years ago

when i load my tile map into unity it is just all blurry and with a bunch of lines between the tiles. how do i fix this is it is usable? prnt

Seanba commented 6 years ago

My Jeremy, I'm guessing with a name RGPMaker Mega Tileset that the texture for your tileset is quite large and Unity is shrinking the image during import. Check the texture importer settings for that tileset in Unity. By default, Unity has max texture sizes of 2048x2048 but you can increase it to 8192x8192 depending on your target platform.

That shrinking will make your image blurring and will exasperate the problem with seams (those are the lines you're talking about).

Once you get your texture settings under control then you may have the odd seam depending on your camera settings. This link will help with that. I recommend the solution of putting a border around your tiles but if you've purchased a "Mega" tileset then that will be a pain. In that case, the --texel-bias setting approach is the easiest way to get things up and running.

mrjeremy3341 commented 6 years ago

yeah my tileset was just way to big, upped the texture size and cropped it down to only the tiles i was using. seems to have fixed it all thanks.

Seanba commented 6 years ago

Okay, cool. Good luck with your game.