Skip to content

Boids flocking WebGPU implementation in C++, running in the browser, using Emscripten and FlockStorm

License

Notifications You must be signed in to change notification settings

Armchair-Software/boids-webgpu-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI Build

Boids demo with WebGPU & Emscripten for the Armchair Engine

This is a demonstration of FlockStorm running on the basic WebGPU engine demonstrated in the earlier demos.

This also (incidentally) demonstrates packaging for native platforms with Electron, and building those packages in CI steps. Those parts aren't necessary for the main demo, however.

For the other demos, see:

gif

Live demo

Live demo: https://armchair-software.github.io/boids-webgpu-demo/

This requires Firefox Nightly, or a recent version of Chrome or Chromium, with webgpu and Vulkan support explicitly enabled. On mobile, Chrome Canary is confirmed to work on phones that support Vulkan 1.3 upwards.

Dependencies

Building

The easiest way to assemble everything (including in-tree shader resource assembly) is to use the included build script:

./build.sh

To launch a local server and bring up a browser:

./run.sh

For manual builds with CMake, and to adjust how the example is run locally, inspect the build.sh and run.sh scripts.

About

Boids flocking WebGPU implementation in C++, running in the browser, using Emscripten and FlockStorm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published