8,018
edits
Paradox-01 (talk | contribs) m (health bar: color remapping needed) |
Paradox-01 (talk | contribs) m (→HUD: Color mapping done. Next stop: health animation for hypos ?) |
||
Line 479: | Line 479: | ||
'''Color | '''Color mapping''' | ||
[[Image:DynamicHealthBarMaterial.png|300px|right|thumb|health bar material where color, shape and progress merge]] | |||
[[Image:HealthBarColorZoneControl.png|300px|right|thumb|integrating a color zone on the health bar]] | |||
UE4's progress bar has a fixed range of 0 to 1. In order to realize overpower values (float 1.0 to 2.0) we have to scale everything down to fit into a 0 to 100 percentage range. | |||
If we think of the different colors as milestone on a road whereby each milestone is named red, yellow and so on then each every two stones span their own area of interpolated color value. So for UE4's "Lerp (LineraColor)" would will need several alpha ranges, always float values from 0 to 1. | |||
edits