Page 1 of 1
Transparency Colors
Posted: Sat Dec 01, 2007 1:05 am
by Veldor
Is it possible in the editor to control or set a transparency color? It is common place in games to have at least one pre-defined color not show up so as to allow transparency without having to resort to actual transparency such as in a transparent .png file. Does AT have that and if so can that be further customized and set to any color a scenario designer would like? If so how? Thanks.
RE: Transparency Colors
Posted: Sat Dec 01, 2007 1:20 am
by jakobrogert
I think I remember reading a post here that it's pink (255, 0, 255). And I'm unsure of changing it.
RE: Transparency Colors
Posted: Sat Dec 01, 2007 1:21 am
by rickier65
I bleive Vic mentioned pink as being transparent in one of the threads. You might be able to search on "pink" and find the actual values.
I beleive it was in thread about some counter mods, but not sure.
I don't really understand "graphics" type stuff, so I didn't really follow what he meant.
Rick
RE: Transparency Colors
Posted: Sat Dec 01, 2007 3:55 am
by Veldor
So I painted a .png file 255,0,255 pink and it shows up as pink in game. Is there some trick to this?
RE: Transparency Colors
Posted: Sat Dec 01, 2007 10:56 am
by Arkady
I checked some typical transpart pictures in gam,e (bridges, roads) and all are transparent PNG
Maybe for BMP files there is defined one transparent mask color but for PNGs you need save it as transparent
RE: Transparency Colors
Posted: Sat Dec 01, 2007 11:06 am
by Vic
in the systemgraphics dir you can still find a few .bmps that use 255,0,255 for transparancy.
it should work for counter and hex graphics.
never tried putting 255,0,255 in a png though. when i used png i just use ARGB format instead of RGB.
RE: Transparency Colors
Posted: Sat Dec 01, 2007 5:39 pm
by jakobrogert
Since PNG's feature transparency, there would be no need to work with pink as a transp. value. So Veldor, if you can't seem to make transparency happen in your PNG files, try using another software (I would personally recommend photoshop.).
RE: Transparency Colors
Posted: Sun Dec 02, 2007 1:57 am
by Veldor
ORIGINAL: jakobrogert
Since PNG's feature transparency, there would be no need to work with pink as a transp. value. So Veldor, if you can't seem to make transparency happen in your PNG files, try using another software (I would personally recommend photoshop.).
You should try to be less condescending in your posts. Why assume I'm a graphics idiot? Perhaps the reason I ask is because I have a large set of existing graphics files that are not transparent PNG's. And even though one can easily convert them to PNG one cannot easily remove existing colors and convert that all to transparancy. Even if you could its far less work if the color were settable, which would then require no editing whatsoever, which is why I ask.
So since your the photoshop "expert" perhaps you could tell me the easiest way to replace all of a certain colored pixel in a detailed work with transparency and/or another colored pixel. This has to be an exact swapout no approximated select similar tool etc.
RE: Transparency Colors
Posted: Sun Dec 02, 2007 10:17 am
by Vic
@veldor,
could you attach an example PNG with (255,)255,0,255 colour in it.
because actually i think PNG as well as BMP should make pink transparent.
thanks,
vic
RE: Transparency Colors
Posted: Sun Dec 02, 2007 11:46 am
by PDiFolco
Veldor,
Can't you just convert your png files to bmp and then have the pink transparency work ?
RE: Transparency Colors
Posted: Mon Dec 03, 2007 1:35 am
by Veldor
ORIGINAL: PDiFolco
Veldor,
Can't you just convert your png files to bmp and then have the pink transparency work ?
The pink thing I was doing was just a test. It doesn't actually matter much to me in this case. The REAL files can be whatever format but they have backgrounds already so, as explained above, the least effort would be able to set the existing background color as the transparent color (no editing) or to find a way to "swap out" one exact pixel color for another within the entire set of images.
I have the latest photoshop, as so far as I know or have found, it does not have that feature. The closest function, select similar, does not work because similar does not mean the same and it therefore picks pixels that are within a certain range as well.. which highly degraded the image quality.
If no one can answer how I might accomplish this easily with photoshop or another program then my only real choice is a pixel editor wherein I replace them a row, or even a pixel, at a time. While I could do this, I'm normally not so patient with graphics work, as Id like to get moving with other aspects of the mod instead
Even though .gif aren't supported another option would be to temporarily convert them to 8bit .gif and then do a pallette swap. Assuming that doesnt degrade the source (in one of my mods it probably wouldnt.. in the other its still less than ideal).
So, in this thread, was mainly looking to see if you could set the color in AT (you can't) so the only other thing would be if anyone knows an easy way to accomplish a change to pink.
Thanks all.
RE: Transparency Colors
Posted: Mon Dec 03, 2007 1:06 pm
by PDiFolco
In this case you can maybe rather cut the part you want (ie the foreground) and paste them back on a pink background.