Class HeadTrackingDemo
java.lang.Object
eu.svjatoslav.aukio.e3d.examples.head_tracking_demo.HeadTrackingDemo
Head tracking demo for RayNeo XR glasses.
The camera stands at the center of a compass ring: eight direction labels surround you at every azimuth. With glasses plugged in, turn your head — the world stays fixed in space and the labels pan by. Without glasses, drag the mouse / use arrow keys instead.
Head tracking is automatic in every engine app (including this
one): the glasses are hot-plug detected, no setup code needed.
Press Scroll Lock to recenter the view to your current head
pose. Disable with -De3d.headtrack=false.
-
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: compass ring, floor grid and hint overlay, camera at the center of the ring looking north (+Z).static voidEntry point for the head tracking demo.
-
Constructor Details
-
HeadTrackingDemo
public HeadTrackingDemo()
-
-
Method Details
-
main
Entry point for the head tracking 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: compass ring, floor grid and hint overlay, camera at the center of the ring looking north (+Z). Head tracking itself is hot-plug auto-started by the view panel — nothing to wire. 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
-