r/GraphicsProgramming • • Oct 23 '26

Video CPU-rendered 3D engine - update

Enable HLS to view with audio, or disable this notification

The latest update of my CPU renderer built in Rust.
As I mentioned earlier, this is the years of development coming together in a totally different direction than the starting idea :)

In video the renderer runs at 960×840 with 4 rendering workers, and all of geometry processing, character animation, skinning and rasterization run on the CPU. Finished image is shown on browser trough canvas at the moment.

For now I have animated character with facial animation and a rigged body, textured environments, collisions and stair traversal, first and third-person controls....

Still early but it is coming along nicely :)

I didn't made the character - or better say, I took free models and combined them for this scene - data head + android body , and the star ship environment.

73 Upvotes

14 comments sorted by

View all comments

2

u/leonardsouza Oct 23 '26

cool to see skinning on the cpu too. how does the frame get to the canvas, is the renderer compiled to wasm with the workers as web workers, or native and streaming frames to the browser? if it's streaming that fits the remote viewer use case you mentioned really well. and are the edge functions simd by hand or left to the compiler?

1

u/Individual_One_1793 Oct 23 '26

Thank you!
My remote viewer renders on the server using JS CPU workers and sends lossless PNG frames to the browser, and the model stays on the server. I have tested hand-written WASM SIMD and it is about the same as current renderer on whole frame time, so I haven't included it. The most came from reducing repeated work and reading triangle data directly.