Skip to content

Image resize, Graphics as an image source and material setters. - #275

Merged
catilac merged 1 commit into
py-camerafrom
py-images-materials
Nov 23, 2026
Merged

catilac merged 1 commit into
py-camerafrom
py-images-materials

Conversation

@tychedelia

@tychedelia tychedelia commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

More of the python-api stuff the ported examples were written against.

img.resize() actually resamples now, on the GPU, and an offscreen Graphics works anywhere an image does, including background(), which replaces background_image().

Materials get methods for pipeline state like blend mode, alpha mode, unlit etc. Shader values like roughness stay in set(...) since they depend on the shader. Material.unlit() is gone, use mat.unlit().

Also 4x4 matrix uniforms, emissive as a kwarg, and lights can be transformed.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@tychedelia
tychedelia added this pull request to stack #277 November 13, 2026 01:16
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Visual regression: 1 changed of 43 cases

case status detail
py_flocking_gpu ❌ changed 7.72% of pixels differ

If these changes are intentional, add the deliberate-rendering-change label.

baseline 9a9fb9c5ac · adapter llvmpipe (LLVM 20.1.2, 256 bits) (Vulkan, Mesa 25.2.8-0ubuntu0.24.04.5 (LLVM 20.1.2))

Open the visual report · workflow run

@tychedelia
tychedelia force-pushed the py-images-materials branch 3 times, most recently from 5d6f01a to b2e74ae Compare November 23, 2026 17:41
@tychedelia
tychedelia marked this pull request as ready for review November 23, 2026 18:23
@catilac
catilac merged commit 27bddbf into main Nov 23, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants