Skip to content

Add Body field example by p5.strands and ml5.js - #1648

Open
pearmini wants to merge 9 commits into
processing:mainfrom
pearmini:body-field-example
Open

pearmini wants to merge 9 commits into
processing:mainfrom
pearmini:body-field-example

Conversation

@pearmini

@pearmini pearmini commented Nov 9, 2026 •

Copy link
Copy Markdown

This continues #1636, which closed when strands-examples was deleted in #1635. The branch is updated onto current main.

Keep named example scripts from main, and still allow a script URL plus the WebGPU addon for the Body Field sketch.
Use the variable name as the uniform name, and drop whole-number .0 suffixes inside the shader.
pearmini and others added 2 commits November 9, 2026 17:06
A copied sketch also needs the p5 WebGPU addon and ml5.js, which the example page loads outside the editor.
@ksen0

ksen0 commented Nov 12, 2026

Copy link
Copy Markdown
Member

Hi @pearmini ! Could you add a sensible fallback behavior and/or explanation please for browsers that do not have WebGPU support please? As long as it's clear that it's not a bug that the sketch doesn't load!

Browsers without WebGPU see an explanation on the canvas and do not start the camera, so a blank sketch is not mistaken for a bug.
Bring in the p5 2.4.0 update and point the WebGPU script note at that version.
@pearmini

Copy link
Copy Markdown
Author

@ksen0 I've updated it! I'm not sure if this is what you had in mind!

This branch has not been deployed

No deployments
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