Wundur Studio

Log ·

Game assetsAgents

Agents build voxel models

A voxel model maker

Agents can now build game assets out of voxels: small coloured blocks, a sixteenth of a metre by default. A model has parts, pivots and named points, and the GLB export keeps them. It's saved as a .vox.json file.

The agent works with five tools. voxel_new starts a model. voxel_edit adds, cuts or paints shapes such as boxes, spheres, cylinders, cones, tori, lathed and extruded outlines, and lines, and can hollow, mirror, copy and move them. Each call is one undo step. voxel_palette sets the colours, from a picture if you like. voxel_view shows the agent what it has built, and voxel_export writes a GLB.

The export covers each flat surface with as few quads as it can and bakes the colours into a small texture with sharp pixels, so the model stays low poly. The 3D viewer and look_at_model now keep those pixels crisp instead of blurring them.

Later the same day came voxel_script, which builds a model from a short JavaScript program. The script runs in a sandbox with no files or network and a time limit. Its settings become variables, so the same script can make variants of a model with different settings, without sending the script again. An error names the script's line and changes nothing. A colour pass followed: paint and add can pick out voxels by colour, by exposed or buried faces, by position, under overhangs, at random, or in a brick or plank pattern, and shade them with noise, lighter or darker tones, or a tint.

Tool calls don't wait on each other

Wundur Studio's tool server answered one call at a time, so a call waiting on an Allow card or a model job held up every call after it from the same agent. Each call now runs on its own and answers when it's done. An Allow card left unanswered for 30 seconds also goes to your inbox, and after 10 minutes it's withdrawn, with nothing spent, and the agent is told.

Smaller things

All entries