Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Transparency and Alpha Channels: The Definitive Guide

Jasmin Folsom
Registered User
Join date: 25 Sep 2006
Posts: 2
12-13-2006 19:22
From: Chosen Few
Jasmin, a couple things. First, when you use the phrase "new raster" are you referring to creating a new layer or a whole new file? Your words could be interpreted either way. I hope you mean just a new layer since creating multiple files for each image would be way over-complicating things.



OK, sorry, as far as the new raster I mean creating a new file... When ever I followed the steps step by step, loading the alpha file from the group like I have tried to do so many times over the past month, I have not been able to get the actual alpha to load correctly...


AS far as the Transparency on mine, I have doubled back 4 times on one image I am testing out, have tried a variety of dark grey to as black as I could get, and I must have been going cross eyed with getting it because I just did it again right now checking my work and it worked!! Thanks chosen.. And sorry for not explaining the earlier better... I hve just spent a month of decoding tutorials for psp... and that is just way I have found it easier was by creating the mask and saving it then starting a new file, and on the raster for that file, coloring it the texture u want to chose and then doing alpha that way, cause before I couldn't get it to work, always have the solid white tee shirt underneath the trans never came out right
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
12-14-2006 11:02
Glad you got it worked out, Jasmin. :)

And thanks for the clarification on the multiple files thing. Personally, I wouldn't choose to work that way, but if you're comfortable with it, great. Thanks for sharing your technique. It can only help for people to see multiple ways of doing things.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Sonia Stardust
Social Retard
Join date: 6 Nov 2006
Posts: 59
12-25-2006 11:07
so i've been using alpha channels in the gimp and i think it is very similar to photoshop.
i've been using the layered templates and basically what you need to do is add a background layer that is just white, so you can see what you are doing...put that on the bottom. Make another new, transparent layer and put that on top and work on that. Then when you think you are done hide all of the layers and save. You have to export the image when you save it as a TGA because it can't handle layers.
Alicia Magellan
Registered User
Join date: 4 Nov 2006
Posts: 6
step by step Gimp Tutorial
12-31-2006 02:16
Hi Sonia,
can you give us a step by step on how you are using the Gimp Alpha Channels.
Just explain the menu selections and whatnot from the getgo.

I'd really appreciate it.
I learned to manipulate photos mostly by using Gimp and not Photoshop.

A.
Kat1981 Dragonfly
Registered User
Join date: 4 Sep 2004
Posts: 40
I have one question, please
01-09-2007 06:16
From: Chosen Few
Robus, I finally had time to test this in PSE 4, and it works just fine. There are a couple of easy ways to screw it up though. First, if you save your TGA as 24-bit instead of 32-bit, it won't have any transparency. Second, if you've got more than one selection saved, your alpha channel will wind up being 100% white. Make sure when you save your selection the first time, you name it "Alpha 1" and from then on, if you have need to save the selection again, make sure to either add the new selection to Alpha 1, or else replace it. Don't have multiple selections saved, or you'll have problems.

If you're in doubt, just go Select -> Delete Selection... and then delete every item listed, one by one. Then when it's all clear, make your selection and save it as Alpha 1. Output as 32-bit TGA, and you're all set.



I am still new to ps and am trying my best to learn as much as I can. I am using PSE 4. I can do almost anything but make something transparent. I follow all the step but you mentioned something I not notice before. What do you mean by saving one selection instead of multiple ones? I tried reading all posting on this thread but sometimes get lost. Thanks
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
01-09-2007 18:52
Hi Kat!

It's very simple, really. Every time that you Save a Selection in PSE, you are making a new Alpha Channel. You can't see that's what you're doing, because you can't see the Alpha channels; but it is.

Targa (.tga) files can only have one Alpha channel. (That's why they are 32 bit files. 8 bits each for the Red, Blue, Green and Alpha channels.) If more than one is present, PSE doesn't know what to do, so it makes the Alpha totally white, giving you a completely opaque image.

To fix it, you need to eliminate the extra Alpha channels. (Select > Delete Selection.) I suggest that you name the channel you want to use Alpha, for obvious reasons. When you are ready to save as a 32 bit .tga, make a copy of the whole file (Save > Save As...), and delete all the extra channels.

You'll find that with exactly one, your transparency will show up in SL without trouble.

Hope this helps!
_____________________
Robin (Sojourner) Wood
www.robinwood.com

"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia
Rhyssa Prather
Registered User
Join date: 15 Oct 2006
Posts: 3
Pse Note:
01-10-2007 15:57
Thank god! *falls over*
As a note for PSE 2.O Users, please check to make sure that you do not have a current alpha layer, you have to delete the alpha layer if you have one before you can create one! You can only have one layer and then your good :) Wahoo!
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
01-10-2007 17:46
Hi Rhyssa!

