immersive-web / immersive-web/depth-sensing
Close distance measurement at screen center
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 57
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
I've been trough a bit of documentation, and I have a couple of questions I cannot find answers to. Hoping someone here can assist.
What is the closest distance that can be measured. I am not talking about the depthNear clipping, which I understand, But say I have an object 15cm away in the center of the screen, will the depth sensing be able to report that distance?
Also, how do you get the distance in the center of the screen, 'getDepthInMeters()' where x and y are both '0.5' should be right in the middle of the image, right? I this is the case, I keep getting a distance between 0.5m and 0.7m (or 0m) when aiming at a surface about 20cm away? If I am misunderstanding what the depthInMeters() is meant to return, please enlighten me
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the depth-sensing specification and the linked explainer.md, then locate the definitions of getDepthInMeters() and its normalized x/y coordinates. Verify how center-screen sampling and near-distance measurements are specified, and update the relevant documentation so the expected behavior and limitations are clear.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100