Crucible 如何让智能体通过MCP构建可编辑的3D网页场景
Crucible通过MCP服务器让智能体构建3D场景、请求PNG预览、比较视角并继续修改,场景数据包含几何体、变换、材质、灯光和相机。它支持导入GLB、程序化环境、路径追踪静帧与动画MP4渲染,也能生成保持浏览器交互性的静态网页;安装需要Node.js 20.19或更高版本,项目采用MIT许可证且仍处于pre-1.0阶段。
文章梳理了智能体通过MCP服务器检查渲染预览并持续修改结构化场景的工作流,适合评估可编辑网页场景的实现方式。
Give an agent a 3D scene to build, let it inspect rendered previews, then keep the result as an editable web scene. Crucible puts that loop behind an MCP server. 🧩
The JavaScript engine was previously called 67.js. Its current package is @codepawlhq/crucible, and the old package is deprecated, so check the name before following an older installation guide.
The scene is represented as data: geometry, transforms, materials, lights and cameras. An agent can change those parts, request a PNG preview, compare viewpoints and render the next version.
What can you build with it?
▪️ Interactive scenes with imported GLB assets.
▪️ Procedural environments using terrain and vegetation addons.
▪️ Path-traced stills and animated MP4 renders.
▪️ Static web builds that keep a composition interactive in the browser.
🎬 The preview loop is the practical part. If a prop blocks the camera or a material looks wrong, the agent can look at the result and adjust the scene instead of only checking whether its code compiles. A review grid supports comparing up to four views.
There are separate rendering backends. WebGL2 covers the rasterizer and a browser path tracer, while WebGPU backends need a compatible browser. The MCP server uses a locally installed Chrome and offers GPU and CPU rendering modes.
The server accepts scene descriptions rather than arbitrary code or remote asset URLs. Assets still need to be supplied through the supported workflow; the engine is not generating a finished asset library for you.
🛠️ Installation requires Node.js 20.19 or later. The code is MIT licensed, and asset licenses remain separate. This is also a pre-1.0 project: minor releases can change its API.
For a small interactive scene or a rendered product shot, the useful combination is a structured scene, visual feedback and an output you can continue editing after the first render.
Code: github.com/codepawl/crucible
Live showcase: crucible.codepawl.com/showcas…
#3DRendering #MCP #AIAgents #OpenSource
来源:CuteGuy☣️ · x.com