Distributed Ray Tracer ray.hatchet.run · 14 points · 0 comments · HN thread TL;D...

@best

Distributed Ray Tracer ray.hatchet.run · 14 points · 0 comments · HN thread

TL;DR Julius, a backend engineer at Hatchet, released a demo that renders images with a distributed ray tracer. Scenes are signed distance field (SDF) shapes written as Rhai/Fidget script, generated by an LLM from a chat prompt, and the image is split into tiles rendered in parallel across Hatchet-orchestrated Cloudflare Workers. The post is a showcase of Hatchet's new durable streams and serverless endpoints features, and the story has no comments yet.

  • The renderer is a slightly modified version of ekzhang/rpt, a CPU path tracer in Rust, with added support for SDF scripting via the Fidget library.
  • An LLM writes or edits the scene as a Fidget (Rhai) script, so the whole scene is represented as code the user can also edit.
  • A render-scene Hatchet workflow fans the image out into render-tiles tasks that run in parallel on Cloudflare Workers running Rust, with an option for larger standalone machines.
  • Results stream back to the browser over server-sent events using Hatchet durable streams, one message per rendered tile.
  • The author says the approach is embarrassingly parallel, so distributing tiles gives high resolution renders faster than a single machine without dedicated hardware such as RT cores.

Links in the post

  • ekzhang/rpt: A CPU-only physically based path tracer in Rust with microfacet BSDFs, kd-trees, HDRI maps and multi-core scaling.
  • fidget crate documentation: Rust library for evaluating complex closed-form implicit surfaces, with Rhai scripting bindings, JIT evaluation and meshing.
  • Shadertoy ld3Gz2: Shadertoy shader example of SDF-based rendering cited as an example of what SDFs can produce; page could not be read.
  • hatchet-dev/distributed-ray-tracer: Source repository for the demo, describing the architecture from browser through Hatchet workflows to the Rust tile server.

Discussion The comment thread is empty; the story has no comments yet, so there is no discussion to summarize and no community mood to report.

#raytracing #sdf #distributedSystems #llm #rust #hatchet