You are very welcome. :D

But, ummm.. it's alpha channel. There is no such thing as an alpha layer, and if Chosen sees you say that, he'll slap your wrist! :D

Channels and layers are two very different animals.

Checking to make sure that you only have one Alpha channel is good advice for everyone, no matter what Graphics program you are using.

There can be only one!
_____________________
Robin (Sojourner) Wood
www.robinwood.com

"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia
Kat1981 Dragonfly
Registered User
Join date: 4 Sep 2004
Posts: 40
PS for Dummies?
01-11-2007 06:10
Ok, the more I read, the more confused I get :eek: . But I guess that normal for me. I think I need to find a PS for dummies so that I might can follow a few instructions. I am at work now, but when I get home, I will get my book back out and try and find how I can tell if I have one alpha channel or more than one open (or active or whatever you call it). Just to learn how to make simple transparency, nothing fancy, I am making just a single character tattoo. So far, using PSE 4, following all the steps, I end up with only a headache :( . Oh well, I will keep trying and maybe I find out what I doing wrong. I am sure that I must be missing one or two steps along the way. While I was not trying to do so, I did end up with a nice (not great) t-shirt while trying to learn all this. Thanks for all the input here, it is indeed very good reading, and though I might be slow, I am learning alot just by what all is talked about here. :)
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
01-11-2007 13:04
Hi Kat!

You're not a dummy; you're just trying to learn a new language. It doesn't help that most of what's here is written for a program that's kinda like the one you're using, but not exactly like it. (I don't like the whole "for dummies" concept, because it's always felt self-depreciatory and therefore self-defeating to me. I wish they had named those books "for novices" or "for beginners" or "for non-techies" instead. :) )

Photoshop Elements doesn't have a Channels palette, so it's easy to get confused. It's like going to the salad bar with chopsticks while blindfolded (in the words of a friend of mine.)

However, even though you can't see the Channels directly, it's not hard to see how many you have. Just go to Select > Delete Selection. That will pull up a list of all the saved selections (which are really channels) you currently have, so you can choose which ones to delete.

If there is more than one thing on that list, you have more than one.

If you have more than one, you won't be able to successfully make a 32 bit .tga to use in SL.

To see what they are, you'll have to Load them. Or you could just delete all of them, if you want to be safe, and then make a Selection that's what you actually want to use, and Save that.

Just remember, Saved Selection = Channel and there can be only one.

Hope this helps!
_____________________
Robin (Sojourner) Wood
www.robinwood.com

"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia
Nava Muni
Registered User
Join date: 27 Dec 2006
Posts: 10
Transparency woes - not transparent at all!
01-11-2007 13:33
Ok ... I've read *EVERYTHING* I could find on this issue; I must be missing something.

My goal:
I want to create "skin" that's totally transparent except for my texture. I want to look "hollow" with my texture "outlining" me.

What I've done:
I created my images in Photoshop CS2 (on a Mac) with the appropriate alpha channel. I then saved it all as a 32-bit Targa and uploaded it to SL.

What I get in RL:
When I preview my images in other tools, what's supposed to be transparent is, and what isn't - isn't.

What I get in SL:
When the image first uploads to SL, the preview pane shows it as a flat image - AND YOU CAN SEE THE GRAY CHECKERBOARD PATTERN WHERE THE IMAGE IS TRANSPARENT. As soon as I choose "male head," a golden brown face is shown with my texture wrapped around it. When I zoom in on the preview, the eye holes are wonderfully empty; you can see the inside of the back of my skull. On the first upload/preview, I ignored the fact that the head was represented as this golden brown thing; I just thought this to be a convenience offered by the SL client. I proceeded with the upload, paid my L$10 (again and again and ...), went to "edit appearance" and - BAM! - the most I can do is apply my image as a tattoo texture. That means the underlying skin (generated by SL) shows through and my illusion of being hollow is destroyed.

So I don't want to make a tattoo - an overlay; I want to make "new skin" that's totally transparent except for where I have my other-wordly image.

How stupid am I? What am I missing?!
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
01-11-2007 14:13
Hi Nava!

What you're missing is the existence of the Base Skin under everything else.

Avatars cannot be made transparent by use of a texture, because the base skin layer is under all the other layers, and is opaque. So, where you have transparency in your Skin, the avatar will show that base skin layer.

