x


Alpha Channel images.

Hello,

how to use alpha channel pictures on gameobjects?

Ive imported an model with eyeglow, but unity adds a black background.

I tried to make the texture format to Alpha 8 but it doesnt helped me out.

hope you have a solution.

Thanks

more ▼

asked Apr 24 '10 at 11:42 AM

Tobias gravatar image

Tobias
363 50 53 66

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

2 answers: sort voted first

You have to set the "shader" setting in your material to a shader which supports transparency. They are grouped under the "Transparent" section of the shader pop up menu.

more ▼

answered Apr 24 '10 at 04:23 PM

duck gravatar image

duck ♦♦
41k 92 148 415

I think he is using self-illumin for the eye glow.

Apr 24 '10 at 04:46 PM Peter G

Thanks.

Im using transparent settings now. Theres no background anymore. But I dont have an "glue" effect. But I think thats another topic :) (Working with particles)

Apr 26 '10 at 12:20 PM Tobias
(comments are locked)
10|3000 characters needed characters left

Make sure you are using an alpha compatible image type, psd, png, etc. Then in your image editor, to make a transparent object, the easiest thing to do is delete the background layer and have a transparent section. Unity reads that as alpha.

Otherwise, you have to add an alpha channel to your image, and modify that. I find Unity sometimes doesn't recognize the alpha channel right away so you have to save the file several times before it recognizes it.

Make sure your compression has an alpha channel too.

more ▼

answered Apr 24 '10 at 02:36 PM

Peter G gravatar image

Peter G
15k 16 44 136

(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:

x2083
x327
x258
x32

asked: Apr 24 '10 at 11:42 AM

Seen: 6461 times

Last Updated: Apr 24 '10 at 11:42 AM