GameDev.Tech
games & tools, built in Rust
You are visitor visitor count a nostalgic skin of gamedev.tech
<< NAVIGATION >>
* Modern site
* Games
* Tools
* Devlog
* Benchmark

Under Construction
Best viewed in
Netscape Navigator
@ 800x600
Steinmetz: I gave the level editor a stonemason

2026-11-24

Steinmetz is German for stonemason: the craftsman who turns a rough-hewn block into carved ornament. That is the entire job description. In the Cube Bauhaus level editor you select a rough blockout, type a prompt, and a validated, textured, AI-generated mesh replaces it in place — then persists with the map, like something you built on purpose.

Ken Gamble and I built it as Team LA45A for the Worlds in Action Hack [02-LA], over one hackathon weekend in July 2026. I then did what one does after a hackathon, which is to not write about it for four months.

Trust nothing, validate everything

The lazy version of this idea throws your selection over the fence at a model and pastes whatever comes back into the level. Steinmetz is more suspicious than that. The editor clips the selection, exports it as a unit-box GLB with a placement matrix, and renders orthographic views of it with a pure-CPU rasteriser. A local control plane called MeshDetail then checks every result — GLB structure, envelope, triangle budget — stores it content-addressed with provenance, and only then lets it anywhere near the map.

The generators sit behind one provider contract, so they are interchangeable:

• TRELLIS — local, from mesh and prompt. The only lane that actually reads your text prompt, and the UI says so.
• Hunyuan3D through ComfyUI — local, conditioned on the rendered views.
• Tripo3D — cloud, opt-in per job. Only the rendered PNGs leave the machine.
• Passthrough — no model at all. It exists to prove the whole contract works, and it is the most reliable employee on the team.

Numbers, as recorded in the repository

• local Hunyuan3D generation in about 21 s (about 26 s end to end), 6.45 GB peak VRAM
• local TRELLIS in 58.5 s
• cloud Tripo3D in about 117 s at 499,352 triangles
• a 719,048-triangle medieval tower reconstructed from four editor-rendered views
• more than 100 automated tests, which for a hackathon project borders on showing off

All of it runs locally on a single RTX 3090. The repository is source only — pipeline in Python, editor in Rust and Vulkan — with no model weights and no map packages. Licence: Steinmetz Non-Commercial License; commercial use needs a separate licence.

• Source: github.com/cronos3k/steinmetz

It is a hackathon project and makes no claim to be anything else. But the tower is still standing.

<< back to devlog
Valid HTML 4.01 Made with Notepad Best in Netscape

Copyright (c) 2026 cronos3k - GameDev.Tech - hand-coded by a Rust generator - best viewed @ 1024x768
*** Welcome to GameDev.Tech !!!   the games are bleeding-edge Rust/WASM, the homepage is gloriously 1999   ***   visit the modern site   ***