Skip to main content

XR Modes

Seamlessly switch between passthrough AR and immersive VR backgrounds using XRTransition while preserving all 3D scene state and object positions.

Desktop Controls (User Mode)​

  • Toggle AR / VR Mode: Left-click to switch between AR passthrough and immersive VR backgrounds.
  • Move Camera: Use W, A, S, D to move forward, left, backward, and right.
  • Elevate Camera: Use Q and E to move down and up.
  • Rotate: Right-click and drag the mouse to look around.

XR Controls​

  • Toggle AR / VR Mode: Ray-pinch with hands or pull the controller trigger to transition between passthrough AR and immersive VR.
main.js