Back to the Korax Forum Archives


Forum

KA: Cyan pixels on sprites border

Sat, 29 Aug 2009 14:35:07

Crimson Wizard

Not good. We have it at some weapon sprites, weapon pickup sprites, some other pickups and player portraits on scoreboard. I checked these in game. Pickups: Red mana, Combined mana. Weapon Pickups: ALL. Weapon sprites: Fighter: Ripper, Fire Hammer, HalfQuietus Cleric: Poison Cloud (hands sprites) Mage: Staff, Gray Wand, Red Wand, Dragon Breath (hands sprites) Heretic: Necro Gauntlets, Crossbow, Super Horned Rod, Phoenix Fire Marine: ALL weapons The Hero: ALL except Desintegration spell.
Sat, 29 Aug 2009 19:12:34

Firebrand

This only can be reduced but not completely fixed, it's because they are PNG images and Vavoom seems to use some kind of filtering on them, but I don't know how to completely remove that... I'll rework these to have black background and see if it reduces the problem.
Sun, 30 Aug 2009 03:23:39

Firebrand

[quote="Firebrand":3squxvtr]This only can be reduced but not completely fixed, it's because they are PNG images and Vavoom seems to use some kind of filtering on them, but I don't know how to completely remove that... I'll rework these to have black background and see if it reduces the problem. EDIT: These artifacts can be removed... I've found the problem comes from the way transparency is handled in PNG images normally, Vavoom expects them to have an alpha channel for transparency, but 256 colored images can't have one, so I'm converting them to 32-bit colours, this seems to fix most of the problems, but I don't know about translated decoration and flag sprites... these could be a problem IMO... but we'll see what to do with those.
Sun, 30 Aug 2009 12:58:16

Crimson Wizard

[quote="Firebrand":zywdhce7]Vavoom expects them to have an alpha channel for transparency, but 256 colored images can't have one, so I'm converting them to 32-bit colours, this seems to fix most of the problems Hmm, that's good thing to know, though strange one. How did it happen that lots of sprites work nice, while some certain have these problems?
Sun, 30 Aug 2009 14:47:08

Firebrand

Initially I just extracted everything from the original WAD files we were using as BMP files, then Janis added support for PNG images, so I just simply converted everything to PNG with PSP 9, this problem appeared. After that, missing sprites were discovered in the PK3 file (which were also missing from the WAD files <!-- s:P --><img src="{SMILIES_PATH}/orc4.gif" alt=":P" title="Razz" /><!-- s:P -->), then I found an utility called UNWAD that allowed to extract every resource from a WAD file and insert it inside PK3 files, so I used it to extract Hexen and Heretic sprites, the tool extracts PNG images as the ones I described (with alpha channels), but the rest of the stuff remained the same, thus displaying with cyan pixels. Yesterday I extracted the Doom resources and imported them to the PK3 file, they now look properly, but the new sprites can't be extracted like that, so they must be fixed by hand (which I'm doing now <!-- s;) --><img src="{SMILIES_PATH}/orc9.gif" alt=";)" title="Wink" /><!-- s;) -->), hopefully knowing this will allow me to work with the correct format to avoid problems like this one in the future <!-- s:D --><img src="{SMILIES_PATH}/orc6.gif" alt=":D" title="Very Happy" /><!-- s:D -->.

Back to the Korax Forum Archives