Skip to content
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

Handle the case when anchors are no longer trackable #28

Open
TrevorFSmith opened this issue Oct 4, 2017 · 1 comment
Open

Handle the case when anchors are no longer trackable #28

TrevorFSmith opened this issue Oct 4, 2017 · 1 comment

Comments

@TrevorFSmith
Copy link
Contributor

In world-scale apps, existing anchors will be become untrackable in some cases like when the user walks out of a room. Right now, the polyfill assumes that anchors are permanently trackable and has no way to indicate otherwise.

Add a flag to anchors aor fire an event when they become untrackable.

@blairmacintyre
Copy link
Contributor

In argon.js, we did two things related to this.

First, the call to determine the rendering coordinates of an anchor (which you should call each frame) would fail if the anchor location relative to rendering coordinates wasn't currently known. This handled both trackable anchors (e.g., image targets) and geospatial anchors when the browser was not giving geospatial tracking data to the app (e.g., when the user told the UA the app couldn't have location access).

We also (for convenience) had "lost" and "found" flags that would be set appropriately the first time an anchor was queried and the state changed, so that the app did not have to keep track of this (otherwise, apps have to implement the obvious pattern to notice state change).

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

No branches or pull requests

2 participants