37 lowpoly medieval models for Vibe3D · a market, a forge, a windmill https://medieval.crt.fyi/
Find a file
CRT d051f02acb Stand the bellows on something
Opening the viewer found in ten seconds what the contact sheet had hidden
through two rounds of refinement: the bellows was cantilevered off a single
post driven through its middle, with four fifths of a door-sized leather bag
hanging in open air. The 300px thumbnail is too small to see what is under a
thing. A viewport you can orbit is not.

The support check passed it, and was right to by its own lights. The post
reaches the floor and the nose touches the hearth wall, so the assembly IS
connected to the ground. Connected is not the same as looking like it could
hold itself up, and looking like it can is the entire rule. The check
answers a question about topology; the rule is about weight.

So the bellows gets the bench it always had in life: two bearers let into the
forge wall at one end -- let INTO, a third of the way through, because a
bearer that stops at the wall face is a bearer resting on nothing -- carried
on legs at the other, with a rail across their tail. Six plain boxes, no
rotations at all, which after three two-rotation mistakes in this one model
was the point. The post moves out beyond the tail where it stops spearing
the bag.

Two more things came out of the same look.

The lever ran the wrong way -- from the post out into empty air, away from
everything. The end a smith pulls is the end he can reach standing at the
fire, so it now falls back over the bellows towards the hearth. And it had
nothing to pull: a rocker with no connection to the top board is a stick
resting on a post. There is now an iron link rod through the board, which is
also the only thing tying the two halves of the assembly together to the eye.

And the leather. The last round widened it so it would stop hiding between
the boards, but width and length were the same parameter, so it grew a third
longer in the same breath and the bag ended up running well past the boards
it is nailed to. Leather cannot outrun its boards -- they are what it is
fastened to. The two scales are now separate and the hide is wider (1.18 to
1.33) and shorter (0.82 to 0.9), which is the real thing and also spreads
the five end caps further apart than the old scheme managed, since they are
now staggered on purpose rather than as a by-product of the width.

+72 triangles, six boxes. 34 models, 29 094 triangles, all checks pass,
0 floating cases, GLB round-trip clean, Conformant, build clean.
2026-08-23 10:19:23 +00:00
media Stand the bellows on something 2026-08-23 10:19:23 +00:00
my-registry Stand the bellows on something 2026-08-23 10:19:23 +00:00
scripts Add the shield and the forge, both unfinished 2026-08-23 08:47:44 +00:00
src Stand the bellows on something 2026-08-23 10:19:23 +00:00
.gitattributes Fix the log pile's axis, and finish translating the repo 2026-08-21 12:34:44 +00:00
.gitignore Fix the log pile's axis, and finish translating the repo 2026-08-21 12:34:44 +00:00
bun.lock Initial commit: @medieval-kit registry and viewer 2026-08-20 23:15:58 +00:00
index.html Translate the whole repository to English 2026-08-21 07:35:13 +00:00
LICENSE Initial commit: @medieval-kit registry and viewer 2026-08-20 23:15:58 +00:00
models.json Initial commit: @medieval-kit registry and viewer 2026-08-20 23:15:58 +00:00
models.lock.json Stand the bellows on something 2026-08-23 10:19:23 +00:00
package.json Kit'i 26 modele çıkar, doğrulamayı ve inceleyiciyi genişlet 2026-08-21 02:44:58 +00:00
README.md Bring both READMEs up to date, and give them a picture 2026-08-23 05:25:14 +00:00
REFERENCE.md Translate the whole repository to English 2026-08-21 07:35:13 +00:00
tsconfig.json Initial commit: @medieval-kit registry and viewer 2026-08-20 23:15:58 +00:00
viewer.html Translate the whole repository to English 2026-08-21 07:35:13 +00:00
vite.config.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00
vite.viewer.config.ts Translate the whole repository to English 2026-08-21 07:35:13 +00:00

medieval-kit

A lowpoly medieval model library for Vibe3D, plus the viewer used to build it.

Vibe3D is a source-first model registry for Three.js: you install the TypeScript that generates a model into your own project rather than depending on an opaque package. This repository holds one such registry.

  • my-registry/ — the @medieval-kit registry, published to npm as @medieval-kit/registry.
  • src/ — a demo app that installs from both @medieval-kit and the first-party @scifi-kit, so the two can be inspected side by side.

The whole kit

Run the viewer

Requires Bun and a browser with WebGPU (the @scifi-kit model in the demo uses TSL node materials; the medieval kit itself does not).

bun install
bun run registry:build
bun run dev

Open /viewer.html for the model inspector: registry-grouped catalogue, live triangle counts, configuration sliders wired to configure(), a wireframe overlay, and per-model GLB download.

Use the kit in your own project

bunx vibe3d init
bunx vibe3d add @medieval-kit/wooden-barrel

See my-registry/README.md for the model list, configuration fields, and runtime contract.

Export to GLB

