Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: realblues on August 22, 2012, 07:29:18 PM

Title: image outline problem
Post by: realblues on August 22, 2012, 07:29:18 PM
Simply I used 2 solid colored image to UI sprite.

the problem is.. sprite has a black outline. I want it's own color.

I didn't touch any settings for atlas material and texture.

Can I Have Some Solution?

and one more request is support mouse wheel scroll in widget tool.

I have too many sprites, it takes time to select without scroll in widget tool. mouse wheel scroll seems not support.. is it?


attachment:
test.png, test1.png : sprite source
gamepanel.png : Screenshot in GamePanel
ScenePanel.png : Zoomed shot in ScenePanel
Title: Re: image outline problem
Post by: ArenMook on August 22, 2012, 11:10:34 PM
Convert your PNG to a TGA file, then you'll be able to see what's really there in the RGB channel. My guess is -- it's black.

PNGs suck.
Title: Re: image outline problem
Post by: realblues on August 23, 2012, 07:15:39 PM
Thanks for reply,

I changed test.png to test.tga, but there seems no black (see attachment)

and just tried make atlas tga and bmp converting from this png, but it still have a outline.

am I approaching wrong way?
Title: Re: image outline problem
Post by: ArenMook on August 23, 2012, 08:37:21 PM
Ah, that may be other sprites bleeding through. Long story short: when zooming in a sprite you will always see parts of another showing through like that. You can fix it by either not enlarging your sprite, by setting it up as a sliced sprite (giving it border) and using a sliced sprite to draw it, or by setting up a border and using a tiled sprite to draw it.
Title: Re: image outline problem
Post by: realblues on August 23, 2012, 09:30:03 PM
oh, it solved.  ;D

sliced sprite seems not work either but tiled sprite worked.

thanks.
Title: Re: image outline problem
Post by: realblues on August 23, 2012, 11:28:56 PM
hmm.. but would it be solved from the root by usnig UISprite? just curious  :D
Title: Re: image outline problem
Post by: ArenMook on August 24, 2012, 05:09:32 AM
Not quite sure what you mean there.