hi,
I was working on HUD bitmaps and I noticed HUD bitmap has diferent alpha blending while in cockpit. As you can see in the image bellow, while in the cockpit the HUD appear darker with dark edges, if our spacecraft explode the game switch to some another render mode, and, the HUD appear "as usual". The darker HUD remind me like premultiplied alpha mistake... Is this intended ? Is there an option to choose alpha blending for HUD ?
HUD Alpha blending
HUD Alpha blending
- sedenion
- Posts: 78
- Joined: Tue Feb 26, 2019 10:36 am
You do not have the required permissions to view the files attached to this post.
- blue_max
- Posts: 2296
- Joined: Wed Mar 20, 2019 5:12 am
The first thing we need to check is if this happens with Jeremy's ddraw. Basically, use Babu Frik to disable the effects and check what the HUD looks like. I suspect this is a bug in my ddraw.
- sedenion
- Posts: 78
- Joined: Tue Feb 26, 2019 10:36 am
Just tested and I confirm the HUD alpha blending is correct using Jemery's Ddraw. I don't know if bitmaps in DAT files are stored with premultiplied alpha, but this darkish and dark-edge render indeed appear like result of alpha double product due to image with premultiplied alpha treated as normal image. Anyway this is an alpha blending equation related. Notice that I think this also affect the text alpha blending...