[SBARINFO] Tranparent elements on status bar

Moderator: GZDoom Developers

Post Reply
User avatar
InsaneFury
Posts: 105
Joined: Mon Nov 23, 2009 6:51 am

[SBARINFO] Tranparent elements on status bar

Post by InsaneFury »

I'm looking for a way to make the HUD transparent through means of SBARINFO for example?

However, unlike the NO'ed request at this page, I'm not referring to having cyan-background images (that's doable already), but having a certain opacity/intensity per image.

This would work like the RenderStyle and Alpha properties in Actors.

If implemented, this would not only make it possible to make a semi-seethrough statusbar, but also allow for full-screen overlay effects (which is what I intend to use it for).
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: [SBARINFO] Tranparent elements on status bar

Post by Gez »

InsaneFury wrote:a way to make the HUD transparent [...]

cyan-background images
:bang: :bang: :bang: :bang: :bang:
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: [SBARINFO] Tranparent elements on status bar

Post by .+:icytux:+. »

im pretty sure this is doable already :P

http://zdoom.org/wiki/SBARINFO
if you check the wikipage, there is already the "alpha" in there.
seems to only be in the svn tho.
User avatar
InsaneFury
Posts: 105
Joined: Mon Nov 23, 2009 6:51 am

Re: [SBARINFO] Tranparent elements on status bar

Post by InsaneFury »

.+:icytux:+. wrote:im pretty sure this is doable already :P

http://zdoom.org/wiki/SBARINFO
if you check the wikipage, there is already the "alpha" in there.
seems to only be in the svn tho.
But doesn't that apply to the entire status bar? I want to tune only some specific images in the status bar, i.e. have different alpha values per DrawImage.

*edit*
Ah, I see. I was using an outdated version of the documentation. :)

Sweet! Works like a charm! :lol: Forgive my ignorance... :oops:
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: [SBARINFO] Tranparent elements on status bar

Post by Zippy »

The Alpha keyword would be the primary mechanism. Alternatively, if it is convenient for the purpose, you should also be able to just use a PNG with included transparency because the status bar is a HUD element and all HUD elements in ZDoom have full true color support.
Blzut3
 
 
Posts: 3211
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: [SBARINFO] Tranparent elements on status bar

Post by Blzut3 »

Zippy wrote:all HUD elements in ZDoom have full true color support.
Only on Windows and when hardware acceleration is available. Though ZDoom may have support for the alpha channel any ways, never really tried it.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [SBARINFO] Tranparent elements on status bar

Post by randi »

Support for the alpha channel for paletted rendering is of the form < 50% = not drawn, > 50% = drawn.
Blzut3
 
 
Posts: 3211
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: [SBARINFO] Tranparent elements on status bar

Post by Blzut3 »

Is there any particular reason why ZDoom doesn't support a full alpha channel in paletted mode? Clearly it's capable of doing alpha blending when given a alpha from elsewhere.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: [SBARINFO] Tranparent elements on status bar

Post by randi »

There's a difference between using a single alpha value for an entire image and using a unique alpha value per pixel.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”