Add Geometry Nodes blockout builder

This commit is contained in:
Meta Vens 2026-05-03 16:38:30 +01:00
commit c52c9b4023
6 changed files with 570 additions and 22 deletions

View file

@ -18,14 +18,21 @@ You can pass another path to the npm wrapper with `--blender`.
```powershell
npm run blockout:validate
npm run blockout:build -- --plan examples\visual-blockouts\pallas-species-strikes.service-ring-kappa.v0.blockout.json --save-blend --render-guides
npm run blockout:build-geonodes -- --plan examples\visual-blockouts\pallas-species-strikes.service-ring-kappa.v0.blockout.json --save-blend --render-guides
```
The build script runs Blender in background mode and writes generated files under
`experiments/blender/` by default.
## Geometry Script Direction
## Builder Paths
The current builder uses plain `bpy` primitives for reliability. The plan format
already names `geometry_script_tree` handles for each procedural organ, so the
primitive builders can be replaced with Geometry Script / Geometry Nodes modules
without changing downstream fixture data.
- `prototype`: legacy direct-object builder. It is useful as an old receipt, not
the target production path.
- `geonodes`: current Geometry Nodes builder. It creates a visible stage object
with a GN modifier and emits the service-ring maquette through a node tree.
The Geometry Nodes builder follows the pattern from procedural GN scripting:
create a `GeometryNodeTree`, build an explicit interface, create nodes with
support checks, use fields and math for generated surfaces, use placement
geometry for repeated details, assign materials in the graph, join the generated
organs, and attach the node group to a modifier.