x


Textures with alpha problem

I'm importing my .PSD file, but even though the background is Alpha'd, the texture's background comes out white.

I then did everything that is detailed at http://vimeo.com/8444889 but the "stamped alpha" layer just becomes visible n the actual texture! Any ideas what I'm doing wrong?

more ▼

asked Apr 12 '10 at 10:46 PM

Fareed Dudhia gravatar image

Fareed Dudhia
4 2 2 5

(comments are locked)
10|3000 characters needed characters left

4 answers: sort voted first

Sometimes Photoshop files in Unity don't like to acknowledge the alpha channel unless there's an actual background layer. Try flattening the image.

I should add that Photoshop files support plain ol' transparency, as well as transparency by using an alpha channel. Most of the time you'd want to use an alpha channel, since regular transparency tends to result in white fringes because of not being able to specify a matte color.

more ▼

answered Apr 12 '10 at 11:10 PM

Eric5h5 gravatar image

Eric5h5
80.2k 41 132 519

do you know if the new photoshop smartobjects might affect things?

Dec 28 '10 at 12:49 PM ina

psd is spritemap composed of several crisp png transparency from Flash, but appear jagged with white lines in unity

Dec 28 '10 at 12:49 PM ina
(comments are locked)
10|3000 characters needed characters left

Make a new layer behind everything and fill it with a solid color. If any pixels are at all transparent, unity will use the resulting image transparency and ignore the alpha. This is non obvious sometimes when some pixels are slightly translucent, or maybe a few pixels in the corner end up being transparent.

Been wrestling with the seemingly randomness of this for a while...

more ▼

answered Nov 16 '12 at 04:35 AM

mrlinds gravatar image

mrlinds
1

(comments are locked)
10|3000 characters needed characters left

The only thing that works for me when this starts happening is to take a texture that is working, say a Unity default Grass texture, and replace it's contents with yours and save with a new name.

more ▼

answered Jan 23 '11 at 06:39 AM

chad gravatar image

chad
72 2 2 4

(comments are locked)
10|3000 characters needed characters left

That's because Photoshop will sometimes choke on transparency, and .jpg files, being exported from PS, don't support transparency at all. Transparency in png. files, however, is much more stable. You can export png. files from Fireworks, Paint, and Gimp.

more ▼

answered Apr 12 '10 at 10:51 PM

e.bonneville gravatar image

e.bonneville
5.7k 100 116 165

oh, right. Thanks!

Apr 12 '10 at 10:52 PM Fareed Dudhia

No problemo, happy to help.

Apr 12 '10 at 10:58 PM e.bonneville

Photoshop and .psd files definitely support transparency.

Apr 12 '10 at 11:09 PM Eric5h5

Well, it seemed to work for him. Anyway, I just realized I'm thinking of .jpg, which is exported from Photoshop.

Apr 13 '10 at 01:26 AM e.bonneville
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2196
x328
x29
x7

asked: Apr 12 '10 at 10:46 PM

Seen: 4905 times

Last Updated: Nov 16 '12 at 04:35 AM