Skip to content

Add WebGPU N-Body Galaxy demo#79

Open
DaKerboul wants to merge 1 commit into
mikbry:mainfrom
DaKerboul:add-nbody-galaxy
Open

Add WebGPU N-Body Galaxy demo#79
DaKerboul wants to merge 1 commit into
mikbry:mainfrom
DaKerboul:add-nbody-galaxy

Conversation

@DaKerboul

Copy link
Copy Markdown

Adds a real-time gravitational N-body galaxy to the Demos section. Every body attracts every other one, a brute-force O(N²) sum recomputed each frame in a WebGPU compute shader (tiled into shared memory, symplectic integration so the disk holds its shape). No server, no precompute.

Runs in Chrome/Edge, Safari 18+, and recent Firefox.

Live: https://dakerboul.github.io/nbody-webgpu/
Source: https://github.com/DaKerboul/nbody-webgpu

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.

1 participant