Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: TJHeuvel on February 08, 2013, 08:25:41 AM

Title: Ugly black lines using TiledSprite
Post by: TJHeuvel on February 08, 2013, 08:25:41 AM
Hello,

When using tiled sprites we get some flickering dark lines when the texture repeats.

(http://i.imgur.com/lH1Cmnw.png)

Its dependant on the camera position/size. Is there any way to fix this? Its pretty consistant, other panels have the same problems.
Title: Re: Ugly black lines using TiledSprite
Post by: ArenMook on February 08, 2013, 08:30:51 AM
Give your tiled sprite a border of 1 pixel.
Title: Re: Ugly black lines using TiledSprite
Post by: TJHeuvel on February 08, 2013, 08:39:28 AM
Thanks for the fast reply!

(http://i.imgur.com/Rzbt1V8.png)
These are the settings we use, i've tried a) not using custom packer, b) increasing the padding, b) not trimming alpha. None of them seem to work.
Title: Re: Ugly black lines using TiledSprite
Post by: ArenMook on February 08, 2013, 09:31:46 AM
Wrong place.

Click the "Edit" button (top right of your screenshot), then choose your sprite and give it a 1 pixel border all around.
Title: Re: Ugly black lines using TiledSprite
Post by: TJHeuvel on February 08, 2013, 09:33:43 AM
Will try, thank you.

*Edit: Works like a charm! Thanks a ton, great support.