Skip to content

Explicitly specify how the views array is populated#614

Merged
toji merged 2 commits into
immersive-web:masterfrom
Manishearth:views
May 1, 2019
Merged

Explicitly specify how the views array is populated#614
toji merged 2 commits into
immersive-web:masterfrom
Manishearth:views

Conversation

@Manishearth

@Manishearth Manishearth commented Apr 27, 2019

Copy link
Copy Markdown
Contributor

Moved from #610 which got accidentally closed due to a branch being deleted

fixes #565

r? @NellWaliczek

@toji toji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good! Left a few minor comments that I would appreciate if you could address, then I'm happy to merge it.

Reading through this does highlight to me that a structural change to the spec that @NellWaliczek previously suggested could help this read better. I'm happy to address that after this lands, though, since it would mostly involve moving text around rather than changing any verbiage you've got here.

Comment thread index.bs Outdated
Comment thread index.bs
Comment thread index.bs Outdated
@Manishearth

Copy link
Copy Markdown
Contributor Author

Updated!

(I'm okay with re-splitting out the initialize algorithm, or splitting out just the loop part if y'all want it)

@toji toji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll give Nell a chance to approve prior to merging, but it looks good to me.

@NellWaliczek NellWaliczek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just nits left. I'm approving under the assumption that the nits are addressed :)

Comment thread index.bs Outdated

Each {{XRSession}} has a <dfn for="XRSession">mode</dfn>, which is one of the values of {{XRSessionMode}}.

The {{XRSession/viewerSpace}} on an {{XRSession}} has a <dfn for="XRSession/viewerSpace">list of views</dfn>, which is a [=/list=] of [=view=]s corresponding to the views provided by the underlying device.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

underlying device

Don't we have a variable that defines this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Comment thread index.bs
1. Initialize |xrview|'s {{XRView/eye}} to |view|'s [=view/eye=]
1. Initialize |xrview|'s {{XRView/projectionMatrix}} to |view|'s [=view/projection matrix=]
1. Let |offset| be an {{XRRigidTransform}} equal to the [=view offset=] of |view|
1. Set |xrview|'s {{XRView/transform}} property to the result of [=multiply transforms|multiplying=] the |offset| transform by the {{XRViewerPose}}'s {{XRPose/transform}}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone not me should confirm this shouldn't be an inverse...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@toji or @klausw ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm gonna go out on a limb here and say that I'm pretty sure that this shouldn't be an inverse (unlike the handling of the bounds geometry, which did need to be.)

Gonna merge this now, and accept public shaming from @klausw if I'm wrong.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm more concerned about the multiplication order than whether it should be an inverse, but I'm reasonably sure about both.

Comment thread index.bs
@toji toji added this to the April 2019 milestone May 1, 2019
@toji
toji merged commit 1010984 into immersive-web:master May 1, 2019
@Manishearth
Manishearth deleted the views branch May 1, 2019 00:22
@AdaRoseCannon AdaRoseCannon added the ed:spec Include in newsletter, spec change label May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ed:spec Include in newsletter, spec change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getViewerPose()s use of XRSpace doesn't quite specify how views work

4 participants