Loading...
  OR  Zero-K Name:    Password:   

Unit icon rendering issue

11 posts, 366 views
Post comment
Filter:    Player:  
sort



CHrankAdminDeinFreund
5 months ago
(edited 5 months ago)



When I play with the newest Spring version, it seems like the unit icons are bigger and have very jagged edges. Is this some kind of DPI scaling for my high DPI screen? I have enabled AA and it still works fine on the units themselves, just not on the icons.


+0 / -0



CHrankAdminDeinFreund
5 months ago
Can anybody else reproduce this issue or are these icons being properly rendered for everyone?

Weren't there some players with 4K displays, how does it look there?
+0 / -0


NOrankAdminAnarchid
5 months ago
I suspect this is related to https://github.com/spring/spring/commit/c04fa0ded2d20087fe993cf8bc949ab2ee5d2b85
+0 / -0



CHrankAdminDeinFreund
5 months ago
I hoped our active player base would make tracking down the root of this issue easy, but in this case I just put it on mantis like this.

https://springrts.com/mantis/view.php?id=5617
+0 / -0



USrankCrazyEddie
5 months ago
I'm seeing the same behavior you are with icons. They are not anti-aliased. By way of comparison, text is anti-aliased.

I'm using a 4K screen. I'm using the game's default graphics settings.

I've never noticed this until you pointed it out. That doesn't mean it wasn't happening before, just that I didn't notice it. I haven't tested this with older engine versions or with other screen resolutions.

Here's four pictures showing what I see:

Icons and text, zoomed out: actual size, magnified.

Icons and text, zoomed in: actual size, magnified.

Note that the icons have hard jagged edges while the text has blended smooth edges. Also note that the interior of the icons are nicely anti-aliased and smoothly blended with the playercolor. It's only the exterior edges that are sharp against the terrain.

+1 / -0



CHrankAdminDeinFreund
5 months ago
Regarding the screen I was just wondering whether actual pixel size of icons depends on DPI. Meaning they'd be even blockier for you. If you looked at a wind icon and compared it to mine it should be bigger pixel wise if this is true.


+0 / -0

ATrankSkasi
5 months ago
(edited 5 months ago)

Perhaps try older engine versions and find the smallest increment in version number that still leads to a change in icon rendering?

Oh nvm, the issue on mantis has more info.
+0 / -0



USrankCrazyEddie
5 months ago
quote:
I was just wondering whether actual pixel size of icons depends on DPI.

It looks like the size of the rendered icons in pixels is mainly dependent on the zoom level. The closer you zoom, the larger the icons become. So for a meaningful comparison we'd need to pick a map and an identical view (e.g. use COFC and press ctl-alt-MMB to reset the view).

quote:
Meaning they'd be even blockier for you.

Not exactly, I think. The blockiness is going to be one pixel wide due to the lack of anti-aliasing, no matter how large the icons are or what the screen resolution is.

On a typical 4K screen the pixels are very small so it's harder to see the jaggedness. But my 4K screen is physically very large and I sit very close to it, so it makes the jaggedness more visible.

+0 / -0



CHrankAdminDeinFreund
5 months ago
Another thing you should be able to observe is the blurred font in the loadscreen (and generally blurred loadscreens). These two things might be minor, but it instantly reminded me of zk being free to play after coming back from some commercial games..
+0 / -0

ATrankSkasi
5 months ago
Oh? I don't remember any commercial game that didn't have blurred/unreadable text anywhere. I could list a dozen commercial games that do have such texts though. ZK's not better, but also not worse in that regard.
+0 / -0



CHrankAdminDeinFreund
5 months ago
It just looks raw and unfinished, I'm not saying the majority of games is better. The recent UI changes have already improved the look a lot, this is just a small thing that adds to it. Even without our models looking great, having a nice UI, nice maps and a nice lobby already does so much.
+1 / -0