mozilla / webxr-polyfill

A polyfill and example code for building augmented reality (AR) and virtual reality (VR) applications using WebXR.
Mozilla Public License 2.0
260 stars 67 forks source link

XRPointCloud from rawFeaturePoints #126

Open VioletteA opened 5 years ago

VioletteA commented 5 years ago

Hello, I'm looking for a way to get the sparse pointcloud from raw feature points on the client side. I'm thinking of an array of float values where each three values represents [x, y, z]. I suppose these points are already stored in the worldmap in the base64 string... But I see in the polyfill that the XRPointCloud class is not yet implemented. Do you have any information on this subject? Or advice on how to proceed? Thank you!

blairmacintyre commented 5 years ago

We are not passing that info in; because of the slowness of the way data is injected into the WebXR Viewer, passing large amounts of data per frame is problematic, and so we elected not to send the feature points in.

VioletteA commented 5 years ago

Thank you for your answer. In this case, do you think it is conceivable to have a solution to retrieve this data at once, on request at the end of the session?

blairmacintyre commented 5 years ago

It's probably possible to retrieve the points asynchronously, the only (possibly big) issue is that the coordinate system for ARKit can change over time so there's no guarantee that the x/y/z values you get for points are the same from one frame to another.