Skip to content

Introduce concept of active view #1096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

Manishearth
Copy link
Contributor

@Manishearth Manishearth commented Jul 6, 2020

This explicitly draws a distinction between active and inactive views, so that the list of views and viewports becomes immutable.

Fixes #1094 (comment)

Needed for immersive-web/layers#180 (comment)

cc @asajeffrey @cabanier


Preview | Diff

@Manishearth Manishearth requested a review from toji July 6, 2020 20:16
Copy link
Member

@toji toji left a comment

Choose a reason for hiding this comment

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

LGTM with one non-blocking question

@@ -1317,6 +1317,8 @@ A [=view=] has an associated <dfn for="view">projection matrix</dfn> which is a

A [=view=] has an associated <dfn for="view">eye</dfn> which is an {{XREye}} describing which eye this view is expected to be shown to. If the view does not have an intrinsically associated eye (the display is monoscopic, for example) this value MUST be set to {{XREye/"none"}}.

A [=view=] has an <dfn for="view">active</dfn> flag that may change through the lifecycle of an {{XRSession}}. [=Primary views=] SHOULD always have the [=view/active=] flag set to <code>true</code>.
Copy link
Member

Choose a reason for hiding this comment

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

Any reason why we don't say the primary views MUST always be active?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because that's a new constraint, the thing defining a primary view is that without it the system cannot perform. It's not impossible for devices to have primary views that are variable, it's just weird.

@Manishearth Manishearth merged commit 7e323fa into immersive-web:master Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When a session's list of views changes, only the current baseLayer is updated
2 participants