Author Topic: alpha of texture  (Read 4225 times)

brian661

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
alpha of texture
« on: April 07, 2014, 05:44:50 AM »
I have .jpeg file where it is a red circle image, and the area out side the circle is white in color, 
I would like to use texture widget to put the image on the game scenes,
how can i remove the white part on the image when pasting to the game scene?

I believe i have to set the alpha channel for the texture, isn't it ? ( something learn from 3dsmax)

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: alpha of texture
« Reply #1 on: April 07, 2014, 07:38:59 AM »
Unity or NGUI doesn't handle this for you.

JPGs don't have alpha. Make it into a png or psd.

See something like this http://www.axialis.com/tutorials/tutorial-misc001.html

brian661

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: alpha of texture
« Reply #2 on: April 07, 2014, 08:36:18 AM »
Unity or NGUI doesn't handle this for you.

JPGs don't have alpha. Make it into a png or psd.

See something like this http://www.axialis.com/tutorials/tutorial-misc001.html
I tried to store my image as psd and if I use button widget, it success,
but when I use texture widget, it fails...

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: alpha of texture
« Reply #3 on: April 08, 2014, 03:03:14 AM »
Are you on an old version of NGUI? The UITexture should use the Transparent Alpha shader, not the Unlit/Texture one - the latter has no alpha.