bun run export:glb                       # every model into glb/
bun scripts/export-glb.ts --one wooden-chest

The viewer's download button and this command share one implementation (src/glb.ts), so they produce byte-identical files. Colour travels as COLOR_0 vertex data and baseColorFactor stays white — the files carry no textures at all.

Verify

bun run typecheck
bun run verify        # geometry, protocol, metadata, actions
bun run verify:glb    # export every model, read it back, compare
bun run render        # renders/_sheet.png — actually look at the models

verify runs ~800 browser-free checks against the installed sources: geometry validity, winding, coplanar-face (z-fighting) detection, bounding-box limits, stable root and anchor identity across configure(), deterministic seeding, material ownership, idempotent disposal, action semantics, and agreement between each model and its published metadata.

Five of those deserve a note, because each was written after a real bug:

  • Winding is checked three ways, because no single measure is sufficient. Bodies of revolution use radial alignment — every radial face on the outer shell must point away from the axis, measured in height bands. Closed solids use signed volume: Σ a·(b×c)/6 is positive only when the winding faces outward. And edge balance catches a single flipped face, which signed volume misses — flipping one face took the volume from 0.058 to 0.039, still positive.
  • Z-fighting is checked by looking for triangles that share a plane, share a normal direction, and overlap in area. Edge contact between neighbouring boards is fine and is not flagged; genuine coplanar overlap is.
  • Metadata agreement verifies that every declared control key is a real config field, that declared part names match the model's actual parts, and — most importantly — that no mesh uses an undeclared material slot. A missing declaration is a material the consumer cannot reach through materials.override(). This check found real drift in four models the day it was added: a steel slot had been used but never declared.
  • Frame-rate independence for animated models: the same elapsed time is stepped at two different frame rates and the results must agree. A naive lerp fails this.
  • Nothing floats. Every check above asks about surfaces, and none of them can see a piece of a model hanging in the air with nothing under it — a chest lid separated from its chest passed all of them. scripts/support.ts voxelises the model, finds the connected components of occupied space, and requires each one to reach the floor. scripts/audit.ts runs that across the default, both slider extremes, both ends of a sweep, every action and the midpoint of a morph, because a variation must not break what the default gets right. It began at 22 failing cases: the bell and the sign had no supporting structure at all, the lantern was in four pieces, and the ladder's rungs were sized by a formula that disagreed with where its rails actually were.

Every check was mutation-tested: sabotage the code, confirm the check fails, restore, confirm it passes. A passing test is not evidence that it works.

render closed the one gap all of the above left open. Every check was geometric — triangle counts, winding, coplanarity, bounds. All of them caught real bugs, and none of them could say "this shovel does not look like a shovel." The renderer is a small software rasteriser: no browser, no GPU. The shovel was rewritten a fourth time, the hoe a third and the hay bale a second because of what those PNGs showed.

Showcase

The viewer can play itself. A tour orbits the whole catalogue on one continuous camera move, morphing each model's parameters as it goes, with the interface hidden so the frame is clean enough to record.

viewer.html?showcase=60

60 s is the default. The tour splits its running time equally between the models, so with 27 of them a 30 s run gives each 1.1 seconds — which is a flyby, not a demonstration. At 60 s each model gets 2.2 s, which is enough for the sweep to read.

Two things make the variation visible rather than merely present. Continuous controls travel the whole usable band every beat instead of two random draws inside it. And every beat is split in half so that the integer controls — stave count, plank count, spokes, rows, tines — can change at the midpoint, where the same dip that hides a model swap hides the rebuild. Those are the parameters a viewer actually notices, and morphing cannot interpolate them, so before the split they were pinned for the whole beat and the tour looked static.

Layout

my-registry/
  models/core/          shared palette, RNG, geometry vocabulary, part slots
  models/<model-id>/    one procedural model per folder
  meta.ts               single source for catalogue metadata
  build.ts              compiles models/ into dist/registry.json
  drafts/               kept in the tree, kept out of the build
src/
  lib/vibe3d/           Vibe3D contracts installed by `vibe3d init`
  models/               installed model source (owned, editable)
  viewer.ts             the model inspector
  glb.ts                GLB export, shared by the viewer and the CLI
  catalog.ts            viewer catalogue, derived from meta.ts
scripts/
  verify-model.ts       browser-free conformance checks
  verify-glb.ts         export/re-import round trip
  zfight.ts             coplanar overlap detection
  support.ts            voxel connectivity — nothing may float
  audit.ts              runs the support check across every configuration
  render.ts             offline software rasteriser → PNG contact sheet
  reference-shots.ts    one photographic reference per model, for comparison
  export-glb.ts         batch GLB export
media/                  images used by this README
models.json             which registries this project resolves
models.lock.json        install receipt; `vibe3d diff` compares against it

src/models/ is generated by vibe3d add but committed on purpose: it is the demo's own source, and keeping it in the tree is what makes vibe3d diff meaningful.

Released under the MIT License.