Class StereoDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.stereo_demo.StereoDemo
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 -
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: depth-layered reference objects, floor grid, floating particles, the orbiting cubes in their initial pose and the hint overlay.static voidEntry point for the stereo demo.
-
Constructor Details
-
StereoDemo
public StereoDemo()
-
-
Method Details
-
main
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 bothmain(String[])(viabuildSceneState(ShapeCollection, Camera)) 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
-