Opened 10 years ago

Last modified 5 years ago

#2309 new defect

Status/Health bars are unreadable when too far away

Reported by: wraitii Owned by:
Priority: Nice to Have Milestone: Backlog
Component: UI – In-game Keywords:
Cc: Patch:

Description

Status bars (namely, health and food amount) bars that appear above units when they are selected are unreadable when you get too far from them (or turn a white-ish color that makes them useless).

This most likely happens because they use textures with the GL_LINEAR method of filtering, which corresponds more or less to bilinear filtering (http://en.wikipedia.org/wiki/Bilinear_filtering). Since the base sprites are 1x8, they turn into white mush in the distance.

This problem should be solved by using custom mipmaps that replace the 1x8 gradients with solid rectangles. Or it can be easily solved by replacing the gradients with solid colors and using GL_NEAREST as filtering.

Screenshot attached illustrates the issue:
The first image is using solid colors and GL_NEAREST.
The second is using current gradients and GL_NEAREST.
The third is using solid colors and GL_NEAREST.
The fourth is using current gradients and GL_LINEAR.

Attachments (1)

bug.png (157.0 KB ) - added by wraitii 10 years ago.

Download all attachments as: .zip

Change History (3)

by wraitii, 10 years ago

Attachment: bug.png added

comment:1 by Stan, 10 years ago

Milestone: Alpha 16Backlog

Not a top priority, shouldn't have a milestone.

comment:2 by Imarok, 5 years ago

Component: UI & SimulationIn-game UI

Move tickets to In-game UI as UI & Simulation got some sub components.

Note: See TracTickets for help on using tickets.