feat(demos): add village and GI-radius demos exercising GI at scale
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 8 Oct 2026 21:06:57 +0000 (00:06 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 8 Oct 2026 21:06:57 +0000 (00:06 +0300)
commit652a0d5b37379488e8eb5c2ad0343e51aea5188f
tree97662a31e6bad91619aa14a30cd2977f1ea168d5
parent7b533e0eb755c4cd0de996fde96c85a12e84777a
feat(demos): add village and GI-radius demos exercising GI at scale

Add two demos that stress the global illumination bake on large
scenes, plus the harness and launcher support they need.

VillageDemo builds a night-time village of multi-floor houses (the
House-demo three-room layout per storey, with window and doorway
openings), streets, street lamps and a distant moon — roughly 10k
lightmapped quads and ~45 lamps, big enough to make bake scheduling
measurable. Interiors and exteriors bake via lightmapped composites,
the ground plane bakes at coarser units-per-texel, and --lm=N limits
lightmapping to the N houses nearest the village center for
distance-based GI experiments. Command-line flags control grid size,
floor count, texel density and thread count, and the demo sizes
e3d.gi.maxLights to its lamp count before baking.

GiRadiusDemo builds a 48 000-unit procedural tower district of lean
TriangleMeshBlocks to showcase radius-gated GI: per-instance
stage-2/3/4 radius overrides keep lightmap bakes to a bubble around
the camera that follows flight, with a frame-rate cap while the bake
is active so the render loop does not starve GI workers. Overrides
are per-instance, not JVM-global, so the launcher does not leak
district-scale radii into other demos. The scene is fully
deterministic (seeded heights and textures) and includes an FO4-style
sky color, sun glow billboard and colored street lamps for visible
bounce and bleeding.

DemoGoldens gains a per-entry background fill (0xFF ARGB) so goldens
match the live view's sky color, rendered through Snapshot.renderInto
with an explicit RenderingContext; gi-radius and village goldens are
added. The launcher lists both new demos, and HouseDemo drops unused
layout constants.
goldens/gi-radius.jxl [new file with mode: 0644]
goldens/village.jxl [new file with mode: 0644]
src/main/java/eu/svjatoslav/aukio/e3d/examples/gi_radius_demo/GiRadiusDemo.java [new file with mode: 0644]
src/main/java/eu/svjatoslav/aukio/e3d/examples/goldens/DemoGoldens.java
src/main/java/eu/svjatoslav/aukio/e3d/examples/house_demo/HouseDemo.java
src/main/java/eu/svjatoslav/aukio/e3d/examples/launcher/ApplicationListPanel.java
src/main/java/eu/svjatoslav/aukio/e3d/examples/village_demo/VillageDemo.java [new file with mode: 0644]