Class TerrainDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.terrain_demo.TerrainDemo

public class TerrainDemo extends Object
Demo showing a procedurally generated mountain landscape using the diamond-square algorithm. Three colored light sources (warm orange, cool cyan, neutral white) illuminate the terrain from above, demonstrating dynamic flat shading. A fractal tree stands at the center of the terrain.
  • 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)
    Builds the demo scene: the diamond-square terrain (seed 42), a fractal tree rooted at the terrain's center height, and three colored light sources with markers.
    static void
    main(String[] args)
    Entry point for the terrain demo.

    Methods inherited from class Object

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

    • TerrainDemo

      public TerrainDemo()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the terrain demo.
      Parameters:
      args - command line arguments (ignored)
    • 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)
      Builds the demo scene: the diamond-square terrain (seed 42), a fractal tree rooted at the terrain's center height, and three colored light sources with markers. Camera is positioned at the demo's default view. Called by both main(String[]) and the golden-image harness — must stay deterministic (seeded randomness, no wall-clock time).
      Parameters:
      shapes - scene to add shapes to
      lighting - lighting to configure
      camera - camera to position