Skip to content

Spatial 3D models lifted off the page #172

Open

Description

@khufu-dev

In conjunction with Spatial CSS proposal, can <model> be extended to support 3D content rendered outside a portal in front spatial context? The 3D model could follow the rules of Spatial CSS including front-limit but be rendered outside a portal.

Spatial Mode Portal Mode
Stage mode Portal mode

Spatial CSS Explainer
Spatial CSS Spec

Activity

  1. khufu-dev commented on Oct 26, 2026

    @khufu-dev
    Author

    /tpac

  2. added
    TPAC
    on Oct 26, 2026
  3. khufu-dev commented on Oct 29, 2026

    @khufu-dev
    Author

    Discussed at TPAC. Needs more investigation on what the Spatial CSS syntax should be and whether it can be implemented without the full Spatial CSS implementation. There are no strong objections to having this feature.

  4. removed
    TPAC
    on Oct 29, 2026
  5. khufu-dev commented on Nov 9, 2026

    @khufu-dev
    Author

    To present the model element in spatial mode, with the content raised off the page, the CSS property spatial: page can be used with a front-limit greater than 0. If front-limit: 0 or spatial: page is omitted, then the model is presented in a portal. A spatial mode model element follows Spatial CSS rules.

    <model>
      <source src="/teapot.glb" type="model/gltf-binary">
      <source src="/teapot.usdz" type="model/vnd.usdz+zip">
      <img src="/img/teapot.png" alt="Teapot">
    </model>
    model {
     spatial: page;
     height: 200px;
     depth: 100px;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions