-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Node icons in the 3D views have a crusty outline #82579
Comments
CC @MewPurPur 383c011 - 3D troubles with the stroke-opacity on the background path? |
This may be due to a ThorVG rasterization artifact. I'd suggest using the ThorVG reference rasterizer and outputting a 128×128 PNG to make sure (or use an editor plugin to save the editor icon as a PNG). Perhaps using premultiplied alpha to draw 3D editor gizmo icons will hide the issue without having to modify how the images themselves are generated. |
I've tried to use premultiplied alpha using #68548, but it breaks icon rendering:
I guess ThorVG needs to be told to generate textures for premultiplied alpha (and we need to add an option for it). |
https://thorvg.github.io/thorvg.viewer/ ++ Maybe you could scale the foreground path 1-3 pixels larger to avoid the black pixels when rendering small icons (floating point inaccuracy issues) |
Oh yeah, I immediately realized what the deal was, I just forgot to have a fill attribute there. I'll go over gizmos to see where else this problem appears. |
I get it in Autocomplete. |
Can you give an update on whether you see any issues in beta5? |
didn't test with beta 5, but still there in master |
So, transparent pixels become white? Image.fix_alpha_edges() is a possible expensive workaround for projects, but IMO it should be fixed properly for Godot if possible. Otherwise SVG parsing gets way slower. |
Is this problem caused by having bilinear filtering on? Since svg icons are rasterized at the native resolution (AFAIK, feel free to correct me), filtering should be turned off wherever the icons are being rendered. |
Hmm, too bad... Either way as Mew said, the problem should get fixed properly. |
Godot version
v4.2.dev.custom_build [e948ce405], but previous versions too
System information
linux
Issue description
there's a like 1px outline around the icons that flickers a bit when translated relative to the camera.
simplescreenrecorder-2023-09-30_10.42.10.mp4
simplescreenrecorder-2023-09-30_10.44.19.mp4
Steps to reproduce
add a camera or a decal or an audiostreamplayer3d to a scene and move the camera
Minimal reproduction project
any
The text was updated successfully, but these errors were encountered: