Comments (4)
Could we achieve the same thing by making Anchors have an XRSpace attribute (“has-a” vs “is-a” relationship)? I’m not sure if there are any guidelines about API design that we should follow here.
Additionally, if we do decide on making anchors be XRSpaces / XRReferenceSpaces, we can consider extending XRSession.requestReferenceSpace()
to allow for anchor creation instead of having an additional method to do so.
from anchors.
Anchors should definitely provide a space for coordinate transforms. I'm less sure if they should directly be spaces.
We already have cases of WebXR types such as input sources that are then composed of multiple spaces (e.g. grip space and target ray space). It seems fairly clean to run with that pattern - apps create logical objects such as anchors that can then be composed of 1 or more spaces through a "has-a" relationship.
from anchors.
Could we achieve the same thing by making Anchors have an XRSpace attribute (“has-a” vs “is-a” relationship)?
from anchors.
Closing the issue. Current approach seems to be to expose XRSpaces via "has-a" relationship. Please reopen if you disagree.
from anchors.
Related Issues (20)
- Explainer seems to under-explain API HOT 2
- Ensure algorithms return something HOT 4
- Create an anchor from hit test result should not use native origins HOT 11
- Consider merging XRAnchor and its space into an XRAnchorSpace HOT 2
- Should XRHitTestResult.createAnchor() have the pose argument? HOT 5
- Question: will the spec support other APIs creating Anchors and handing them back? HOT 1
- Add IPR manager required files
- Should move discussion and API for "creating anchor from hitTestResult" to hit-test API HOT 2
- Device/Browser combo that currently support anchors HOT 15
- Anchor reference space ancestry HOT 3
- Small issue on `README.md` and `explainer.md`? HOT 2
- No way to detect if a feature is enabled for a session. HOT 1
- No way to get XRPose for just created Anchor. HOT 1
- Deleted Anchors still present in frame.trackedAnchors for that frame HOT 4
- Feasibility and desirability of persisting anchors HOT 6
- Persisting anchors HOT 6
- Attach plane models to surfaces for occlusion and collision detection HOT 2
- Can a model freely move in AR space? HOT 5
- Top view map of SLAM HOT 2
- Allow a limit of the number of active and persistent anchors HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anchors.