Giter Club home page Giter Club logo

Comments (3)

speigg avatar speigg commented on May 18, 2024

The way I've thought of this is: for AR, the stage (or the stage "center"), can travel with the user. The exact behavior can be defined by the UA (or the virtual reality), but I imagine a type of "leashing", such that the stage center is fixed at an appropriate point on the floor near the user, until the user moves beyond a certain radius, at which point the stage is dragged along. This is similar to the way that I've seen virtual realities implemented for HoloLens.

from webxr-polyfill.

blairmacintyre avatar blairmacintyre commented on May 18, 2024

When looking at what Hololens does, and to a certain extent what ARKit and ARCore do (no notion of stage, just anchors), compared to systems that have a notion of a "stage" (e.g., fixed VR setups like Vive/Rift), it makes less sense to think of this as a "stage". For example, in fixed VR, the user generally clears the floor of a room for the VR rig, and the "stage" actually does correspond to the physical area that the player can move. In a mobile setup (both AR systems, and untethered VR such as the newer WindowsMR devices) the floor cannot be assumed to be flat. So a "stage" means less. More importantly, the idea of "attaching things to world near the user" can be done in other ways using anchors and other application specific code.

The thought with the "floor" is to have the UA make (at any point in time) it's best guess as to were the floor is under the user (some systems, such as those based on 3DOF VR or current ARCore/ARKit) might have to guess; others might use the VR stage; others (such as Hololens, that has a full mesh) might actually make a pretty good guess.

A system that has a stage would expose that coordinate system. On other systems, given a floor, the application can implement the idea of a "traveling stage" as they need. I would imagine a simple demo system would have a method like getOrCreateStage(): Anchor to just retrieve a stage Anchor if it exists or create one based on the current value of the floor. A more complex system would, as you say, move it with the user.

from webxr-polyfill.

TrevorFSmith avatar TrevorFSmith commented on May 18, 2024

Working on this in PR #29

from webxr-polyfill.

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.