Skip to content

Clarify XRReferenceSpaceEvent.transform direction? #832

Closed
@klausw

Description

@klausw

Currently, https://immersive-web.github.io/webxr/#xrreferencespaceevent says:

The transform attribute describes the transform the referenceSpace underwent during this event, if applicable.

See also the corresponding explainer section https://github.com/immersive-web/webxr/blob/master/spatial-tracking-explainer.md#reference-space-reset-event

I think this is a bit ambiguous and could be interpreted in incompatible directions, can this be rephrased more precisely? And which direction should the transform go?

How about something like this for the explainer?

The reset event's transform describes the position and orientation of the post-reset reference space's origin relative to the pre-reset reference space origin. For example, if the reset event describes a correction to the floor height in a local-floor space, where the new floor level is 1m above the old floor level, the reset event's transform would have a position of (0, 1, 0). For a tracked object, the pose transform's Y position will be 1m less after the reset since it's now reported as being closer to the (adjusted) floor.

And this corresponding spec text?

The transform attribute describes the position and orientation of the post-reset reference space relative to the pre-reset reference space.

(I don't have a strong opinion about the direction of the transform. This seemed most natural and close to how originOffset works.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedThis is a good issue for anyone to pick up and work on filing a PR for.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions