immersive-web / depth-sensing

Specification: https://immersive-web.github.io/depth-sensing/ Explainer: https://github.com/immersive-web/depth-sensing/blob/main/explainer.md
Other
52 stars 15 forks source link

Close distance measurement at screen center #41

Open pjdupreez opened 1 year ago

pjdupreez commented 1 year ago

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