Page 1 of 1

idea, alternative way for Full color image Transparency

Posted: Wed Dec 27, 2006 3:32
by Raccoon
As we all know we have always used the PNG's transparency for our images and sprites which unfortunatly require's the use of often hard to get programs or expensive ones to do it with. But a thought came to me recently (After failing to get free programs that claim to do so to work). Perhaps there could be a way to code GZdoom itself to Render images with transparency by specifying what images and the color to render as transparant in like say the GLDEFS lump. I imagine this could take quite a bit of work to implement into GZdoom, But it would be a major plus for modders. For it would make it so much more easy to have full color images with transparency without the need of hard to get Image software. Here's an example of how my idea of transparency would be defined in GLDEFS.

SETIMAGETRANS SSZXA0 "00FF00"

And that would set a sprite or image with the color you want to be rendered as transparent. 00FF00 would make green be rendered as Transparent. Hope you can make use of this. Happy DooMing!

Posted: Wed Dec 27, 2006 10:07
by Graf Zahl
No. It's a hack and that makes it an unattractive feature. Furthermore, full sprite translucency should be specified in the actor, not the sprite.

Posted: Wed Dec 27, 2006 22:35
by Raccoon
Oops. Sorry, I made the topic in the wrong forum. I meant to make this in feature suggestions.

Posted: Wed Dec 27, 2006 22:40
by Graf Zahl
You did. I moved it.