This is used by some skin designers to make skins that allow the sliders (which work on the base skin) to change various attributes.

If you Preview not as a flat image, but as the body part you intend to put the texture on (the Preview As is actually a drop down menu, and you can choose any of them.) you'll see the Base Skin as a sort of nasty mustard color behind everything else. (I think they picked that color because it's very unlikely that anyone would make anything that particular shade. :D )

That will let you see where your skin will show the Base Skin, and where it will be opaque.

There will still be empty eye holes, but that isn't because the eyes will actually be empty. That's because they are a different mesh, and aren't shown in the preview.

There are ways to make part or all of your avatar transparent, but they involve using prims with scripts that make anything with a 32 bit .tga texture transparent; so I don't think you can have both the texture you want and a transparent AV. I think you'd have to build your "texture" out of solid prims.

(I've never used one, so someone please let us know if I'm wrong, and you can.)

But yeah. If I understand you correctly, your problem is that what you are trying to do isn't possible with the current software.

Sigh.
_____________________
Robin (Sojourner) Wood
www.robinwood.com

"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-11-2007 15:17
Nava, first read what Robin said so you understand what's going on, and then if you really wnt to build a cell shaded av, here's what I'd recommend:
  1. Cover your body entirely with invisiprims. Use one for every single limb, every digit, every facial geometry feature, etc. (Search the forums for "invisiprim" if you don't know what they are.)


  2. Cover each invisiprim with a slightly larger hollow sphere.


  3. Apply a black texture to the inside of each sphere, and set the transparency value for the inside surface to 1. Apply a totally transparent texture to the outside.


What will happen is since you can see through the outsides of spheres, the black inside surfaces will appear to form outlines around whatever's inside the spheres (standard cell shading technique in SL). Since invisiprims hide avatars and 32-bit surface textures, you'll have those outlines appear to be around just empty space. Voila, invisible, cell shaded avatar. As long as you don't stand in front of any other 32-bit surfaces (like walls with windows), the effect should be fairly convincing as long as you've built everything right.

Keep in mind, it'll take a lot of sculpting work to make the results of this look as human as the regular avatar model does. You're essentially building a robot. Making it look organic will take a lot of spheres.

And by the way, you don't have to use just spheres. You can use any shapes you want. Just make sure each outline object is the same shape as the invisiprim inside it, and the outlining effect will always work.

I'm dropping a sample on your profile now.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Mikayla Ares
Registered User
Join date: 21 Sep 2006
Posts: 47
need help
01-21-2007 23:02
i'm tryin to make a tattoo and i followed the directions for the paint shop pro but when i go to upload the image its not transparent but a light gray can neone tell me what im doing wrong and like talk me thru the steps...??
_____________________
~*+*~ Mikayla Ares ~*+*~
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-22-2007 00:29
From: Mikayla Ares
i'm tryin to make a tattoo and i followed the directions for the paint shop pro but when i go to upload the image its not transparent but a light gray can neone tell me what im doing wrong and like talk me thru the steps...??

Well, talking you through the steps is likely out since that's what I already did by writing the tutorial. All the talking (writing) I did then was the most thorough way I know how to explain it.

In any case, if you're not seeing transparency it's because your TGA file is not 32-bit. You don't have an alpha channel present. Make sure to always save all your images as 32-bit TGA if they need transparency, or 24-bit TGA if they don't.

If the "light gray" you're seeing is not opaque, but translucent, it's because the areas in your alpha that are supposed to be black are not truly black. Any grayscale value other than absolute zero in the alpha will represent some level of opacity.

Those are the only possible explanations for what you're seeing. Without watching what you're doing, I can't pinpoint precisely where you're deviating from the tutorial. All I can say is follow the steps exactly without changing a thing, and it will work. If you contine to have trouble, it might be a good idea for you to explain exactly what you're doing, step by step, as specifically as you can, and then I can probably find where the problem is.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
VzNevada Menoptra
Registered User
Join date: 1 Nov 2005
Posts: 211
You are a GENIUS!
01-26-2007 09:58
I can't thank you enough for this more than fantastic tutorial and FAQ you listed here. This is amazing. I think this week alone I have read the most information in several areas of this forum than ever before. I've been relentlessly trying to finally find the tut that would best suit me...or I should say explain the basic concept of alpha to me. I could not find the right one using paint shop pro that was able to explain how to finally lose those white necklines and sleves when making dresses, shirts or bikinis. Thank you so much :-)))))
Kat1981 Dragonfly
Registered User
Join date: 4 Sep 2004
Posts: 40
Duh -now I see the light
01-26-2007 10:24
From: Rhyssa Prather
Thank god! *falls over*
As a note for PSE 2.O Users, please check to make sure that you do not have a current alpha layer, you have to delete the alpha layer if you have one before you can create one! You can only have one layer and then your good :) Wahoo!


