Skip to content

Define immersive model presentation APIs and native-scale rendering - #165

Open
cabanier wants to merge 1 commit into
immersive-web:mainfrom
cabanier:define-model-immersive-apis
Open

cabanier wants to merge 1 commit into
immersive-web:mainfrom
cabanier:define-model-immersive-apis

Conversation

@cabanier

@cabanier cabanier commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Define HTMLModelElement.requestImmersive(), document availability/current-element state and exit APIs, and immersive change/error events.
  • Let the user agent choose presentation and rendering while requiring the model's native physical dimensions, without inline or immersive auto-fitting.
  • Match WebKit's transform handling: reset inline scale and translation on entry, honor subsequent entityTransform assignments in meter-based coordinates, and restore inline fitting on exit.
  • Specify user activation, loading and failure handling, serialized transitions, user-controlled exit, and cleanup on model removal, document deactivation, or loss of presentation support.
  • Require that immersive presentation MUST NOT create a WebXR session or expose device tracking data; keep fullscreen state independent.

Open design questions

The draft includes native Bikeshed ISSUE: blocks linked to:

These questions remain open; this PR does not resolve them. The selected model resource must be loaded and processed before entry, but the dependency-readiness requirement is explicitly marked for discussion


Preview | Diff

@cabanier
cabanier force-pushed the define-model-immersive-apis branch from 0e23da9 to 2ed69f4 Compare October 14, 2026 04:52
@cabanier
cabanier force-pushed the define-model-immersive-apis branch from 2ed69f4 to 7c26119 Compare October 14, 2026 18:08
Add requestImmersive(), document availability/current-element state and exit APIs,
and immersive change/error events. Define activation, loading, transitions, and
automatic cleanup when presentation or document eligibility ends.

Require native metric dimensions without inline auto-fitting. Remove inline scale
and translation on entry, apply subsequent entityTransform assignments, and
restore inline fitting on exit. Keep rendering user-agent-defined and prohibit
creating WebXR sessions or exposing device tracking data.

Record open questions about Document versus Navigator, immersiveElement,
unitless resource formats, loading external dependencies, and user-agent approval.

Refs immersive-web#161, immersive-web#162, immersive-web#163, immersive-web#164, immersive-web#166.

Validation: strict Bikeshed build and structural/example syntax checks.
@cabanier
cabanier force-pushed the define-model-immersive-apis branch from 7c26119 to d83a6c4 Compare October 15, 2026 21:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant