Skip to content

Particle, text and glTF fixes. - #276

Merged
catilac merged 2 commits into
py-images-materialsfrom
py-engine-fixes
Nov 23, 2026
Merged

catilac merged 2 commits into
py-images-materialsfrom
py-engine-fixes

Conversation

@tychedelia

@tychedelia tychedelia commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

More bugs hit while porting the particle and text examples.

Particle kernels now set up whatever attributes the shader reads, instead of wgpu crashing on an unbound array. emit() takes a value per particle (points, colors), and particles scattered from a mesh get its UVs, so you can do texture lookups with a Gltf.texture().

Text queries like text_width() now see a text_size() called earlier in the same frame, and text_to_points samples by length like p5 does.

Ctrl-C quits a sketch cleanly instead of printing an error, and fixes for logging.

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 13, 2026 •

Copy link
Copy Markdown

Visual regression: 3 changed of 43 cases

case status detail
py_flocking_gpu ❌ changed 7.94% of pixels differ
py_particles_emit ❌ changed 0.18% of pixels differ
py_particles_lifecycle ❌ changed 0.07% 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-engine-fixes branch 2 times, most recently from 653a932 to c87d7bd Compare November 17, 2026 20:30
@tychedelia
tychedelia requested a review from catilac November 23, 2026 18:37
@tychedelia
tychedelia marked this pull request as ready for review November 23, 2026 18:37
@catilac
catilac merged commit e74f600 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