Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI page switching and alpha blending
09-18-2014, 12:25 PM, (This post was last modified: 09-18-2014, 12:28 PM by NaN.)
GUI page switching and alpha blending
I've been working on some GUI issues and ran into an elementary problem with gui page fade in/out.

The fading is imlemented by reducing the opacity of the old page while increasing the opacity of the new one. The problem is that alpha blending the pages on top of each other with the background is not equivalent to fading from one page to another (the math is different).

The result can be observed in current master, since I've fixed an opacity related issue with a texture used by the gui, a slight flickering of the lower gui area can be seen (it is less noticeable in darker areas).

Not sure if this is fixable, might be worked around by reducing opacity, or maybe going fully opaque, increasing fading time, or disabling fading completely, adjusting gui colors to make it less visible...

Forum Jump:

Users browsing this thread: 1 Guest(s)