:o Duh, now I see what I have been doing wrong with PSE4. I have printed this thread and have read it several times but just now noticed what you said, and I have not been doing that. I know you addressed this to PSE 2 users but I also remembered that with my PSE 4 the alpha layer is already there. I can hardly wait to get home from work to try it out. Thanks so much.
Kat :)
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-26-2007 11:08
I'm glad people are benefiting from this thread, learning from both the OP material and from each other in all the follow up posts, but please, for the love of all that is decent in the universe, can we please refrain from using the phrase "alpha layer" from now on? There's absolutely no such thing as an "alpha layer". It's an alpha channel. Got it? C H A N N E L !

One more time, that's alpha CHANNEL, not layer.

This forum is the only place in the entire universe where people constantly insist on interchanging the words "layer" and "channel". It confuses so many people. Please stop doing it.

Layers and channels are entirely different things. Please refer to them as such.

Thank you. End of rant.

-Chosen
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Jaylee Asp
Registered User
Join date: 18 Jan 2007
Posts: 1
Thankyou
01-29-2007 03:56
Thankyou so much for this information I have spent hours trying to get my work transparent so I could use it on SL 5 minutes reading your tutorial and I have it.

Thankyou this is excellent.

Jaylee Asp
Kat1981 Dragonfly
Registered User
Join date: 4 Sep 2004
Posts: 40
Sorry Chosen
01-30-2007 09:18
From: Chosen Few
I'm glad people are benefiting from this thread, learning from both the OP material and from each other in all the follow up posts, but please, for the love of all that is decent in the universe, can we please refrain from using the phrase "alpha layer" from now on? There's absolutely no such thing as an "alpha layer". It's an alpha channel. Got it? C H A N N E L !

One more time, that's alpha CHANNEL, not layer.

This forum is the only place in the entire universe where people constantly insist on interchanging the words "layer" and "channel". It confuses so many people. Please stop doing it.

Layers and channels are entirely different things. Please refer to them as such.

Thank you. End of rant.

-Chosen



Sorry about that Chosen, the thing is that I know better. Even after I posted that I was talking with a friend and used the word "Channel" when telling her what I had learned. Forgive me for having a blonde moment? ;)
Gareee Taov
Registered User
Join date: 8 Jan 2007
Posts: 117
01-30-2007 11:00
Chosen (or anyone else who can answer this)

I'm using photpshop cs2.

I followed your test example copying your test gradient image, and pasting it into the alpha layer, and it looks fine as it should.

I save the 24 bit targa file

If I reload that targa back into photoshop, shouldn't I see the alpha channel still in it? if I do, I get no alpha channel loaded, just the usual rgb, red green blue.

and if I load it into sl, I get no alpha transparency effect.

I've used photoshop for years, and never had to deal with the targa format before. is there some weird save issue with it in cs2?
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-30-2007 12:10
From: Gareee Taov
Chosen (or anyone else who can answer this)

I'm using photpshop cs2.

I followed your test example copying your test gradient image, and pasting it into the alpha layer, and it looks fine as it should.

I save the 24 bit targa file

If I reload that targa back into photoshop, shouldn't I see the alpha channel still in it? if I do, I get no alpha channel loaded, just the usual rgb, red green blue.

and if I load it into sl, I get no alpha transparency effect.

I've used photoshop for years, and never had to deal with the targa format before. is there some weird save issue with it in cs2?

I'll refrain from bitching about the use of the word "layer" instead of "channel" since you did say it right the second time, but you can scroll up a couple posts if you want to feel yelled at anyway. :D

Your problem Garee is that you saved the file at 24-bit, which means your image contains no alpha channel. There are 8 bits per pixel in each channel, and since 8 x 3 = 24, your 24-bitimage only has three channels in it. The first three channels in any RGB image, whether it be TGA or otherwise, are always Red, Green, and Blue. In TGA files with transparency, the transparency comes from the fourth channel, which we happen to call Alpha.

If you want to keep the alpha channel in the file, save at 32-bit. 8 x 4 = 32
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Gareee Taov
Registered User
Join date: 8 Jan 2007
Posts: 117
01-30-2007 13:44
Sorry about the phraseology issues. I tend to "read past" mistakes ppl type when posting.

