Class StereoDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.stereo_demo.StereoDemo

public class StereoDemo extends Object
Stereoscopic 3D demo showcasing side-by-side rendering for XR glasses.

Displays a scene with objects at varying depths to demonstrate the parallax effect between the two eye views. Close objects show strong stereo separation; distant objects appear nearly identical in both eyes.

Press SHIFT+F11 to toggle stereoscopic fullscreen mode.

  • 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: depth-layered reference objects, floor grid, floating particles, the orbiting cubes in their initial pose and the hint overlay.
    static void
    main(String[] args)
    Entry point for the stereo demo.

    Methods inherited from class Object

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

    • StereoDemo

      public StereoDemo()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the stereo 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: depth-layered reference objects, floor grid, floating particles, the orbiting cubes in their initial pose and the hint overlay. Called by both main(String[]) (via buildSceneState(ShapeCollection, Camera)) 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