You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
TextureProgressBar does not use antialiasing like StyleBoxFlat does. This is especially noticeable in circular progress bars, especially if they move slowly or not at all.
For untextured linear progress bars, ProgressBar with a StyleBoxFlat can be used instead. However, this is not possible for circular progress bars, bilinear progress bars and textured progress bars of any kind.
Without antialiasing
With antialiasing (simulated with 16× supersampling)
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add optional antialiasing to TextureProgressBar. Antialiasing would be enabled by default, but it can be disabled for art styles where it's not suitable (e.g. pixel art games).
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Add anti_aliasing and antialiasing_size properties (defaults: true and 0.625), like in StyleBoxFlat. antialiasing_size controls the size of the antialiasing feather, and can be increased for artistic purposes if needed.
Related to #1297.
Describe the project you are working on
The Godot editor 🙂
Describe the problem or limitation you are having in your project
TextureProgressBar does not use antialiasing like StyleBoxFlat does. This is especially noticeable in circular progress bars, especially if they move slowly or not at all.
For untextured linear progress bars, ProgressBar with a StyleBoxFlat can be used instead. However, this is not possible for circular progress bars, bilinear progress bars and textured progress bars of any kind.
Testing project (
master
only): test_textureprogressbar_antialiased.zipPress Space to play/pause progress.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add optional antialiasing to TextureProgressBar. Antialiasing would be enabled by default, but it can be disabled for art styles where it's not suitable (e.g. pixel art games).
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Add
anti_aliasing
andantialiasing_size
properties (defaults:true
and0.625
), like in StyleBoxFlat.antialiasing_size
controls the size of the antialiasing feather, and can be increased for artistic purposes if needed.TextureProgressBar' internal polygon generation should be modified to also generate vertex colors for each point, with the feather using
Color(1, 1, 1, 0)
for the transparent ends.If this enhancement will not be used often, can it be worked around with a few lines of script?
No.
Is there a reason why this should be core and not an add-on in the asset library?
This can be implemented with an add-on, but it would essentially have to reimplement TextureProgressBar from scratch.
The text was updated successfully, but these errors were encountered: