[SOLVED] Flat sprites and alpha
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.
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.
- 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
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.
- 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
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.
Also, remember to keep alpha clamped between 0.0 and 1.0.
- 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
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.