Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI elements are difficult to see against bright backgrounds #39

Closed
robn opened this issue Apr 24, 2011 · 8 comments
Closed

UI elements are difficult to see against bright backgrounds #39

robn opened this issue Apr 24, 2011 · 8 comments

Comments

@robn
Copy link
Member

robn commented Apr 24, 2011

If I fly close to eg a bright yellow star (Epsilon Eridani) I can't see various things - label text, gauge backgrounds, crosshairs, etc. It'd be good if we could do something to make them more visible - drop shadows, colour inversion, etc.

@Brianetta
Copy link
Contributor

Perhaps a translucent black label background, such as Youtube uses for non-speech-bubble captions.

@Philbywhizz
Copy link
Contributor

I have written a patch to help with this 626f3d0faa4839acc938fa13e14264a67b65c609. It adds a transparent background to 'target' labels so that when you are silly enough to fly into the sun, you can still read them. :) It probably needs some more work and tidying up (my OpenGL isn't that strong), but it is a start.

@robn
Copy link
Member Author

robn commented Apr 25, 2011

@Philbywhizz great start! I'm not going to merge it as-is. The backgrounds aren't always perfectly positioned with the text (sometimes they're a pixel out) and the distance between text edge and border is inconsistent. That might be a per-platform thing though related to the font code doing different things on different platforms.

@Philbywhizz
Copy link
Contributor

You are right - it does wrong on closer inspection (I didn't notice it at 1am). This update should fix it 3ecb901615f5ce5b83ce1637e9cbf2eee42fa7ec. Please let me know if this is ok on your platform (I can only test on OSX)

@Luomu
Copy link
Member

Luomu commented May 18, 2011

How about some Freetype-generated outlines instead:

(Centering is not perfect, some letters like g, a, s are slightly off)

Luomu@5e70eea

@robn
Copy link
Member Author

robn commented May 18, 2011

Very interesting! I'm currently doing a lot of work in TextFontFace in my https://github.com/robn/pioneer/tree/text-rendering branch that you might like to take a look at too.

@robn
Copy link
Member Author

robn commented Jul 23, 2011

Making progress in #325. Work still needs to be done in some UI elements (notably gauges).

@impaktor
Copy link
Member

merge of 325 closes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants