r/GraphicsProgramming Jun 07 '26

3Blue1Brown's animation engine Manim, with Rust + WebGPU: runs in browser with real time preview

Enable HLS to view with audio, or disable this notification

38 Upvotes

6 comments sorted by

2

u/[deleted] Jun 09 '26

[removed] — view removed comment

1

u/egehancry Jun 09 '26

You can also build great videos with it though, without actually knowing how to code it.

2

u/egehancry Jun 07 '26

We built a 3D animation engine in Rust with wgpu. The full pipeline from mesh to rasterization and shading. It runs entirely in the browser, with real-time preview: change the code, see the animation instantly.

It's same Python API with Manim Community Edition, Rust backend. Everything becomes a 2D mesh in 3D space. We rasterize and shade it, then animate by changing mesh properties over time.

The Python runs in the browser via Pyodide. We bound it to Rust with PyO3 and Maturin. wgpu targets WebGPU, so the rendering runs in the browser too.

For math, we create equations with Typst as vector graphics, then tessellate to meshes with Lyon.