Author Topic: image outline problem  (Read 3975 times)

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
image outline problem
« 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
« Last Edit: August 22, 2012, 07:32:36 PM by realblues »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: image outline problem
« Reply #1 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.

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: image outline problem
« Reply #2 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: image outline problem
« Reply #3 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.

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: image outline problem
« Reply #4 on: August 23, 2012, 09:30:03 PM »
oh, it solved.  ;D

sliced sprite seems not work either but tiled sprite worked.

thanks.

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: image outline problem
« Reply #5 on: August 23, 2012, 11:28:56 PM »
hmm.. but would it be solved from the root by usnig UISprite? just curious  :D

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: image outline problem
« Reply #6 on: August 24, 2012, 05:09:32 AM »
Not quite sure what you mean there.