Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: patrickkidd on August 31, 2013, 03:34:18 PM

Title: Tiled sprites not tiling properly?
Post by: patrickkidd on August 31, 2013, 03:34:18 PM
Tiled sprites don't seem to always repeat properly. Am I doing something wrong? I'm using the latest NGUI version.

http://www.screencast.com/t/GH6yNLOMj4y
Title: Re: Tiled sprites not tiling properly?
Post by: Nicki on August 31, 2013, 08:18:27 PM
Wow those stripes messed with my eyes.

So, what you're seeing is filtering artifacts. For Tiled sprites, you can get around them by making a 1 px border around the whole thing in PS and add that border to the sprite in the atlas, that way the mesh that gets created cuts away that 1 px border.

I believe that if it's pixel perfect you shouldn't see those artifacts in any case, but I'm not 100 %.
Title: Re: Tiled sprites not tiling properly?
Post by: ArenMook on September 02, 2013, 06:28:27 PM
This is due to how texture filtering works. You need to have a 1 pixel border. That is, extend your tiled image by 1 pixel on each side and give it a 1 pixel border within the atlas. Then it will tile correctly without any seams.