Comments (3)
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.
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.
Working on this in PR #29
from webxr-polyfill.
Related Issues (20)
- View Animation gtlf HOT 1
- floor anchor in common.js in examples won't work in general
- Can I use OrbitControls or TrackballControls? HOT 2
- XRPointCloud from rawFeaturePoints HOT 3
- CODE_OF_CONDUCT.md file missing
- Make the XR Store code available HOT 1
- [Bug] this._videoFrameCanvas is undefined HOT 1
- why does some examples don't work ? HOT 2
- Finish the WebRTC case for AR
- Make sure we display as much information about errors and failures as we can
- Poor render quality on WebARonARCore viewer HOT 4
- Clarify Anchor vs AnchorOffset in the API HOT 3
- Simplify application logic by exposing XRAnchor-related methods in Reality HOT 1
- Argon browser support, Vuforia image/model tracking & XRAnchor States HOT 7
- The RequestFrame function doesn't pass the delta time information HOT 1
- need a method to remove/destroy anchors HOT 2
- need a listener to subscript to to get notified when new anchors are created
- Undeclared variable _this in XRpolyfill.js HOT 4
- Raycasting is incorrect in mobile AR HOT 1
- Should I use XRDevice or XRDisplay? HOT 2
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 webxr-polyfill.