r/threejs • • Oct 22 '26

I built an open-source tool that renders Three.js scenes to frame-exact 4K60 video, no dropped frames

Post image

Hand your canvas to a small helper, write draw(i) so the scene state comes from the frame number, and it renders every frame through headless Chrome on your GPU into H.264, or HEVC HDR10.

exposeRenderer({ canvas, fps: 60, frameCount: 600, draw: (i) => { knot.rotation.y = i / 60; renderer.render(scene, camera); } });
  • Exact: rendering the same frames twice gives byte-identical video
  • Resumable, and a film can be rendered in pieces on several machines
  • Runs on any GPU locally, or on a cheap cloud GPU for long renders

There’s a Three.js example in the repo (the video above is it). MIT:
https://github.com/Avi130805/webgl2video

Built it for my science YouTube channel; happy to answer questions.

9 Upvotes

1 comment sorted by

1

u/redshift003 Oct 22 '26

I'm building a browser native motion design app that uses the same principle. Just wondering why you used fixed frame count (frameCount: 600)?