Giter Site home page Giter Site logo

Comments (4)

bialpio avatar bialpio commented on May 29, 2024

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.

thetuvix avatar thetuvix commented on May 29, 2024

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.

Manishearth avatar Manishearth commented on May 29, 2024

Could we achieve the same thing by making Anchors have an XRSpace attribute (“has-a” vs “is-a” relationship)?

👍, we do something similar for input sources. Input sources have an XRSpace, they are not XRSpaces themselves.

from anchors.

bialpio avatar bialpio commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.