Draft, 29 November 2026: practice to be tried and revised.
A shape in a world can arrive two ways. It can be procedural: a recipe in the language (turn this profile, loft that path, scatter these stones) that the visitor's machine builds into a shape when the world arrives (Construction). Or it can be a mesh file: triangles made in another tool and brought in as data (a part naming a glTF file is designed, not yet available to worlds; the gltfimport package reads the files). The 3-D web is built around the first, but the second has its place.
Describe by default
- Make shapes from recipes wherever a recipe can make them well. Why: a recipe is kilobytes where its mesh and textures would be megabytes, so a world of recipes arrives quickly; it can be varied by changing a number (taller, older, a different seed); and it can be built at the detail the visitor's machine can afford.
- Recipes suit the made and the grown: buildings, furniture, turned and lofted things, terrain, paths, rocks, plants, anything repeated with variation. Why: these have structure a few rules capture, and they are what most of a world is made of.
- Build variety from one design with a seed, rather than many hand-made shapes. Why: a forest from three tree designs and a seed each is varied, small to send, and cheap to draw.
When a mesh file is the better choice
- A unique, sculpted, organic form you already have as a mesh, where the shape itself is the art: a statue, a character's face, a creature. Why: today an artist's sculpting tool is the quicker instrument for such a form. Recipes can describe organic forms too (a chess knight's horse head has been described in about nine thousand numbers of sculpting calls), but writing one by hand is still slow work, and tools that turn a mesh into a recipe are being built.
- A scan of something real: a room, an object photographed from all sides. Why: the point is that it is this exact thing, and its detail has no rule to capture.
- Something already made by someone else, under a licence that lets you use it. Why: rebuilding it as a recipe is work that buys little, unless it will be varied or reused widely.
- Animated characters with skins and clips made in an animation tool. Why: their rigging and motion are the tool's work and travel with the file.
Weigh the costs either way
| Recipe | Mesh file | |
|---|---|---|
| Size on the wire | Small | Large, especially with textures |
| Time to build on the visitor's machine | Some, at arrival (painted textures cost the most) | Little; the time goes into fetching instead |
| Variation | Free: change a field or a seed | A new file for each variant |
| Detail for the distance | Can be built at the detail needed | Needs simpler versions made in advance |
| Editing in the world | Change the recipe and the world rebuilds | Back to the other tool |
| Best for | Structure and repetition | Unique sculpted form, scans, existing assets |
- Mix them. A sculpted statue on a procedural plinth in a procedural square is a good world. Why: each method does what it is best at, and the world arrives fast because the large file is one thing, not everything.
- Keep mesh files lean: as few triangles as the form needs at the distance it is seen from, textures sized to match. Why: a mesh file is the one part of a world that costs its full size on every first visit.
- Consider turning a good mesh into a recipe when it will be reused or varied. Why: a recipe that captures a mesh's structure gives you every variant for the cost of one, and is small to send.
Open questions
- How simpler versions of a mesh for the distance are made: designed as the browser's own, by decimation on the visitor's machine, and not yet built.
- Whether compressed mesh formats (which the importer refuses today) are worth supporting for size on the wire.