Skip to content

User-configurable transform for model when placed in AR #426

Closed

Description

@cdata

We scale and translate a model in order to frame it properly in inline scenarios. However, when the user goes to place the model in WebXR-based AR, the natural scale is used. And, the translation may not look right depending on geometry of the model in question.

This issue proposes that we enable authors to configure the relative scale, translation and rotation of the model for the purposes of presenting in AR.

Activity

  1. ronpadz commented on Jan 23, 2020

    @ronpadz

    This issue proposes that we enable authors to configure the relative scale...

    It feels like the ar-scale attribute should be extended beyond "fixed" and "auto" to include an integer representing the desired percent scaling of the model in AR. A common source of model acquisition is from asset stores and this would streamline their usage in model-viewer without having to first re-scale in modeling software when the default scale is not desirable. (edited for clarity)

  2. cdata commented on Jan 23, 2020

    @cdata
    ContributorAuthor

    It feels like the ar-scale attribute should be extended beyond "fixed" and "auto" to include an integer representing the desired percent scaling of the model in AR.

    @ronpadz I definitely agree with this; we might even get crazy and allow a float 😁

    The ar-scale attribute itself currently exists as an intermediary to support cases where native viewers can be configured to allow or disallow resizing when placing objects in AR. It's possible that this name is a bit confusing.

    The floor is open for suggestions for how best to accommodate the multi-dimensionality of this concept.

  3. ronpadz commented on Jan 23, 2020

    @ronpadz

    This issue proposes that we enable authors to configure the relative scale, translation and rotation

    I'd start by not trying to couple scale with translation and rotation as those properties may deserve their own attributes.

    I see the ar-scale attribute taking three values: "auto", percentage (float), or "fixed" whereby the latter uses the scale built into the model. If a percentage is stated then the model should be fixed at that percentage.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions