Newshot

分布式光线追踪器

Translation(model translation, not the source's own text)

▚▞Distributed Ray Tracer

先描述一个形状来开始。然后继续对话以细化它,或直接编辑脚本。

Render

这是什么?

这个演示通过一种称为 Signed Distance Fields 的光线追踪技术来渲染图像。整个光线追踪场景都以代码形式表示,并由语言模型编写。由于这种技术具有极佳的并行性,图像的每个分块都可以同时渲染,从而支持非常高的分辨率。Hatchet 用于编排这些并行的分块,底层计算使用运行 Rust 的 Cloudflare Workers(如有需要,也可以选择在更大的独立机器上运行)。编码 agent 同样使用 Hatchet + Cloudflare,并通过 durable streams 将消息回传给各个前端。

这个项目是为了展示 Hatchet 的两项新特性而构建的:

  • Serverless endpoints
  • Durable streams

Signed Distance Fields 是由 Inigo Quilez 推广的一种技术。此渲染器使用基于 Rhai 和 Fidget 的 DSL 来定义 SDF,你可以自行编辑。这种方式特别适合用 LLM 来细化,因为它把整个光线追踪场景都表示为代码。

渲染器本身是 rpt 的一个略微修改版本。

Source on GitHub ↗ · hatchet.run ↗

Only about 603 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