GeezerVison is showing github.com — Fixes for translucent images. by tychedelia · Pull Request #267 · processing/libprocessing
Conversation
Untinted image() draws and textured PBR draws took the opaque material path, and Bevy forces alpha to 1 for AlphaMode::Opaque. Any PNG with transparency rendered with a solid background, and translucent textures on 3D shapes were opaque.
Image tracks whether it has translucent pixels. The flag is computed on create/load, recomputed by update_pixels/update_raw, set by set(), inherited by copy_from, and assumed true for render targets since their alpha is unknown
until read back.
image() uses the flag to pick the transparent color material; texture() does the same for the PBR material. Opaque images keep the opaque path.
- Offscreen
Graphics now start cleared to transparent, like Processing's createGraphics, instead of gray.
- Python:
image(pg) accepts an offscreen Graphics directly. It previously raised expected an Image or Webcam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Visual regression: 1 changed of 43 cases
| case |
status |
detail |
py_flocking_gpu |
❌ changed |
7.93% of pixels differ |
If these changes are intentional, add the deliberate-rendering-change label.
baseline 803c75ce50 · adapter llvmpipe (LLVM 20.1.2, 256 bits) (Vulkan, Mesa 25.2.8-0ubuntu0.24.04.4 (LLVM 20.1.2))
Open the visual report · workflow run
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
catilac
catilac approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.