Skip to content

By PromptFission2 min read

procgen-hy4 lets a cheap model build 3D kits by answering it in eight lines or fewer

A C++ geometry checker and a fail-fast harness let Hy4 Flash write parametric 3D models. In four blind matchups with pricier models it won two, at about a tenth of the cost.


procgen-hy4, from the GitHub account wrong-nebula, is a procedural 3D modeler built so that an inexpensive language model can drive it. The model writes a short Python script; a C++ core turns that into geometry and then refuses to accept it until a list of checks pass. The repo includes four results against frontier models, two of them losses.

How it works

The model never emits a mesh. It writes a kit builder: a table of reference dimensions, then five functions covering the base, the main mass, openings or mechanism, secondary parts, and details. Each kit keeps adjustable controls, such as a diameter.

The C++20 core, pgm, evaluates the script into a parametric geometry graph and runs the gates. pgm check wants closed, manifold, correctly oriented meshes. pgm sweep rebuilds the kit at the default, minimum and maximum of every control. pgm audit builds a contact graph and fails detached parts. A second layer adds collision tests in MuJoCo, a free-spin test for mechanisms, and a vision critic limited to seven ranked complaints.

The part aimed at small models is the reporting. One command, verify_round.py, runs every gate, prints at most eight lines, and writes a stamp file only when everything passes. The README’s reasoning is that this keeps the model’s context small and means it “cannot claim a pass it did not get”.

Around that sits an evolution loop: Hy4 Flash seeds the builders, the function with the worst defect gets rewritten, and proportions are tuned with CMA-ES, an optimizer that needs no model calls.

The results

Each Hy4 Flash kit was judged blind against a frontier model’s build of the same brief. These are the author’s numbers from runs on November 21; p is the judges’ calibrated probability of preferring the Hy4 build.

Kit Rival Hy4 preferred Hy4 cost Rival cost
Railway turntable gpt-6.1-terra (high) yes, p = 0.71 $0.048 $0.486
City gate gpt-6.1-terra (high) yes, p = 0.68 $0.057 $0.434
Metro entrance gpt-6.1-sol no, p = 0.19 $0.044 $0.764
Iron shopfront gpt-6.1-sol no, p = 0.19 $0.045 $0.619

Four briefs is a small sample, and the rival builds are not in the repo. The README also notes that none of the four Hy4 kits passes a stricter intersection check, added after these runs, because solids of the same material overlap inside the merged result. We covered the model itself in our Hy4 flash post.

Try it yourself

The repo is MIT-licensed. Building pgm needs CMake 3.24 or later, a C++20 compiler and Python 3.10 or later; rendering one of the included kits needs nothing else. The MuJoCo gates use uv, the depth tools need torch, and the evolution loop needs an OpenRouter key. A sibling repo, procgen-kit, is meant for other models, including local ones.

We have not built or run any of it. This is based on the README and the results file in the repo.