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
53 stars 15 forks source link

Fix explainer code and add validation in GPU path #24

Closed bialpio closed 3 years ago

bialpio commented 3 years ago

Explainer relied on the sample code that worked due to a bug in Chrome's implementation of depth sensing API. The type of data set on XRCPUDepthInformation does not have the buffer, byteOffset and byteLength attributes.

Additionally, add validation for the algorithm for XRWebGLBinding.getDepthInformation() to ensure that the session of the provided XRView matches the session of the binding itself.


Preview | Diff