Hatchet 分散式光線追蹤示範展示無伺服器端點與持久串流
Distributed Ray Tracer
Hatchet 示範以 Signed Distance Fields 技術進行分散式光線追蹤,並運用無伺服器端點與持久串流協調平行運算、傳遞訊息。
AI 伴隨問答
針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:
What is this?
This demo renders images through a ray-tracing technique called Signed Distance Fields. The entire ray-traced scene is represented as code and written by a language model. Because this technique is embarrassingly parallel, each tile of the image can render simultaneously up to a very high resolution. Hatchet is used to orchestrate the parallel tiles, using Cloudflare Workers running Rust as the underlying compute (with an option to run on even larger, standalone machines if needed). The coding agent also uses Hatchet + Cloudflare and durable streams are used for passing messages back to each frontend.
This was built to showcase two new Hatchet features:
Signed Distance Fields are a technique popularized by Inigo Quilez. This renderer uses a DSL based on Rhai and Fidget to define the SDFs, which you can edit yourself. This approach is uniquely suited to refining with LLMs because it represents the entire ray-traced scene as code.
The renderer itself is a slightly modified version of rpt.