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 ![]()
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:
- This is what my image should look like, as it does in Crocotile 3D: Imgur: The magic of the Internet
- Here is an example of the black lines I was talking about: Imgur: The magic of the Internet
- 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! ![]()