Class GiRadiusDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.gi_radius_demo.GiRadiusDemo
Radius-gated GI showcase: a 48 000-unit procedural tower district
stored as lean
TriangleMeshBlocks (the same geometry kind
streaming game worlds use). Without radius gating the bake would
grind the whole district forever; with e3d.giStage2Radius /
giStage3Radius / giStage4Radius set (config.yaml or -D), the light
bubble around the camera gets centroid bounce, then coarse lightmaps,
then fine lightmaps — and the bubble follows as you fly (WASD + mouse
drag; the catch-up watcher re-lights what you approach).
GI uses district-scale per-instance radius overrides (stage 2/3/4 = 24 000 / 10 000 / 5 000 units, mesh texel = 50 units) — the shared config.yaml values are FO4-scale (meters), far too small for this 48 000-unit district. An explicit -De3d.gi.stage*Radius / -De3d.gi.meshUnitsPerTexel flag still wins over the demo defaults.
The golden path (buildScene(ShapeCollection, LightingManager, Camera)) is GI-free and fully
deterministic (seeded heights and textures).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSky blue as opaque ARGB; the golden harness reads this for its background fill so the golden matches the live view. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbuildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera) Golden-harness entry: deterministic scene, no GI.static void
-
Field Details
-
SKY_BACKGROUND_ARGB
public static final int SKY_BACKGROUND_ARGBSky blue as opaque ARGB; the golden harness reads this for its background fill so the golden matches the live view.
-
-
Constructor Details
-
GiRadiusDemo
public GiRadiusDemo()
-
-
Method Details
-
main
-
buildScene
public static void buildScene(eu.svjatoslav.aukio.e3d.renderer.raster.ShapeCollection shapes, eu.svjatoslav.aukio.e3d.renderer.raster.lighting.LightingManager lighting, eu.svjatoslav.aukio.e3d.geometry.Camera camera) Golden-harness entry: deterministic scene, no GI.
-