Photoshop transparency/alpha channels
hi, sorry for an off topic post, you can delete this topic when i get an answer!
Basically i have a jpg image of a muzzle flash with a black backgorund, i want to save it is a PNG so dim3 will support this image but how do i set it so that when i save it as a PNG the black will be transparent, otherwise known as a PNG with transparecny, ive seen his before with explosions and the smoke on dim3 so how do i do that in PHOTOSHOP?????
Basically i have a jpg image of a muzzle flash with a black backgorund, i want to save it is a PNG so dim3 will support this image but how do i set it so that when i save it as a PNG the black will be transparent, otherwise known as a PNG with transparecny, ive seen his before with explosions and the smoke on dim3 so how do i do that in PHOTOSHOP?????
You don't do it in Photoshop. In SDL for example you can set an aplha color, in this case, setting it to black will result in a transparent picture.
If you wanna do this in Photoshop, you'll need to make sure the image has an alpha channel. You can make an alpha channel in Photoshop yourself, but depending on the image this may be a lengthy process.
If you wanna do this in Photoshop, you'll need to make sure the image has an alpha channel. You can make an alpha channel in Photoshop yourself, but depending on the image this may be a lengthy process.
"When you dream, there are no rules..."
He's talking about Dim3, SDL 2D graphics are, I think, out of the question here. 
Why didn't you create an image with an alpha channel in the first place? Then add the picture on top?
Anyway, add an alpha channel and delete the black, I believe you add the alpha channel to the layer but I can't be sure.

Why didn't you create an image with an alpha channel in the first place? Then add the picture on top?
Anyway, add an alpha channel and delete the black, I believe you add the alpha channel to the layer but I can't be sure.
socksy Wrote:He's talking about Dim3, SDL 2D graphics are, I think, out of the question here.
I said, for example
"When you dream, there are no rules..."
Is photoshop use the magic wand tool and select all of the black background. Delete it. Save. Use the new flash with a little big of transparency in the game. Voila!!!
A tutorial for creating alpha channels in photoshop was recently posted here:
http://unify.bluegillweb.com/
http://unify.bluegillweb.com/
You're only spose to adjust the transparency of the actual flare inside the engine. Keep it 1.0 alpha in the png. And I'd start with layers and a transparent doc in photoshop so you don't have those nasty black areas on yours.
A quick move to the correct forum for this question (Designer's Studio) and a simple rename to a more descriptive thread title, and "Tada!" No more off-topic and everyone is happy. Perhaps this can be done in the future! 
What version of Photoshop are you using? Surely the manual has something about alpha channels or transparency? You probably want to mask the image, make an alpha channel and then flatten it against a black background. This way your image will come out with "premultiplied alpha". (No hazey borders)
-Jon

What version of Photoshop are you using? Surely the manual has something about alpha channels or transparency? You probably want to mask the image, make an alpha channel and then flatten it against a black background. This way your image will come out with "premultiplied alpha". (No hazey borders)
-Jon
aarku Wrote:A quick move to the correct forum for this question (Designer's Studio) and a simple rename to a more descriptive thread title, and "Tada!" No more off-topic and everyone is happy. Perhaps this can be done in the future!thanks for moving the topic i had no idea where it would go....
What version of Photoshop are you using? Surely the manual has something about alpha channels or transparency? You probably want to mask the image, make an alpha channel and then flatten it against a black background. This way your image will come out with "premultiplied alpha". (No hazey borders)
-Jon
im using CS1 i could get CS2 but i dont have enough money for it... and id rather spend £500 on something else than a piece of software...
The best way to make an alpha channel in this situation is to copy the muzzle flash image into a new channel ( "Alpha 1" ) in your channels palette. Then use the "Levels" adjuster to expand this image ( which will now be greyscale ) such that the black remains black and the grey/white goes white. You'll have to adjust it accordingly.
Then, make a layer under your muzzle flash which is mostly the color of the edges of your flash. Say a bright yellow. Then set alpha channel for your muzzle flash to the "Alpha 1" you made in your channels palette. ( do this by option-clicking the alpha channel in the channels palette and then selecting your muzzle flash and clicking the mask button on the bottom of the palette ).
You might want to gaussian blur this mask and futz a little.
Then, use the "SuperPNG" PNG exporter ( google for it ) and let it export a PNG with the alpha channel. There are two versions of SuperPNG, select the one with "Old school alpha channel support ).
Then, make a layer under your muzzle flash which is mostly the color of the edges of your flash. Say a bright yellow. Then set alpha channel for your muzzle flash to the "Alpha 1" you made in your channels palette. ( do this by option-clicking the alpha channel in the channels palette and then selecting your muzzle flash and clicking the mask button on the bottom of the palette ).
You might want to gaussian blur this mask and futz a little.
Then, use the "SuperPNG" PNG exporter ( google for it ) and let it export a PNG with the alpha channel. There are two versions of SuperPNG, select the one with "Old school alpha channel support ).
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Photoshop sizing and dpi | Chamse | 5 | 7,349 |
Apr 13, 2011 10:35 PM Last Post: Anomalous Interactive |
|
| Photoshop Sprites With Alpha Channel | Nick | 22 | 16,200 |
Nov 26, 2006 06:25 PM Last Post: jarfish |
|
| Your favorite Photoshop tutorials | Carlos Camacho | 6 | 5,386 |
Nov 18, 2005 04:08 AM Last Post: Fenris |
|
| Creating anti-aliased sprites in Photoshop | Malarkey | 9 | 9,983 |
Mar 7, 2005 09:52 PM Last Post: arekkusu |
|
| Generating Skybox Images in Photoshop | Nick | 9 | 12,056 |
Feb 24, 2005 08:15 AM Last Post: jamie |
|

