Class RGBCubeDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.RGBCubeDemo
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 -
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 10x10x10 RGB color cube, camera at the demo's tuned pose.static voidEntry point for the RGB cube demo.
-
Constructor Details
-
RGBCubeDemo
public RGBCubeDemo()
-
-
Method Details
-
main
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 bothmain(String[])and the golden-image harness — must stay deterministic (no time, no unseeded randomness).- Parameters:
shapes- scene to add shapes tolighting- lighting to configure (unused here)camera- camera to position
-