GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixes for translucent images. by tychedelia · Pull Request #267 · processing/libprocessing

Conversation

@tychedelia

@tychedelia tychedelia commented Nov 10, 2026

Copy link
Copy Markdown
Member

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.

All reactions
@tychedelia
Fixes for translucent images.
c3c8e3e
@tychedelia
tychedelia requested a review from catilac November 10, 2026 21:46
@github-actions

github-actions Bot commented Nov 10, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tychedelia added 2 commits November 10, 2026 20:19
@tychedelia
Pixel fixes.
324e3ef
@tychedelia
Change conformance strategy.
54e9f04
catilac
catilac approved these changes Nov 11, 2026
View reviewed changes
tychedelia added 2 commits November 11, 2026 12:57
@tychedelia
Pixel fixes.
5a290a4
@tychedelia
Clippy.
dcc517a
@tychedelia
tychedelia merged commit a2b2d78 into processing:main Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@catilac catilac catilac approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@tychedelia @catilac
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.