Add XRSession.viewerSpace and tidy XRSpace explanations#491
Conversation
|
I think the addition of the If we get a few more people voicing support for this prior to the F2F I'm inclined to merge it, otherwise we'll likely take a straw poll at the F2F and merge it if that comes out favorably. |
cvan
left a comment
There was a problem hiding this comment.
see my comments for only formatting and conventions.
nice work! 👍
| ### Relating between XRReferenceSpaces | ||
| There are several circumstances in which developers may choose to relate content in different reference spaces. | ||
|
|
||
| #### Inline to Immersive |
There was a problem hiding this comment.
to be consistent with the headings elsewhere, Immersive should probably be immersive?
There was a problem hiding this comment.
I'm inclined to leave this one since it's a concept being referred to. The next section "Unbounded to Bounded" is the same.
| ## Practical Usage Guidelines | ||
|
|
||
| ### Inline Sessions | ||
| Inline sessions, by definition, do not require a user gesture or user permission to create, and as a result there must be strong limitations on the pose data that can be reported for privacy and security reasons. Requests for `identity` reference spaces will always succeed. Requests for an `XRBoundedReferenceSpace` or an `XRUnboundedReferenceSpace` will always be rejected on inline sessions. Requests for an `XRStationaryReferenceSpace` may succeed, but may also be rejected if the UA is unable provide any tracking information such as for an inline session on a desktop PC or a 2D browser window in a headset. The UA is also allowed to request the users consent prior to returning an `XRStationaryReferenceSpace`. |
There was a problem hiding this comment.
are user gesture and user permission the same?
There was a problem hiding this comment.
should inline be backticked or wrapped in quotation marks?
There was a problem hiding this comment.
nit: may succeed, but may also -> may succeed but may also
There was a problem hiding this comment.
users consent -> user's consent
There was a problem hiding this comment.
are user gesture and user permission the same?
Nope. User gestures are clicks/taps/etc. A user permission is a permission dialog that the user accepted.
There was a problem hiding this comment.
should inline be backticked or wrapped in quotation marks?
I think in this case it's ok because we're referring to the concept.
During the F2F we realized that this was an inadequate fix. "Screen" XRInputSources will need getPose with identity reference spaces

This PR addresses a few related things I noticed now that the getPose() changes have landed
getPose()in the explainer sample code