Class RainingNumbersDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.RainingNumbersDemo
All Implemented Interfaces:
eu.svjatoslav.aukio.e3d.gui.FrameListener

public class RainingNumbersDemo extends Object implements eu.svjatoslav.aukio.e3d.gui.FrameListener
Demo showing numbers falling through 3D space like rain. Creates 1000 randomly positioned text canvases displaying digits 0-9, which continuously fall downward and wrap around to create a "Matrix" style effect.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new RainingNumbersDemo instance.
  • 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: 1000 digit canvases scattered through the cubic area, camera at the demo's tuned pose.
    static void
    main(String[] args)
    Entry point for the raining numbers demo.
    boolean
    onFrame(eu.svjatoslav.aukio.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame)
    Animates all text canvases to fall downward each frame.

    Methods inherited from class Object

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

    • RainingNumbersDemo

      public RainingNumbersDemo()
      Creates a new RainingNumbersDemo instance.
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the raining numbers demo.
      Parameters:
      args - command line arguments (ignored)
    • onFrame

      public boolean onFrame(eu.svjatoslav.aukio.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame)
      Animates all text canvases to fall downward each frame. Numbers that fall below the area wrap around to the top.
      Specified by:
      onFrame in interface eu.svjatoslav.aukio.e3d.gui.FrameListener
      Parameters:
      viewPanel - the view panel
      millisecondsSinceLastFrame - time elapsed since last frame
      Returns:
      true to continue animation
    • 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: 1000 digit canvases scattered through the cubic area, camera at the demo's tuned pose. Called by both main(String[]) and the golden-image harness — must stay deterministic (no time, no unseeded randomness).
      Parameters:
      shapes - scene to add shapes to
      lighting - lighting to configure (unused here)
      camera - camera to position