Ouff, the #GodotEngine UI node settings ain't as easily HiDPI aware and dynamically scalable as I hoped. Explains why many games opt for a mobile UI that might end up looking out of place (and way too large) on the desktop but will still work everywhere.
-
Ouff, the #GodotEngine UI node settings ain't as easily HiDPI aware and dynamically scalable as I hoped. Explains why many games opt for a mobile UI that might end up looking out of place (and way too large) on the desktop but will still work everywhere.
-
dbat :godot: (Viva Ukraine)replied to Natasha Nox πΊπ¦π΅πΈ last edited by
@Natanox Could you explain this in a bit more detail? If you have time. I am thinking it could be a good subject over on the forum or as a Godot proposal/bug report.
If you keep it in your head, it will just stay there!
-
njamster :godot:replied to dbat :godot: (Viva Ukraine) last edited by
-
Natasha Nox πΊπ¦π΅πΈreplied to njamster :godot: last edited by
-
Jowanreplied to dbat :godot: (Viva Ukraine) last edited by
@dbat @Natanox Not sure what Nox was getting at, but the main stopper for proper HiDPI UI right now is Icons. Because godot cannot have adaptive SVG textures (they are always rendered to a fixed size) and the icon size is directly used to determine the size of many UI nodes you have to make icons at the exact resolution of your UI and when then increasing the UI-scale icons will look blurry.
This is supposed to be fixed eventually, but is not yet possible and requires complicated workarounds. -
@dbat @Natanox Some relevant links:
https://github.com/godotengine/godot/pull/86022https://github.com/godotengine/godot-proposals/discussions/9080
https://github.com/MewPurPur/GodSVG/issues/762
I've just recently tried to solve HiDPI scaling icons for material maker and the only proper solution right now is to basically re-implement ui scaling.
-
Natasha Nox πΊπ¦π΅πΈreplied to Jowan last edited by
@jowan @dbat Oh dear. That's not what I meant, but SVGs not being dynamically scaled is a huge problem indeed. From my limited understanding that means you'd need different presets of UI for different DPI levels (and potentially display ratios if you aim for mobile devices too).
What I originally thought were UI elements scaling dynamically (indeed thought about .svg) depending on DPI, or some way to apply "viewport stretch" mode to individual elements and manipulate its stretch factor or sth.
-
Natasha Nox πΊπ¦π΅πΈreplied to Natasha Nox πΊπ¦π΅πΈ last edited by