Class TerrainDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.terrain_demo.TerrainDemo
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 -
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) 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 voidEntry point for the terrain demo.
-
Constructor Details
-
TerrainDemo
public TerrainDemo()
-
-
Method Details
-
main
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 bothmain(String[])and the golden-image harness — must stay deterministic (seeded randomness, no wall-clock time).- Parameters:
shapes- scene to add shapes tolighting- lighting to configurecamera- camera to position
-