microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 114 forks source link

Spatial Anchors Error When Importing and Exporting #154

Open omaralcheikh opened 6 years ago

omaralcheikh commented 6 years ago

Hello Cristi,

I sometimes get these errors when exporting and importing anchors.

Failure in file SpatialAnchor.cpp, line 80 --> Export
Failure in file SpatialAnchorsProjections.cpp, line 312 --> Import

It seems like it looses the spatial mapping at one point and then fails when you import/export an anchor. What causes such issues? It seems to happen quite often even when the users are not moving alot and working in the same environment they always work in.

Almost-Done commented 6 years ago

The anchor import/export functionality was never very reliable and is now deprecated. I don't think there are real solutions I can give you, just workarounds.

For errors on import, make sure the 2 HoloLenses map the environment completely before exporting/importing: have the users do a 360 rotation around to map behind them.

I would not expect export errors, unless there is no tracking. Do you get errors on export while the HoloLens is tracking?

omaralcheikh commented 6 years ago

Thanks for the update. I think the export error happens when the Hololens looses tracking but it seems like its happening way too often which is annoying but can be dealt with. Anyways if the import/export functionality is deprecated and not reliable how are apps doing it now? What would be the best way to share Hologram positions between devices to have a shared experience?