Skip to content
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

GUI blend layering artifacts #2262

Open
einarf opened this issue Jul 15, 2024 · 2 comments
Open

GUI blend layering artifacts #2262

einarf opened this issue Jul 15, 2024 · 2 comments
Labels
bug gui Related to arcade GUI (sub module arcade.gui)
Milestone

Comments

@einarf
Copy link
Member

einarf commented Jul 15, 2024

We seem to get some blending artifacts when drawing the framebuffer to the screen. Especially when doing text rendering.

Text rendered on top of an opaque brown surface. It should not cause the blended pixels to make transparent holes in the surface making the window background visible through the surface once rendered to the screen.

This is the raw pixel dump from the surface itself: shown in gimp to identify the transparency

image

@einarf einarf added this to the 3.0 mandatory milestone Jul 15, 2024
@einarf einarf added bug gui Related to arcade GUI (sub module arcade.gui) labels Jul 15, 2024
@einarf
Copy link
Member Author

einarf commented Jul 15, 2024

Possibly we move this to 3.0.x if there is no time.

@einarf
Copy link
Member Author

einarf commented Jul 15, 2024

The only reasonable way to solve this is actually doing the math. I have a blending simulator we can use for this.

  • Simulate blending opaque, semi-transparent and fully transparent objects to the surface (no top of each other)
  • Simulate drawing this to the window with blending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug gui Related to arcade GUI (sub module arcade.gui)
Projects
None yet
Development

No branches or pull requests

1 participant