Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - RomeEmperor

Pages: [1]
1
Graphics / Render sf::Text in HD quality using sf::View
« on: May 14, 2022, 04:32:00 pm »
Hey!
I'm developing a co-op game and i need to draw nicknames with good quality of sf::Text. It's could be easier if the sf::View size was 1920x1080, but in my game it is 300x300.
I made a test project (https://github.com/JusticeShurup/ViewAndTextTest)

main.cpp
(click to show/hide)

result:
(click to show/hide)

As you can see the quality leaves much to be desired.

We can resize current sf::View to 1920x1080 and after resize to 300x300.
code:
(click to show/hide)
result
(click to show/hide)

Everything would be fine if not for one problem. This nickname moves, when you move camera and i don't know why.
(click to show/hide)
This happens without assigning a position to a nick. I can assign a position to a nickname, but that won't solve the other problem, which is that I won't be able to add other players' nicknames, as they will be in the wrong places.

Is it possible to display text in HD quality and still have it's actual size?


Pages: [1]
anything