Class HeadTrackingDemo

java.lang.Object
eu.svjatoslav.aukio.e3d.examples.head_tracking_demo.HeadTrackingDemo

public class HeadTrackingDemo extends Object
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
    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: compass ring, floor grid and hint overlay, camera at the center of the ring looking north (+Z).
    static void
    main(String[] args)
    Entry point for the head tracking demo.

    Methods inherited from class Object

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

    • HeadTrackingDemo

      public HeadTrackingDemo()
  • Method Details

    • main

      public static void main(String[] args)
      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 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