Png partial-transparency does not work

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

The dumb thing about Photoshop is that it can't saved paletted alpha PNGs. :/

So I am forced to use 24-bit PNGs for any graphics that have alpha transparency.
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 don't really use more than 256 colors (same colors with different alpha count multiple times!) you might try pngquant to convert it to 8 bit. It seems to be the only tool capable of this conversion. :(
User avatar
Nash
Developer
Developer
Posts: 1226
Joined: Sun Sep 25, 2005 1:49
Location: Kuala Lumpur, Malaysia
Contact:

Post by Nash »

Unfortunately pngquant does a bad job at converting my graphic (as stated in the thread Sir_Alien linked to in the previous page). :/
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Then you have more than 256 colors and converting the picture wouldn't help anyway.
DaniJ
Posts: 130
Joined: Sat Oct 08, 2005 19:22

Post by DaniJ »

The dumb thing about Photoshop is that it can't saved paletted alpha PNGs. :/
Yes it's only real limit. Though considering how infrequently a png with paletted alpha is used it's understandable.

The best bet is to get the dx texture plugin for PS and save to one of those then covert it to png using pngquant (or so I've been told by a work colegue).
User avatar
kinkyfriend85
Posts: 17
Joined: Mon May 01, 2006 16:27

Post by kinkyfriend85 »

Nash wrote:Dude, chill out.

I don't know why can't you get it to work.

I don't want to sound like I'm trying to teach a n00b but here are my steps:

A) Work on the image using my PSD master file (it has layer information, layer transparencies etc).

B) Once I'm ready to finalize the graphic, I prepare it by hiding unwanted layers. I even hide the background layer in Photoshop so all I get is true transparency.

C) Save As -> PNG file

D) Import into XWE (using "Load as raw data" command).

The result:

Works for me(tm).

[spoiler]Image
Image[/spoiler]
(WARNING NUDITY)

See? No coding or scripting or shitty command lines needed.

MAKE SURE YOU ARE USING THE LATEST XWE BETA. http://www.doomworld.com/xwe/

Maybe you should try teaching somebody else, I may be a bit nooby at some doom features but if you call me noob at imaging, perhaps we should have a duel! Because I am not NOOB at imaging and image settings etc.

I don't want to have my graphics inside a wad because it's kinda irritating needing to redo things sometimes just because you make an update to a series of images or want to delete one. And it goes faster to make the project when its outside, (takes ages to load in hi res textures onto wads.)
I dunno if your stuff works when there are images outside, but I am so tired about all those different ways of doing such a simple thing.
And my pngs are saved with transparency. (To all who say psp is weird, LEARN IT. :P ) And I think I am using the latest XWE beta because the older version didnt like hi res (gave me black lines all the times)

Oh and yes tbh, I never knew how to get hi res sprites working inside the wad, probably could learn it fast now, but I prefer the way it is now and I guess I will have to stick without partial transparency.
User avatar
kinkyfriend85
Posts: 17
Joined: Mon May 01, 2006 16:27

Post by kinkyfriend85 »

The question still remains, When will Gzdoom fully support transprency in textures outside the wad without having to do anything extra? And I think you are thinking more about tga which has alpha channels, pngs dont need any setting to be saved with it. Oh and why don't you people try psp a little more to realize it does support pngs fully :D
Locked

Return to “GZDoom”