Class RGBCubeDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.RGBCubeDemo

public class RGBCubeDemo extends Object
Demo showing a 3D cube of colored square plates where each axis represents a color channel.

Creates a 10x10x10 grid of square plates arranged as flat XY planes. Each plate is rendered as two textured triangles using a solid-color texture with a black border. Color is determined by the plate's 3D grid position:

  • X position → Red intensity (0-255)
  • Y position → Green intensity (0-255)
  • Z position → Blue intensity (0-255)

The black border around each plate visually separates individual cells. The result is a volumetric RGB color cube that can be explored by flying around.

  • 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 10x10x10 RGB color cube, camera at the demo's tuned pose.
    static void
    main(String[] args)
    Entry point for the RGB cube demo.

    Methods inherited from class Object

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

    • RGBCubeDemo

      public RGBCubeDemo()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the RGB cube 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 10x10x10 RGB color cube, 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