Forums
April 19, 2024, 08:37 AM

Author Topic: How To Still Use The Color Black Without it Disappearing  (Read 1355 times)

0 Members and 1 Guest are viewing this topic.

Offline XanKriegor

Re: How To Still Use The Color Black Without it Disappearing
« Reply #15 on: January 22, 2018, 06:23 PM »
Today i accidently discovered that pitchblack can actually be presented on your maps.



It can be 0.0.0.; just place it somewhere else than #0 in the palette.

« Last Edit: January 22, 2018, 06:37 PM by XanKriegor »

Offline STRGRN

Re: How To Still Use The Color Black Without it Disappearing
« Reply #16 on: January 22, 2018, 08:06 PM »
Photoshop is overkill for worms maps imho. Try something more simple, like PaintNET, PaintShopPro, and more.

I can personally recommend gimp 2 (it's free and open source)

Offline StepS

Re: How To Still Use The Color Black Without it Disappearing
« Reply #17 on: January 23, 2018, 01:50 PM »
You can use non-transparent black as XanKriegor noted above. For the game, it's the color position in the palette that matters.
You can have two 0,0,0 blacks in the palette, however most image editing programs will take the index of the first occurrence of the color, which will be always #0. Therefore you need to choose any color other than black for the position #0 that you don't use on the same map for anything else. That will be the transparent color. Once you're done, save the map, then open your PNG in TweakPNG or a hex-editor to edit the palette cell #0 to black (0,0,0). Make sure that this only changes the palette table and not any part of the image data. Now the 0th black will be used for transparent areas, while any other black you have put in the palette will be used for solid areas. Note that if you later open the map for editing again, and save it, the distinction between blacks will be lost. So you best keep two copies of the map to avoid having to perform an undo operation on the cell #0.

Note that if you're making 32-bit Project X maps, things are drastically different. For those maps, PX looks at how deep the color is. 0,0,0 is fully transparent, although things like dark reddish blacks will have two states at once: being non-solid (intangible) and non-transparent at the same time. The exact threshold of color intensity has not been measured, also it may not have been intended and thus a bug in PX. PyroMan has used this technique to create maps with custom background pictures and texts.
« Last Edit: January 23, 2018, 02:01 PM by StepS »
Dec 30 2013 23:59:44 <StepS> windowed mode isn't the only thing you need about frontend
Dec 30 2013 23:59:49 <StepS> you need it to be actually bigger
Dec 31 2013 00:00:13 <StepS> it actually is very small on my 15-inch full HD screen
Dec 31 2013 00:00:25 <StepS> while running at 640x480 or stretched mode makes it fuzzy
Dec 31 2013 00:00:44 <StepS> this problem has been around since the Worms Armageddon's release and no one has even tried to beat it
[...]