Alpha Channeled PNG weapons oddity

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Paul
DRD Team Admin (Inactive)
Posts: 1058
Joined: Thu Jun 30, 2005 13:30
Location: Poland - Grojec / Radom
Contact:

Alpha Channeled PNG weapons oddity

Post by Paul »

So I made myself a cyan lightsaber with a subtle glow around it (note I left the transparency evidently bugged (not entirely transparent frame) on one frame just to show this error:

Ahh, nice subtle glow (albeit, temporarily buggy transparency)
Image

WTF?!?!
Image

The weapon is bright.

Here is teh wad:
http://paul.drdteam.org/Stuff/GType_Lsaber.wad

Specs:
Dirext x 9 Radeon 9200 SE Athlon 1 Ghz, 512 DDRam, Gzdoom 1-0-10

Note the level and stuff aren't included. I seriously doubt it's a necessity, but if it is, let me know, so I can, in the least, wrap that mess of 6 resource files and link it.

Another note: Usual PNGS work very fine for menu items, hudmessages and textures, but not sprites. No I haven't offseted them, I used Caligari's method of remapping the sprites.

Note to peeking ellmo: it is not R One.

Note to authors: May use this in additional wads.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

If you look closely you will see that the alpha channel is actually working. The problem is that in order to render the normal low-res sprites correctly I have to cut off the translucent parts of the border eventually. But this must not be done for graphics that contain a real alpha channel. I'm afraid that this is not a trivial thing to change properly so it will probably take some time.
User avatar
Paul
DRD Team Admin (Inactive)
Posts: 1058
Joined: Thu Jun 30, 2005 13:30
Location: Poland - Grojec / Radom
Contact:

Post by Paul »

Yes the alpha is working, only not properly. I think I understand, from your explanation, why that is happening. I am content in knowledge this will get resolves, eventually.

Don't worry about this wad, I can still get away with a non-glowing lightsaber. Thanks for your time.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Sorry to bump this.

I hope this is fixed soon.

I use a lot of HIRESTEX sprite/graphic remapping, and I'm getting insane amounts of white artifacts everywhere in my alpha'd PNGs. =/
User avatar
Lazureus
Posts: 15
Joined: Wed Jun 27, 2007 17:12
Location: Florida

Post by Lazureus »

I get white artifacts in my PNGs whenever they're used near a horizon line oO.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Nash wrote:Sorry to bump this.

I hope this is fixed soon.

Sorry for the long wait. Don't worry, this will be taken care of for the 1.0.27 release. All the technical stuff to handle this is in, what's left is writing a decent analyzer function that doesn't take too much time to check the alpha channel of the textures.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Good to hear. Does that mean this will work properly?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Fixed. Unfortunately I don't have anything to test this with so it will be released untested.
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

How about the small example file in the other thread? Here I'll link it:

http://nash.wanzafran.com/doomstuff/smoke.zip
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Apparently in 1.0.27 this still isn't working?

In my example WAD (http://nash.wanzafran.com/doomstuff/smoke.zip) the smoke edges still aren't fading out smoothly.

Granted, the graphic I created doesn't exactly fade out the smoothest, but it definitely looks a lot smoother in Photoshop and SLumpEd than in-game with 1.0.27.

EDIT: I changed the smoke sprite to something more visible (a simple circular gradient). The translucency is more obvious now. You'll see that outside of GZDoom, it is a perfectly smoothed circular gradient.

File is same link.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Fixed. It was working for paletted pictures with alpha channel but not for true color.
User avatar
KeksDose
Stronghold Team
Posts: 319
Joined: Thu Apr 12, 2007 21:35
Location: Germany

Post by KeksDose »

HELL YES!
Thanks a hella much for fixing this! =D
Eh, later on to create fairly decent black holes :3
Locked

Return to “Closed Bugs”