Skip to content

Commit 158ff4a

Browse files
committed
Address feedback from nell
1 parent 04d8987 commit 158ff4a

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

index.bs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ Shortname: webxr
33
Title: WebXR Device API
44
Group: immersivewebwg
55
Status: w3c/ED
6+
<<<<<<< HEAD
67
TR: https://www.w3.org/TR/webxr/
8+
=======
9+
>>>>>>> Address feedback from nell
710
ED: https://immersive-web.github.io/webxr/
811
Repository: immersive-web/webxr
912
Level: 1
@@ -585,7 +588,7 @@ An {{XRFrame}} represents a snapshot of the state of all of the tracked objects
585588
[SecureContext, Exposed=Window] interface XRFrame {
586589
readonly attribute XRSession session;
587590

588-
XRViewerPose? getViewerPose(optional XRReferenceSpace referenceSpace);
591+
XRViewerPose? getViewerPose(XRReferenceSpace referenceSpace);
589592
XRPose? getPose(XRSpace space, XRSpace relativeTo);
590593
};
591594
</pre>
@@ -600,7 +603,7 @@ When the <dfn method for="XRFrame">getViewerPose(|referenceSpace|)</dfn> method
600603

601604
1. If the {{XRFrame}}'s [=active=] boolean is <code>false</code>, throw a {{InvalidStateError}} and abort these steps.
602605
1. Let |session| be the {{XRFrame}}'s {{XRFrame/session}} object.
603-
1. If |referenceSpace|'s [=XRSpace/session=] does not equal |session|, return <code>null</code> and abort these steps.
606+
1. If |referenceSpace|'s [=XRSpace/session=] does not equal |session|, throw a {{InvalidStateError}} and abort these steps.
604607
1. If the [=viewer=]'s pose cannot be determined relative to |referenceSpace|, return <code>null</code>
605608
1. Return a new {{XRViewerPose}} describing the [=viewer=]'s pose relative to the origin of |referenceSpace| at the timestamp of the {{XRFrame}}.
606609

@@ -612,15 +615,13 @@ When the <dfn method for="XRFrame">getPose(|space|, |relativeTo|)</dfn> method i
612615

613616
1. If the {{XRFrame}}'s [=active=] boolean is <code>false</code>, throw a {{InvalidStateError}} and abort these steps.
614617
1. Let |session| be the {{XRFrame}}'s {{XRFrame/session}} object.
615-
1. If |space|'s [=XRSpace/session=] does not equal |session|, return <code>null</code> and abort these steps.
616-
1. If |relativeTo|'s [=XRSpace/session=] does not equal |session|, return <code>null</code> and abort these steps.
618+
1. If |space|'s [=XRSpace/session=] does not equal |session|, throw a {{InvalidStateError}} and abort these steps.
619+
1. If |relativeTo|'s [=XRSpace/session=] does not equal |session|, throw a {{InvalidStateError}} and abort these steps.
617620
1. If |space|'s pose cannot be determined relative to |relativeTo|, return <code>null</code>
618621
1. Return a new {{XRPose}} describing |space|'s pose relative to the origin of |relativeTo|.
619622

620623
</div>
621624

622-
Issue: Describe behavior for passing <code>null</code> {{XRReferenceSpace}}s to {{getViewerPose()}} and {{getPose()}}
623-
624625
ISSUE: The last two steps of the {{getViewerPose()}} and {{getPose()}} algorithms need to be expanded.
625626

626627
Spaces {#spaces}
@@ -951,7 +952,7 @@ An {{XRPose}} describes a position and orientation in space relative to an {{XRS
951952

952953
The <dfn attribute for="XRPose">transform</dfn> attribute describes the {{XRRigidTransform}} between two {{XRSpace}}.
953954

954-
The <dfn attribute for="XRPose">emulatedPosition</dfn> attribute indicates the accuracy of the {{XRPose/transform}}.{{XRRigidTransform/position}} value. {{XRPose/emulatedPosition}} MUST be set to <code>true</code> if the given positional values are software estimations, such as those provided by a neck or arm model. {{XRPose/emulatedPosition}} MUST be set to <code>false</code> if the positional values are based on sensor readings.
955+
The <dfn attribute for="XRPose">emulatedPosition</dfn> attribute MUST be <code>false</code> if the {{XRPose/transform}}.{{XRRigidTransform/position}} values are based on sensor readings, or <code>true</code> if the position values are software estimations, such as those provided by a neck or arm model.
955956

956957
XRViewerPose {#xrviewerpose-interface}
957958
-------------
@@ -1012,9 +1013,9 @@ Note: Some input sources, like an {{XRInputSource}} with {{targetRayMode}} set t
10121013

10131014
The <dfn attribute for="XRInputSource">targetRaySpace</dfn> attribute is an {{XRSpace}} that tracks the pose of the preferred pointing ray of the {{XRInputSource}}, as defined by the {{targetRayMode}}.
10141015

1015-
The <dfn attribute for="XRInputSource">gripSpace</dfn> attribute is an {{XRSpace}} that tracks the transform that should be used to render virtual objects such that they appear to be held in the user's hand. If the user were to hold a straight rod, this {{XRSpace}} places the origin at the centroid of their curled fingers and where the <code>-Z</code> axis points along the length of the rod towards their thumb. The <code>X</code> axis is perpendicular to the back of the hand being described, with back of the users right hand pointing towards <code>+X</code> and the back of the user's left hand pointing towards <code>-X</code>. The <code>Y</code> axis is implied by the relationship between the <code>X</code> and <code>Z</code> axis, with <code>+Y</code> roughly pointing in the direction of the user's arm.
1016+
The <dfn attribute for="XRInputSource">gripSpace</dfn> attribute is an {{XRSpace}} that tracks the pose that should be used to render virtual objects such that they appear to be held in the user's hand. If the user were to hold a straight rod, this {{XRSpace}} places the origin at the centroid of their curled fingers and where the <code>-Z</code> axis points along the length of the rod towards their thumb. The <code>X</code> axis is perpendicular to the back of the hand being described, with back of the users right hand pointing towards <code>+X</code> and the back of the user's left hand pointing towards <code>-X</code>. The <code>Y</code> axis is implied by the relationship between the <code>X</code> and <code>Z</code> axis, with <code>+Y</code> roughly pointing in the direction of the user's arm.
10161017

1017-
The {{gripSpace}} MUST be `null` if the input source isn't trackable.
1018+
The {{gripSpace}} MUST be `null` if the input source isn't inherently trackable.
10181019

10191020
Layers {#layers}
10201021
======

0 commit comments

Comments
 (0)