[SOLVED] Flat sprites and alpha

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Jekyll Grim Payne
 
 
Posts: 1065
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

[SOLVED] Flat sprites and alpha

Post by Jekyll Grim Payne »

As far as I can see, flat sprites don't recognize alpha property and can't be translucent as soon as they become flat (if they start non-flat, translucency does work until you make them flat). Is this correct, or am I missing some workaround?
Last edited by Jekyll Grim Payne on Fri Jul 21, 2017 4:29 pm, edited 1 time in total.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Flat sprites and alpha

Post by Major Cooke »

It works. It sometimes doesn't look very good though, and that all depends on what you're trying to do. Can you paste the code?

Also, remember to keep alpha clamped between 0.0 and 1.0.
User avatar
Jekyll Grim Payne
 
 
Posts: 1065
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)
Contact:

Re: Flat sprites and alpha

Post by Jekyll Grim Payne »

Well, I've been playing around with them a lot since I posted the thread. Apparently it just looks differently from regular sprites. I made a Translucent sprite with 0.85 alpha and it didn't look translucent, but A_FadeOut worked fine on it. It also looks right with Shaded renderstyle. Anyway, I guess sometimes alpha just has to be lower.
Locked

Return to “Editing (Archive)”