GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing modelviewer.2plot.dev — dash-model-viewer | Scene Manifest Scene Manifest
The manifest is the sculptureWhen Generative 3D produces a model, the model does not produce geometry. It produces this:
Try the round tripPick a sample, edit it, render it. Nothing here calls a model — the manifests are committed JSON, so this works on a host with no API key.
Load the invalid fixture shows the importer's own refusal message against a committed broken file, rather than an error message typed into this page.
A generated sculpture is therefore not a one-off image you either keep or lose. It is a short, readable document you can save, edit in a text editor, hand to someone else, and render again for free. A manifest is sufficient on its ownThe renderer never needs the prompt. Everything required to reproduce the That matters for the obvious reason — you can render one on a host with no API key, which is what this site does — and for a less obvious one: it means the format has no dependency on a provider's output staying stable. Where the sentence is worth keeping, it goes in an optional
Delete it and the sculpture is unchanged. Keep it and you know what a file cost and where it came from. Units and frame, stated once
Top level
Unknown keys are rejected. That is deliberate and it is the point of the version number: if version 1 quietly ignored a key it did not know, a version 2 manifest using part groups would be accepted by a version 1 reader and render without them — a sculpture missing pieces, with nothing said. Strictness is what lets the version mean something. A partEvery field is required. Ranges are enforced, not advisory.
And the whole scene: at most 28 parts, output at most 3 MB. What
|
shape | size.x | size.y | size.z |
|---|---|---|---|
box | width | height | depth |
sphere | diameter | ignored | ignored |
cylinder | diameter | height | ignored |
cone | base diameter | height | ignored |
torus | ring diameter | ignored | tube diameter |
plane | width | ignored | depth |
Diameter, not radius. lib/sculptor.py passes size.x / 2 to the builders, so a sphere with size.x = 0.4 is 0.4 m across. Reading it as a radius gives you a model twice the size you meant, which is the kind of error that looks like a units bug.
The torus is the exception worth measuring. Its overall width is size.x + size.z — the ring diameter plus the tube diameter — because the tube sticks out on both sides. A torus with size.x = 3.0 and size.z = 0.2 is 3.2 m across, which matters when the scene bound is 5 m. An earlier version of this row called size.x the outer diameter, which was wrong by the tube.
Degrees, applied X first, then Y, then Z, about the fixed world axes — extrinsic XYZ, equivalently intrinsic Z-Y-X. The composed rotation is Rz · Ry · Rx.
This is stated because it is not guessable and it is not reproducible without it: the same three numbers in a different order give a different object. It was measured from lib/glb.py's _euler_to_quat, not assumed, and a test pins the resulting quaternion so the order cannot change silently.
rotation {"x": 90, "y": 0, "z": 0} -> quaternion (0.7071, 0, 0, 0.7071)
rotation {"x": 0, "y": 90, "z": 0} -> quaternion (0, 0.7071, 0, 0.7071)
A manifest is validated before anything is built, and a refusal names the field. "Invalid manifest" tells you nothing you can act on.
| What is wrong | What you are told |
|---|---|
"version": 2 | the version, and that this build reads 1 |
"shape": "dodecahedron" | the part index and the unrecognised shape |
"size": {"x": 40, …} | the field, the value, and the 4 m bound |
| 29 parts | the count and the limit |
"metallic": "shiny" | the field and that a number was expected |
| an unknown key | the key and its path — parts[3].colour, provenance.cost |
"emissive_strength": 3.0 | the field, the value and the 0–1 range |
"version", an integer, the first key on export. This build reads1 and 2. A version it does not know is refused whole, with the number in the message, and is not partially read — a newer manifest may use shapes this build cannot draw, and rendering the parts it recognises would hand you a sculpture with pieces missing and say nothing.
schema, so version 1 expresses its output exactly and stays readable by anything that only knows version 1. The version written is the lowest one that can express the sculpture, not the highest this build knows.
existed to make. The three samples above render byte-for-byte what they rendered before version 2 existed, and a test asserts it by SHA-256.
Version 2 adds three entries, and they compose: a defs block that names sub-assemblies, a ref that places one, and a group that gathers parts under a shared transform.
| Entry | Keys | Means |
|---|---|---|
| a part | as version 1 | draw this here |
ref | ref, position, rotation, name | place the named def here |
group | group, position, children, rotation | move these together |
defs.<name> | a part without position, or {"children": [...]} | a thing worth placing more than once |
Italic keys are optional.
A def has no position, and that is the load-bearing rule. A def describes a thing; a ref says where a copy of it goes. Because a ref carries only a name, a position and a rotation, it cannot restyle or resize what it places — so every placement of a def provably shares one mesh and one material. That is where the saving comes from, and it is a fact about the schema rather than the result of comparing parts and hoping.
{
"version": 2,
"defs": {
"wheel": {
"name": "wheel", "shape": "torus",
"size": {"x": 0.5, "y": 0.5, "z": 0.12},
"rotation": {"x": 90, "y": 0, "z": 0},
"color": "#3B2F2A", "metallic": 0.1,
"roughness": 0.85, "emissive_strength": 0.0
}
},
"parts": [
{"ref": "wheel", "position": {"x": -0.42, "y": 0.25, "z": -0.26}},
{"ref": "wheel", "position": {"x": 0.42, "y": 0.25, "z": -0.26}}
]
}
Load cart.json in the round trip above to see it whole. Eight parts are drawn from four entries; the file holds four meshes rather than eight, and it is 69% smaller than cart-flat.json, which is the same sculpture with every part placed by hand. Both are bundled, and a test asserts they put every node in exactly the same place — that is what makes them the same sculpture rather than two similar ones.
cart.json | cart-flat.json | |
|---|---|---|
| Entries written | 4 | 8 |
| Parts drawn | 8 | 8 |
| Meshes in the file | 4 | 8 |
| Size | 44 KB | 143 KB |
The limits count what is drawn. A ref costs its def's leaf count every time it is placed, so the 28-part ceiling applies after expansion — four refs to a five-part assembly are twenty parts, because that is what the viewer carries. Groups nest at most 4 deep and defs holds at most 8 entries; a def that contains itself is refused by name rather than by running out of stack.
Rotations compose; they do not add. A group turned about X holding a part turned about Y is not the same as one part turned about both — Euler angles do not add, and the manifest is expanded through quaternions so that the sculpture you wrote is the sculpture you get.
What version 2 does not change: the exported .glb is still a flat scene — shared meshes, one node per part, no parent nodes. Grouping is an authoring convenience and a size saving, not something a consumer of the file sees. Making the authored structure survive export is a separate change and is not in this release.
Export writes sorted keys, fixed float precision and a trailing newline, so:
export(import(m)) == m for every manifest this build accepts
import(export(scene)) renders byte-identical .glb output
Both are tests, not intentions. Byte-stability is also what makes two manifests diffable — an unstable writer would show a diff on every export and hide the one change you made.
A pasted manifest is untrusted input from a visitor, so it takes the same path as an image on Texture Upload, through the shared rulebook in lib/uploads.py:
job — the same reasoning that keeps generated .glb output in a data: URL rather than a server-side store, and a test asserts neither exists.
A manifest cannot execute anything; it is primitives and numbers. Validation is protecting you from a file that renders nothing and does not say why.
Both generating pages — Generative 3D and Sculpt from an Image — offer two downloads once a build finishes:
| Download | Why |
|---|---|
| the manifest | The valuable half. Re-import it here and the same sculpture renders for free; edit it first and it costs nothing either. It carries the prompt, model, cost and date in provenance. |
the .glb | The object itself, for a game engine, a 3D print, or anywhere that reads glTF. |
The .glb is rebuilt from the stored manifest on demand rather than carried around as bytes. lib/glb.py is deterministic, so it is the same file the viewer is showing — and it keeps a megabyte of binary out of the browser.
Neither download touches the disk. The bytes are built in memory and handed to the response: no server-side path, no store, no temp file and nothing to clean up, which is the same reasoning that keeps the viewer's src a data: URL.
The filename is derived from name — slugged, capped and given a fixed extension — so a model that names a sculpture ../../etc/passwd produces etc-passwd.glb.
Three samples and one deliberately broken fixture, all committed as JSON in docs/scene-manifest/samples/:
| File | Why it exists |
|---|---|
lighthouse.json | The example at the top of this page, byte for byte. Two parts. |
colonnade.json | Exactly 28 parts — the inclusive limit, proven here rather than only in a test. |
brazier.json | emissive_strength at its ceiling of 1.0. |
INVALID-fixture.json | Refused on purpose. Named so nobody mistakes it for a sample. |
They are hand-authored, not model output, and that is a deliberate change from the original plan. Two reasons: a model will not produce exactly 28 parts on request, and the limit is the thing worth proving; and a hand-authored file costs nothing to regenerate when the schema gains a version 2. Their provenance.model says hand-authored rather than naming a model that did not write them.
This site carries no provider keys — it is documentation and does no production spend (why) — so nothing on this page calls a model.
That is the useful half of the format rather than a limitation to apologise for: the round trip works with no key at all. Import a manifest, render it, download the .glb. The model was only ever the manifest's author, and it has already done its part.
Source: /scene-manifest