Show caves as a form with area sizes, and in the 3D world

The Caves view drops its node graph. Each cave file is one form beside
the scene, with a section for the cave, its tunnel, its cavern and the
pillars. A section the file lacks says "(unset)" and typing a value
writes it. EditableSceneView.showsNodes() lets a view ask for this.

Scenes can now be built at a size the studio picks. SceneView.sizes()
lists them, and scene() and parts() take a SceneRequest with the key,
variant and size. Caves offer 64 to 512 blocks across. The preview sends
only the carved blocks on the outside of the space, so 512 stays light.

The 3D world gets a Caves toggle. It generates the chunks of a 128, 256
or 512 square around the middle of the view and draws every air block
under the terrain top, coloured by height band, with a legend.
This commit is contained in:
piexel committed 2026-11-13 09:12:53 +01:00
1 parent e862a80615
commit 263f5baa3c
28 files changed
+958 -222

No files matched your search

@@ -204,7 +204,7 @@ class ModuleRegistryTest {
public String label() { return id; }
public String description() { return id; }
public List<com.volmit.tooling.SceneEntry> entries(com.volmit.world.PackWorld world) { return List.of(); }
public Optional<com.volmit.object.GeneratedObject> scene(com.volmit.world.PackWorld world, String key, int variant) {
public Optional<com.volmit.object.GeneratedObject> scene(com.volmit.world.PackWorld world, com.volmit.tooling.SceneRequest request) {
return Optional.empty();
}
};