Class GiRadiusDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.gi_radius_demo.GiRadiusDemo

public class GiRadiusDemo extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Sky blue as opaque ARGB; the golden harness reads this for its background fill so the golden matches the live view.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static void
    main(String[] args)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SKY_BACKGROUND_ARGB

      public static final int SKY_BACKGROUND_ARGB
      Sky 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

      public static void main(String[] args)
    • 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.