LUPS shieldsphere causes healthbars to be invisible

LUPS shieldsphere causes healthbars to be invisible

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

LUPS shieldsphere causes healthbars to be invisible

Post by Forboding Angel »

https://github.com/EvolutionRTS/Evoluti ... thbars.lua

Those are floris' sexy healthbars.

Here is a screenie of what I'm talking about. Fwiw, the alpha of the shield sphere is very low, but if you look at the outline on the ground you can see where the sphere is.

https://drive.google.com/file/d/0B25BbZ ... p=drivesdk
Last edited by Forboding Angel on 14 May 2017, 11:29, edited 1 time in total.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LUPS shieldsphere causes healthbars to not be rendered at all

Post by Forboding Angel »

Hmm, perhaps the larger issue is with the shieldsphere shader in general?

https://drive.google.com/file/d/0B25BbZ ... p=drivesdk
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: LUPS shieldsphere causes healthbars to not be rendered at all

Post by Kloot »

No, the larger issue (stated a few times before) is that order matters when drawing overlapping translucent elements.

If the shield spheres happen to be drawn first with z-writing enabled, they'll block anything that has z-testing enabled and lives at a greater depth from drawing after them, including healthbars.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LUPS shieldsphere causes healthbars to not be rendered at all

Post by Forboding Angel »

Thanks, that helped quite a bit. All fixed up now :-)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LUPS shieldsphere causes healthbars to not be rendered at all

Post by Forboding Angel »

Btw if anyone needs help with this let me know. If you have a look, evo's shields look fantastic now and there is no longer a massive performance drop when there are 50 - 100 of them on screen at once.

Image
Post Reply

Return to “Lua Scripts”