OpenXR LOCAL_FLOOR vs STAGE: choose the right floor contract

OpenXR LOCAL_FLOOR vs STAGE explained: choose a floor contract, handle unavailable bounds, and apply reference-space changes without content jumps.

OpenXR LOCAL_FLOOR vs STAGE calibration with a laser level, headset, and taped room boundary
AI-generated editorial reconstruction. The marked lab visualizes origins and bounds; it does not show a measured OpenXR runtime result.

The deadline arrives when a standing experience becomes a room-scale one. A team can keep content floor-relative with OpenXR LOCAL_FLOOR vs STAGE unresolved, but the first feature that assumes a safe rectangle turns that ambiguity into a collision risk.

OpenXR 1.1 requires runtimes to support XR_REFERENCE_SPACE_TYPE_LOCAL_FLOOR. Support for XR_REFERENCE_SPACE_TYPE_STAGE remains optional. That difference makes LOCAL_FLOOR the portable baseline and STAGE a capability to discover, not a universal upgrade.

Neyrotex has not measured floor estimation, bounds, recentering, or tracking recovery on a physical headset for this article. The guidance follows OpenXR 1.1.65 and the current Khronos runtime inventory, which cannot substitute for testing the runtimes an app actually supports.

Myth

LOCAL_FLOOR and STAGE are interchangeable names for the same floor origin.

Reality

LOCAL_FLOOR follows LOCAL in X, Z, and orientation while placing Y at a floor estimate. STAGE defines a separate floor-centered rectangle and may expose usable bounds.

OpenXR LOCAL_FLOOR vs STAGE starts with availability

A runtime must report which reference spaces it exposes through xrEnumerateReferenceSpaces. Create the best space only after that query, and keep a fallback path that preserves the experience’s safety and comfort contract.

LOCAL_FLOOR matches LOCAL in horizontal position and orientation. Its Y origin uses the runtime’s best estimate of the floor beneath LOCAL. The specification requires the space, but it does not promise that every floor estimate has the same accuracy or calibration method.

STAGE describes a runtime-defined flat rectangle whose origin sits on the floor at its center. Its X and Z axes align with the rectangle edges. The runtime may be unable to locate it until the user defines a play area in system UI, and the space may not be supported at all.

Enumerate

Ask the runtime which spaces it supports before choosing an origin.

Create

Use LOCAL_FLOOR for a portable standing origin; create STAGE only when available and useful.

Query

Call xrGetReferenceSpaceBoundsRect when the experience needs a movement rectangle.

Listen

Process reference-space change events and apply the new definition at the event’s changeTime.

The floor can match while the contract stays different

The specification aligns LOCAL_FLOOR’s Y origin with STAGE only when several conditions hold: STAGE is supported, LOCAL has a valid position relative to it, bounds are available, and LOCAL lies inside those XZ bounds. Outside that state, LOCAL_FLOOR remains the runtime’s floor estimate under LOCAL.

Matching floor height does not grant room bounds. An application that turns equality of Y into permission to place content near walls has skipped the part of STAGE that matters most: the runtime-defined clear rectangle.

In a room-scale lab, an XR engineer can place a laser level on the floor while a second tester stands inside a taped rectangular boundary wearing an unbranded headset. The scene separates two visible facts: floor height and bounded area are related, but they are not the same measurement.

Choose by the physical promise

Seated or head-relative interface

Prefer VIEW or LOCAL as appropriate; a floor origin may add no reader or user value.

Standing content near the user

LOCAL_FLOOR provides a portable floor-relative baseline when the app does not depend on a safe room rectangle.

Room-scale movement

Use STAGE when supported and require valid bounds before placing content around a walkable area.

STAGE unavailable

Reduce the experience to a stationary or user-centered layout. Do not manufacture a rectangle from a floor estimate.

Bounds unavailable

Treat this as an operational state, not zero-sized proof. Keep content inside a conservative user-centered zone or stop room-scale placement.

Reference spaces can change while the session runs

Recenter actions, tracking recovery, or a runtime’s improved understanding of the environment can move a reference-space origin. OpenXR reports an upcoming change with XrEventDataReferenceSpaceChangePending.

The event carries a changeTime. Calls to xrLocateSpace or xrLocateViews at or after that time use the new definition. Applying the change early in game state while rendering frames against the previous space can make content jump; ignoring it can leave content anchored to a definition the runtime has replaced.

Before changeTime

Keep transforms and simulation consistent with the previous space definition.

At changeTime

Apply the new origin coherently to location, physics, navigation, and saved spatial state.

After change

Re-query bounds when STAGE matters and verify that content stays inside the current contract.

OpenXR LOCAL_FLOOR vs STAGE boundary check with tape measure, calibration marker, and headset at a room corner
AI-generated editorial reconstruction. Physical markers make the bounds check visible without inventing an OpenXR interface.

At the boundary corner, a tape measure, calibration marker, and headset can make the difference between a floor estimate and usable room bounds tangible. The photograph remains an illustration; only runtime queries and device testing establish the actual coordinate and safety state.

Test the failure, not only the preferred space

A portable matrix needs at least four cases: STAGE with bounds, STAGE supported but bounds unavailable, STAGE unsupported with LOCAL_FLOOR available, and a reference-space change during active content. Add tracking loss and recovery if the product keeps persistent spatial state.

Observe what the user sees. Content should not jump through the floor, rotate unexpectedly after recentering, or remain outside a newly defined room. A fallback that technically renders but places interaction behind the user or beyond reach is not a usable fallback.

Official sources

The OpenXR 1.1.65 specification defines LOCAL_FLOOR, STAGE, bounds, and reference-space change events. The Khronos runtime extension inventory provides a current compatibility signal across listed runtimes.

Khronos’s OpenXR 1.1 announcement explains why local-floor behavior moved into the core specification. Support data does not measure floor-estimate quality on a particular device.

Give each fallback an owner

Engineering owns enumeration, change-time handling, and bounds queries. Design owns the stationary layout used when a safe rectangle is absent. QA owns the four runtime states and the visible jump/reach checks.

Release ownership begins when one named person can show what the app does in every state.

Continue with the OpenXR spatial containers guide, review Meta Quest colocation, or browse the Virtual Reality section.