In the 8 pages of thread, I TOTALLY missed the 24 bit/32 bit explanation, and your answer was right there all along. I was doing everything properly instead of the final save.

I even tried a psd to targa conversion program, but that did not retain the alpha at all either, but saving 32 bit does the trick.

Thanks for the speedy reply!
Kat1981 Dragonfly
Registered User
Join date: 4 Sep 2004
Posts: 40
I must be missing something
02-05-2007 21:16
From: Chosen Few
TUTORIALS


Photoshop Elements
This tutorial was made possible in large part by Robin Sojourner, who I believe was the first on this board to discover that PSE can create alpha channels, even though it does not display them. This has been tested with PSE retail versions 3 & 4.

UPDATE: Special thanks to ArchTX Edo for supplying a necessary addition in Step 3 of the tutorial in order to make it work for PSE version 2.0.

It is unknown at this time if this tutorial will work with version 1.x or with bundled or pre-installed versions.
  1. On the Layers Palette turn off all layers except for the layer that has your bikini on it. (To turn a layer off, click the eyeball symbol to the left of its name.)


  2. If the bikini layer has any white space around the bikini itself, use the eraser to get rid of the white space. It's very important at this stage that the bikini be on its own layer with nothing else on it.


  3. On the Layers Palette, ctrl-click the thumbnail for the layer with the bikini on it. The thumbnail is the little picture of the layer directly to the left of the layer's name.

    If using PSE 2.0, choose "select layer transparency" from the pop-up menu that appears. If using version 3 or 4, you won't see that menu, so don't worry about it.

    This will select everything on the layer. You should see the "marching ants" outlining your bikini now. If there are elements of the bikini on any other layers, hold down shift, and then ctrl-click their respective thumbnails to add them to the selection. Make sure not to include the background or any of the template layers.


  4. On the Select Menu at the top of the screen, go Select -> Save Selection. This will save the selection a newly created alpha channel. Unlike Photoshop, PSE has no channels palette so you can’t actually see the alpha channel, but it is there.


  5. If you still see the "marching ants" outlining the bikini shape, turn off the selection by clicking Select -> Deselect. For the next step, you'll want nothing selected.


  6. On the Layers Palette, create a new layer by pressing the button at the bottom right that looks like a square sticker being peeled from its backing. Click on the name of this new layer and drag it underneath the layer with the bikini on it. Paint the new layer 50% gray or darker; black is fine. (The gray/black layer will prevent the white halo sometimes caused when Alphas are created the way we just did it. If you don't know what I mean by that, don't worry about. Just make sure to always put a gray/black layer underneath your work and you'll never have to see that white halo. Alternatively, more advanced users may wish to use one of the better halo-elimination methods discussed in the FAQ, although they may not all be applicable to PSE.)


  7. Save as 32-bit TGA and upload to SL.



I think I have followed all these steps while using PSE4. I did delete the alpha channel that was with the template first and then created the new one as per step 4 above. No matter what I do, I still do not get a transparency. I am only trying to make a simple tattoo to learn how it is all done. It is driving me crazy :eek: . I am sure that I am missing something, but just do not know what it might be. I know this doesn't tell much about what I might be doing but I not sure what else to say. Thanks :) for any help that might be coming forth.
Kat
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
02-06-2007 06:58
From: Kat1981 Dragonfly
I think I have followed all these steps while using PSE4. I did delete the alpha channel that was with the template first and then created the new one as per step 4 above. No matter what I do, I still do not get a transparency. I am only trying to make a simple tattoo to learn how it is all done. It is driving me crazy :eek: . I am sure that I am missing something, but just do not know what it might be. I know this doesn't tell much about what I might be doing but I not sure what else to say. Thanks :) for any help that might be coming forth.
Kat

I think your problem is that since PSE has no channels palette, you can't be certain you've gotten rid of the alpha channel that comes with the template. I would suggest you copy all the layers from the template into a brand new document. That way you'll know for certain there's nothing in it you didn't put there yourself.

And by the way, don't confuse the sample alphas that are stored as layers with actual alpha channels. Deleting those layers or not will make no difference. Layers and channels are entirely different things. The reason the samples are on layers is just so that they'll be inert if you don't use them, harmless. Were they actually stored as channels, there would be way too many channels, and you'd have to delete them every time you open the template file to make a new image,. That would be a big waste of time. To use any one of those samples as an actual alpha, simply copy it to a channel (and make sure it's the only alpha channel present, of course).
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
1 2 3 4 5 6 7 8 9 ... 12