Author Topic: Alpha shading?  (Read 2021 times)

0 Members and 1 Guest are viewing this topic.

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Alpha shading?
« on: June 14, 2007, 05:35:14 am »
I know that the ability to use the png format adds the ability to alpha shade...
But how does it work?

I have both the gimp and PS.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: Alpha shading?
« Reply #1 on: June 14, 2007, 10:08:34 am »
Alpha shading is another word for partial transparency.
You can mess with the layers dialog box in The GIMP to make things partially transparent. I'm not sure of an easier way, but it probably involves painting at not 100% opaqueness.
<3*xwd
love conquers all

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Alpha shading?
« Reply #2 on: June 14, 2007, 10:12:31 am »
Do you still use the green? Do you just shade out the green?

I'm sorry, I know transparancy, just foggy on the usage here.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Will

  • Flagrunner
  • ****
  • Posts: 910
Re: Alpha shading?
« Reply #3 on: June 14, 2007, 10:17:18 am »
hmm it would be worth to try not using the lime green...

for simple graphics like this, just use paint.net. It's very  easy to make half transparent colours and then just draw with those if you want

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Alpha shading?
« Reply #4 on: June 14, 2007, 10:19:21 am »
I'll try it.
Thanks for the tip.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: Alpha shading?
« Reply #5 on: June 14, 2007, 11:12:13 am »
You don't need the green, though anything with a color of #00FF00 will still be invisible, I believe, no matter what its transparency value is. You can just make the pixels you want invisible totally transparent.
<3*xwd
love conquers all

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Alpha shading?
« Reply #6 on: June 14, 2007, 11:20:40 am »
Oh, sweet, thanks for that.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Espadon

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2606
  • GO BEAT CRAZY
    • Tabnir at deviantART
Re: Alpha shading?
« Reply #7 on: June 14, 2007, 09:58:40 pm »
GIMP's very close to Photoshop, which is my IMP of choice. I dunno about PSP =\

Here's a screen of my work: visible alpha controls are circled in red:
CRYSO | HLT                        

    CRY0 | NAN0 2.1 | 0MEN 1.0 | PYR0 1.1M | B0RG 1.0

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Alpha shading?
« Reply #8 on: June 14, 2007, 10:42:22 pm »
GIMP's very close to Photoshop, which is my IMP of choice. I dunno about PSP =\

Here's a screen of my work: visible alpha controls are circled in red:


Ok, now THATS useful.

I have CS2, I'm sure it'll have something like that.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Keron Cyst

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2872
  • will waypoint for food
Re: Alpha shading?
« Reply #9 on: June 15, 2007, 12:20:32 am »
I think in The GIMP you can just highlight a portion of the graphic and hit Del and it'll make the selected area trans. (but that method, although fast, is flat... it doesn't achieve the smooth fadeaway effect the graphic .·: êšþãÐøñ :·. posted demonstrates)

Offline Serial K!ller

  • Camper
  • ***
  • Posts: 408
    • Soldat Mods Archive
Re: Alpha shading?
« Reply #10 on: June 15, 2007, 03:09:44 am »
In the gimp you can deselect the color layers or you can add a mask on a layer where you can edit the transparency full black is transparent and white is non transparent.


And you can also cut out the green (add alpha layer first) and if you then do filter like


Then you can draw in the mask with color range, pensels etc

On existing images you can also make the green invisible and then do a filter like motion blur etc ti add alpha effects

Offline Espadon

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2606
  • GO BEAT CRAZY
    • Tabnir at deviantART
Re: Alpha shading?
« Reply #11 on: June 15, 2007, 09:42:10 am »
The last comment by SK is what I do to convert bitmaps to alpha. When I boot a bitmap up, the initial layer is locked and opaque. I set "new layer" on top of it, and by default, new layer is transparent. I cut and paste the bitmap to the new layer, and use the wand (set this to 0 tolerance, antialiasing to off, and uncheck contiguous) to trim off the green. I fill the original background layer with black so I can easily see what I'm doing in the alpha layer...

...I'll use my plasma bolt as an example. I made another copy of the new layer (now transparent with a plasma bitmap in it) and gaussian-blurred (under filter->blur) the layer to get the plasma haze. I made another new layer (I'll call this new(2)) and overlaid the plasma bitmap in new(2) over the correct location in new(1). Then I slightly gaussian-blurred new(2) to blend into new(1), then merged the two layers. Then delete the old locked layer, and save as a PNG. That's how I did my plasma bolt.

If I was unclear in the above description please let me know.
CRYSO | HLT                        

    CRY0 | NAN0 2.1 | 0MEN 1.0 | PYR0 1.1M | B0RG 1.0