Author Topic: Some questions regarding Alpha transparency  (Read 2202 times)

0 Members and 1 Guest are viewing this topic.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Some questions regarding Alpha transparency
« on: February 08, 2007, 09:43:08 am »
Does Soldat support PNG alpha transparency for weapon-gfx files?
Does Soldat support PNG alpha transparency for the weather effects files?
Does Soldat support PNG alpha transparency for Textures & Edges?
Does Soldat support PNG alpha transparency for the gosteks?
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline Lord Frunkamunch

  • Veteran
  • *****
  • Posts: 1418
  • DRR...DRR...DRR...
Re: Some questions regarding Alpha transparency
« Reply #1 on: February 08, 2007, 10:05:24 am »
I'm pretty sure ALL graphics in soldat must be .bmp to show up. I don't know how to get transparency, but I've heard something about getting in on a PNG and saving it as .bmp, though I'm not sure...
I attend grammar school, last grade, and ignorance is all around me. Well, good for them. Ignorance is bliss.

Offline truup

  • Soldier
  • **
  • Posts: 243
Re: Some questions regarding Alpha transparency
« Reply #2 on: February 08, 2007, 10:17:21 am »
...but I've heard something about getting in on a PNG and saving it as .bmp, though I'm not sure...
Changing the name of the file wont help, it looks like it's a bmp image, but the data inside is still PNG, which Soldat can't read. You can always use green as background color, as it is for the default files. Are you trying to make like 50% opacity pictures or what?

Offline ghg

  • Camper
  • ***
  • Posts: 411
  • Village Idiot
Re: Some questions regarding Alpha transparency
« Reply #3 on: February 08, 2007, 12:37:38 pm »
Sort of,  I myself am using an explosion with alpha transparency. Its a Bitmap file but I think the underlying data is .png or something.
-=Gradius wuz you=-

Offline numgun

  • Veteran
  • *****
  • Posts: 1032
Re: Some questions regarding Alpha transparency
« Reply #4 on: February 08, 2007, 04:04:01 pm »
Does Soldat support PNG alpha transparency for weapon-gfx files?
Does Soldat support PNG alpha transparency for the weather effects files?
Does Soldat support PNG alpha transparency for Textures & Edges?
Does Soldat support PNG alpha transparency for the gosteks?

Those have never been tested before. So I cant say if they do work.
Sceneries and explosions may have alpha.

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: Some questions regarding Alpha transparency
« Reply #5 on: February 08, 2007, 06:52:50 pm »
They can work. I have a screenshot to prove it, from a stupid mod I made just to test this:
Shrink Wrap v. 01
Create a .png and rename it to a .bmp.
Soldat is able to read .pngs, that's why you can have .pngs as scenery files. But, it tells itself it must load .bmps for all other files. So, it looks at the .bmps, sees it needs to use its .png reader, and uses that to load the .pngs.
I used some partial transparency in my USP mod, for the trigger in the weapons-gfx image.
<3*xwd
love conquers all

Offline PeteBone

  • Soldier
  • **
  • Posts: 150
  • Son of a b*tch!
Re: Some questions regarding Alpha transparency
« Reply #6 on: February 08, 2007, 09:14:21 pm »
what you mean with rename dude, open png with notepad, save as, "renaming.png" ?

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
Re: Some questions regarding Alpha transparency
« Reply #7 on: February 09, 2007, 02:46:25 pm »
What I mean by "rename" is, turn on the option to see filename extensions (Tools > Folder Options, View Tab, uncheck "Hide extensions for known file types"), then rename file.png to file.bmp. To do this, click once on the file, then click again and keep your mouse still. The file's name should then be highlighted. Change the extension, Windows should give you a warning, hit okay, and treat it like any other file Soldat would use.
<3*xwd
love conquers all

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Some questions regarding Alpha transparency
« Reply #8 on: February 10, 2007, 12:39:56 am »
Ok, I tried this, but I may be fuzzy in a few areas.
What exactly do you mean by "alpha transparancy in pngs"?
I use the gimp for all my art, and it can use layers and "opacity", but when I save it, even as png, it merges it with the color behind it. Or am I not supposed to put the green behind it?

"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: Some questions regarding Alpha transparency
« Reply #9 on: February 11, 2007, 04:09:26 pm »
Don't put the green behind it, or the colors will merge (as you found out).
Save it as a .png with a transparent / no background, as if you were going to post it on the internet.
<3*xwd
love conquers all

Offline Keron Cyst

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2872
  • will waypoint for food
Re: Some questions regarding Alpha transparency
« Reply #10 on: February 11, 2007, 06:43:35 pm »
What exactly do you mean by "alpha transparancy in pngs"?...
Anything which supports varying levels of transparency (e.g. not Soldat, which is either opaque or completely invisible) is called "alpha transparency"