Problem with lining up planes

Hello,

I’m currently working on a 2D grid inside my game. The grid basically displays a huge map. Therefore I cut the original texture into 9 smaller 512x512 pieces. I imported them into unity and put each texture on a single plane.
Even though I got all the coordinates right, there are “thin lines” between the planes.
I also checked, if I had made a mistake when cutting the big texture, but in Photoshop the pieces line up just fine. So that can’t be the problem.

Maybe I’m going about this the wrong way and need to find a different solution? Or maybe there is a certain technique to perfectly line up planes and I just don’t know about it?

By the way, the planes have the 1 x 1 x 1 default size when you create them and I didn’t play with texture offset or something like that.

Any help appreciated. Thanks in advance.

[EDIT: I just created a new project and tried to line up 2 planes without a texture on them. They perfectly line up. So, somehow, a 512x512 texture does not perfectly fit on a default 1x1x1 plane. Maybe someone could suggest - that would be great! Thanks]

how are you sure they perfectly line without a texture?

The problem could be in the textures, specifically how they are imported, compressed and applied (clamp or repeat) - for instance, when you make a skybox (which is a similar process, but on the inside of a cube instead of lined-up planes) you need to turn off compression (the compression schemes take into account adjacent pixels, which gets kind of messed up at the edges of textures) and also make sure the they are set to clamp (instead of repeat) to get the lines between them to go away.

Unfortunately, 9 512x512 textures with no compression is going to eat most of your memory budget - but - do a test with no compression and ‘clamp’ set and see if that helps…

-jdm

Thanks! Clamping + compression did the trick!