Skip to content

V-key 2D toggle: cube shifts left + right eye goes black #575

Description

@dfattal

Summary

Pressing V (the 2D/3D toggle) makes the rendered content shift laterally to the left and the right eye goes black — the panel ends up showing a single, laterally-offset view instead of a clean 2D (averaged/centre) image.

Pre-existing — NOT a #573 regression

Confirmed present in the released v3 stack (runtime v1.17.1 + Leia v1.7.1), so it is independent of the #573 chroma-key removal / ABI-v4 work. Surfaced while validating the v4 stack; filing standalone so #573 can close on its own scope.

Suspected root cause

This is the #542 family — "the atlas recipe (grid/dims) must follow the active MODE, not the submitted view_count/imageRect." See the recurring note that xrLocateViews always returns the MAX view count and zone rects are zone-sized, so deriving the atlas grid from submitted views yields a 2D left-shift.

On the V-key 2D toggle, the atlas grid/dimensions for the content path should clamp to the active mode (2D = single centred view), but something downstream still derives a 2-view / offset layout — producing the left-shift and the dead right eye.

Likely areas to inspect:

  • The 2D-mode atlas recipe vs. the submitted view layout (clamp submission to mode; a divergence should only ever come from a hardware override).
  • Eye-position handling in 2D mode (the DP averages L/R to a midpoint — confirm the content/atlas side agrees and a single centred tile is sampled, not the left tile).

Repro

  1. Launch any 3D cube app on the Leia display (e.g. cube_handle_*, or the zones app).
  2. Confirm correct 3D.
  3. Press V to toggle to 2D.
  4. Observe: content shifts left; right eye black.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions