Issues with Unity and my 3D TileMap.

This is a problem that has been haunting me for over a week no, no matter what I do, I just cannot seem to fix this issue. Before I begin. Full disclosure, I am very new to Unity! And apologies in advance if this is in the wrong section :stuck_out_tongue:

Okay, now that’s out of the way, onto my issue. I’m using a piece of software called Crocotile 3D to create my scenes/environments (it’s sort of a tile-based modelling editor). I then import this into Unity with no problems. The model looks fine, however when I apply my texture (my tile sprite sheet which is PNG and has some transparent sprites in there) I get black lines on the edges of my tiles. The textures are in the correct place but the lines are a bit of an eye sore.

For the record, I’ve got filter mode set to point and my sprite sheet dimensions are set so it’s a power of two (512 x 128).

Here are a few images to help show my problem:

  1. This is what my image should look like, as it does in Crocotile 3D: Imgur: The magic of the Internet
  2. Here is an example of the black lines I was talking about: Imgur: The magic of the Internet
  3. I also get white lines too: Imgur: The magic of the Internet

Now I’ve done quite a bit of digging online and so far, the only semi-solution that works is to disable anti-aliasing, but all this does is reduce the gaps/lines, they still exist (especially close up) and it would be nice to not have jagged edges in my scene. I’ve heard a few people mention padding as well, which I’ve done via the 3D tile software (comes with a built in option during export) and this works for the most part but then some of my textures are messed up.

Just for reference, here is the topic I created on the Crocotile 3D forums: http://c3d.xyz/index.php?topic=159.0

If anyone can help me solve this issue it would be greatly appreciated, this has been driving me crazy! :eyes:

i have the same problem, anyone found the solution ?

That would just be mipmaps. Disable them in the texture’s import settings.

Mipmaps change the size of textures depending on distance to the camera, to save resources and reduce aliasing (you can see a lot of aliasing in Crocotile’s screenshot, those crisp/noise like artifacts are what mipmaps are designed to reduce). This works fine unless your texture is a tile map and the tiles have no padding between them or extend past their actual size onto the padding area: in that case tiles will “bleed” into each other when changing the size of the texture.